![]() |
Max OS 0.3
|
Handles the selecting and loading of drivers for PCI devices. More...
#include <pci.h>
Public Member Functions | |
| PCIController () | |
| Construct a new PCI Controller object. | |
| void | select_drivers (drivers::DriverSelectorEventHandler *handler) override |
| Select the driver for the device. | |
Static Public Member Functions | |
| static drivers::Driver * | get_driver (PCIDeviceDescriptor dev) |
| Get the driver for the device. | |
| static void | list_known_device (const PCIDeviceDescriptor &dev) |
| Print the vednor and device id of known devices, or "Unknown" + their ids if not known. | |
| PCIController::PCIController | ( | ) |
|
static |
Get the driver for the device.
| dev | Device descriptor |
Definition at line 251 of file pci.cpp.
Referenced by select_drivers().
|
static |
Print the vednor and device id of known devices, or "Unknown" + their ids if not known.
| dev | The device to print |
Definition at line 310 of file pci.cpp.
References MaxOS::Logger::Out().
Referenced by select_drivers().
|
overridevirtual |
Select the driver for the device.
| handler | device driver event manager |
Reimplemented from MaxOS::drivers::DriverSelector.
Definition at line 176 of file pci.cpp.
References MaxOS::Logger::DEBUG(), get_driver(), list_known_device(), and MaxOS::Logger::Out().