19 lines
485 B
C
19 lines
485 B
C
#ifndef PCI_H_
|
|
#define PCI_H_
|
|
|
|
#include <stdint.h>
|
|
#include <socks/status.h>
|
|
|
|
struct pci_device_id;
|
|
|
|
typedef void (*pci_func_t)(uint32_t device, uint16_t vendor_id, uint16_t device_id, void *arg);
|
|
|
|
extern struct driver *pci_driver;
|
|
extern struct bus_device *pci_bus;
|
|
|
|
extern struct pci_driver *find_driver_for_pci_device(const struct pci_device_id *query);
|
|
extern kern_status_t init_pci_driver_cache(void);
|
|
extern void pci_enumerate_devices(pci_func_t f, int type, void *arg);
|
|
|
|
#endif
|