2020-01-21 13:20:16 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
|
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-21 13:20:16 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <Kernel/PCI/Device.h>
|
|
|
|
|
|
2020-02-22 19:42:27 +02:00
|
|
|
namespace Kernel {
|
2020-04-08 17:29:37 +02:00
|
|
|
namespace PCI {
|
|
|
|
|
|
|
|
|
|
Device::Device(Address address)
|
|
|
|
|
: IRQHandler(get_interrupt_line(address))
|
2020-01-21 13:20:16 +02:00
|
|
|
, m_pci_address(address)
|
|
|
|
|
{
|
|
|
|
|
// FIXME: Register PCI device somewhere...
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-08 17:29:37 +02:00
|
|
|
Device::Device(Address address, u8 interrupt_vector)
|
2020-02-22 19:42:27 +02:00
|
|
|
: IRQHandler(interrupt_vector)
|
2020-01-21 13:20:16 +02:00
|
|
|
, m_pci_address(address)
|
|
|
|
|
{
|
|
|
|
|
// FIXME: Register PCI device somewhere...
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-08 17:29:37 +02:00
|
|
|
Device::~Device()
|
2020-01-21 13:20:16 +02:00
|
|
|
{
|
|
|
|
|
// FIXME: Unregister the device
|
|
|
|
|
}
|
2020-04-08 17:29:37 +02:00
|
|
|
|
|
|
|
|
}
|
2020-02-22 19:42:27 +02:00
|
|
|
}
|