mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
19 lines
350 B
C++
19 lines
350 B
C++
#include "kutil/enum_bitfields.h"
|
|
#include "ahci/driver.h"
|
|
#include "log.h"
|
|
#include "pci.h"
|
|
|
|
|
|
ahci_driver::ahci_driver()
|
|
{
|
|
}
|
|
|
|
void
|
|
ahci_driver::register_device(pci_device *device)
|
|
{
|
|
log::info(logs::driver, "AHCI registering device %d:%d:%d:",
|
|
device->bus(), device->device(), device->function());
|
|
|
|
ahci::hba &hba = m_devices.emplace(device);
|
|
}
|