Files
jsix/src/kernel/ahci/driver.h
2018-05-12 20:27:46 -07:00

29 lines
530 B
C++

#pragma once
/// \file ahci.h
/// AHCI driver and related definitions
#include "kutil/vector.h"
#include "ahci/hba.h"
class pci_device;
/// Basic AHCI driver
class ahci_driver
{
public:
/// Constructor.
ahci_driver();
/// Register a device with the driver
/// \arg device The PCI device to handle
void register_device(pci_device *device);
/// Unregister a device from the driver
/// \arg device The PCI device to remove
void unregister_device(pci_device *device);
private:
kutil::vector<ahci::hba> m_devices;
};