mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +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
32
Kernel/Bus/PCI/Device.cpp
Normal file
32
Kernel/Bus/PCI/Device.cpp
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <Kernel/Bus/PCI/Device.h>
|
||||
|
||||
namespace Kernel {
|
||||
namespace PCI {
|
||||
|
||||
Device::Device(Address address)
|
||||
: IRQHandler(get_interrupt_line(address))
|
||||
, m_pci_address(address)
|
||||
{
|
||||
// FIXME: Register PCI device somewhere...
|
||||
}
|
||||
|
||||
Device::Device(Address address, u8 interrupt_vector)
|
||||
: IRQHandler(interrupt_vector)
|
||||
, m_pci_address(address)
|
||||
{
|
||||
// FIXME: Register PCI device somewhere...
|
||||
}
|
||||
|
||||
Device::~Device()
|
||||
{
|
||||
// FIXME: Unregister the device
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue