summaryrefslogtreecommitdiff
path: root/Kernel/PCI/Device.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-08 17:29:37 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-08 17:29:37 +0200
commita6a8f36a83049b9c0691320745255f99611d15c4 (patch)
treec03329dbc81416e7143de7c4643d9adc4d3500d4 /Kernel/PCI/Device.cpp
parente5ec332eb164d4eb9b4fd7e0ac6249e1e7379a45 (diff)
downloadserenity-a6a8f36a83049b9c0691320745255f99611d15c4.zip
Kernel: Use nested Kernel::PCI namespaces more to reduce PCI:: spam
Diffstat (limited to 'Kernel/PCI/Device.cpp')
-rw-r--r--Kernel/PCI/Device.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/Kernel/PCI/Device.cpp b/Kernel/PCI/Device.cpp
index faa45b3ff7..5300b3dab3 100644
--- a/Kernel/PCI/Device.cpp
+++ b/Kernel/PCI/Device.cpp
@@ -27,22 +27,26 @@
#include <Kernel/PCI/Device.h>
namespace Kernel {
-PCI::Device::Device(PCI::Address address)
- : IRQHandler(PCI::get_interrupt_line(address))
+namespace PCI {
+
+Device::Device(Address address)
+ : IRQHandler(get_interrupt_line(address))
, m_pci_address(address)
{
// FIXME: Register PCI device somewhere...
}
-PCI::Device::Device(PCI::Address address, u8 interrupt_vector)
+Device::Device(Address address, u8 interrupt_vector)
: IRQHandler(interrupt_vector)
, m_pci_address(address)
{
// FIXME: Register PCI device somewhere...
}
-PCI::Device::~Device()
+Device::~Device()
{
// FIXME: Unregister the device
}
+
+}
}