mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
Kernel: Update PCI::Device class to use the new IRQHandler class
This commit is contained in:
parent
ea1251d465
commit
73a7e5875e
2 changed files with 8 additions and 4 deletions
|
@ -26,15 +26,16 @@
|
||||||
|
|
||||||
#include <Kernel/PCI/Device.h>
|
#include <Kernel/PCI/Device.h>
|
||||||
|
|
||||||
|
namespace Kernel {
|
||||||
PCI::Device::Device(PCI::Address address)
|
PCI::Device::Device(PCI::Address address)
|
||||||
: InterruptHandler(PCI::get_interrupt_line(address))
|
: IRQHandler(PCI::get_interrupt_line(address))
|
||||||
, m_pci_address(address)
|
, m_pci_address(address)
|
||||||
{
|
{
|
||||||
// FIXME: Register PCI device somewhere...
|
// FIXME: Register PCI device somewhere...
|
||||||
}
|
}
|
||||||
|
|
||||||
PCI::Device::Device(PCI::Address address, u8 interrupt_vector)
|
PCI::Device::Device(PCI::Address address, u8 interrupt_vector)
|
||||||
: InterruptHandler(interrupt_vector)
|
: IRQHandler(interrupt_vector)
|
||||||
, m_pci_address(address)
|
, m_pci_address(address)
|
||||||
{
|
{
|
||||||
// FIXME: Register PCI device somewhere...
|
// FIXME: Register PCI device somewhere...
|
||||||
|
@ -44,3 +45,4 @@ PCI::Device::~Device()
|
||||||
{
|
{
|
||||||
// FIXME: Unregister the device
|
// FIXME: Unregister the device
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -27,10 +27,11 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AK/Types.h>
|
#include <AK/Types.h>
|
||||||
#include <Kernel/InterruptHandler.h>
|
#include <Kernel/Interrupts/IRQHandler.h>
|
||||||
#include <Kernel/PCI/Definitions.h>
|
#include <Kernel/PCI/Definitions.h>
|
||||||
|
|
||||||
class PCI::Device : public InterruptHandler {
|
namespace Kernel {
|
||||||
|
class PCI::Device : public IRQHandler {
|
||||||
public:
|
public:
|
||||||
Address get_pci_address() const { return m_pci_address; };
|
Address get_pci_address() const { return m_pci_address; };
|
||||||
|
|
||||||
|
@ -42,3 +43,4 @@ protected:
|
||||||
private:
|
private:
|
||||||
Address m_pci_address;
|
Address m_pci_address;
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue