2#ifndef PEDIGREE_PCI_DRIVERS_H
3#define PEDIGREE_PCI_DRIVERS_H
5#include "pedigree/kernel/compiler.h"
15 uint8_t progInterface;
17 bool (*prepareRemove)(
Device* controller);
18 void (*cancelRemove)(
Device* controller);
19 void (*remove)(
Device* controller);
27EXPORTED_PUBLIC
bool initialize();
28EXPORTED_PUBLIC
bool registerDriver(
const Driver* driver);
35EXPORTED_PUBLIC
bool prepareUnregisterDriver(
const Driver* driver);
36EXPORTED_PUBLIC
bool unregisterDriver(
const Driver* driver);
41EXPORTED_PUBLIC
bool attach(
Device* pci);
47EXPORTED_PUBLIC
bool prepareRemove(
Device* pci);
48EXPORTED_PUBLIC
void cancelRemove(
Device* pci);
49EXPORTED_PUBLIC
bool remove(
Device* pci);