kexts: pci: create generic devices for all pci devices found during scan
This commit is contained in:
16
kexts/drivers/bus/pci/pci.h
Normal file
16
kexts/drivers/bus/pci/pci.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef PCI_H_
|
||||
#define PCI_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <socks/status.h>
|
||||
|
||||
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(unsigned int vendor_id, unsigned int device_id);
|
||||
extern kern_status_t init_pci_driver_cache(void);
|
||||
extern void pci_enumerate_devices(pci_func_t f, int type, void *arg);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user