mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:17:46 +00:00
Kernel/PCI: Move the PCI components as a subfolder to the Bus directory
This commit is contained in:
parent
26e9140ea1
commit
6568bb47cb
43 changed files with 60 additions and 60 deletions
26
Kernel/Bus/PCI/Device.h
Normal file
26
Kernel/Bus/PCI/Device.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/Bus/PCI/Definitions.h>
|
||||
#include <Kernel/Interrupts/IRQHandler.h>
|
||||
|
||||
namespace Kernel {
|
||||
class PCI::Device : public IRQHandler {
|
||||
public:
|
||||
Address pci_address() const { return m_pci_address; };
|
||||
|
||||
protected:
|
||||
Device(Address pci_address);
|
||||
Device(Address pci_address, u8 interrupt_vector);
|
||||
~Device();
|
||||
|
||||
private:
|
||||
Address m_pci_address;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue