Move AHCI driver into separate drivers/ directory

This commit is contained in:
Justin C. Miller
2018-05-23 00:15:10 -07:00
parent 57829e1b79
commit 2fb92e8592
10 changed files with 28 additions and 6 deletions

View File

@@ -0,0 +1,22 @@
#include "kutil/enum_bitfields.h"
#include "ahci/driver.h"
#include "log.h"
#include "pci.h"
namespace ahci {
driver::driver()
{
}
void
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);
}
} // namespace