summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2020-02-22 19:42:27 +0200
committerAndreas Kling <kling@serenityos.org>2020-02-24 11:27:03 +0100
commit73a7e5875e1cc8282d1667dabaa5dc714841d3f1 (patch)
tree8894a4343b4a6277265b21bc20bfb10c2946d6c2
parentea1251d465afe8ade713e1fd1313f0a5a1852bee (diff)
downloadserenity-73a7e5875e1cc8282d1667dabaa5dc714841d3f1.zip
Kernel: Update PCI::Device class to use the new IRQHandler class
-rw-r--r--Kernel/PCI/Device.cpp6
-rw-r--r--Kernel/PCI/Device.h6
2 files changed, 8 insertions, 4 deletions
diff --git a/Kernel/PCI/Device.cpp b/Kernel/PCI/Device.cpp
index 4a8e096b7a..faa45b3ff7 100644
--- a/Kernel/PCI/Device.cpp
+++ b/Kernel/PCI/Device.cpp
@@ -26,15 +26,16 @@
#include <Kernel/PCI/Device.h>
+namespace Kernel {
PCI::Device::Device(PCI::Address address)
- : InterruptHandler(PCI::get_interrupt_line(address))
+ : IRQHandler(PCI::get_interrupt_line(address))
, m_pci_address(address)
{
// FIXME: Register PCI device somewhere...
}
PCI::Device::Device(PCI::Address address, u8 interrupt_vector)
- : InterruptHandler(interrupt_vector)
+ : IRQHandler(interrupt_vector)
, m_pci_address(address)
{
// FIXME: Register PCI device somewhere...
@@ -44,3 +45,4 @@ PCI::Device::~Device()
{
// FIXME: Unregister the device
}
+}
diff --git a/Kernel/PCI/Device.h b/Kernel/PCI/Device.h
index edcc435407..22fce33e5d 100644
--- a/Kernel/PCI/Device.h
+++ b/Kernel/PCI/Device.h
@@ -27,10 +27,11 @@
#pragma once
#include <AK/Types.h>
-#include <Kernel/InterruptHandler.h>
+#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/PCI/Definitions.h>
-class PCI::Device : public InterruptHandler {
+namespace Kernel {
+class PCI::Device : public IRQHandler {
public:
Address get_pci_address() const { return m_pci_address; };
@@ -42,3 +43,4 @@ protected:
private:
Address m_pci_address;
};
+}