41#include <pci/pcireg.h>
44#define PCI_INVALID_VENDORDEVICEID 0xffffffff
46#define PCID_CLASS(class, dev) ((class << 8) | dev)
47#define PCID_PCI2PCI_BRIDGE PCID_CLASS(PCIC_BRIDGE, PCIS_BRIDGE_PCI)
85 PCI_SYSTEM_PERIPHERAL = 2,
87extern enum pci_system_type pci_system_type;
94 PCI_LITTLE_ENDIAN = 0,
100extern int pci_bus_count(
void);
105extern void pci_print(
void);
110extern void pci_print_dev(pci_dev_t dev);
111extern void pci_print_device(
int bus,
int slot,
int function);
125extern int pci_for_each(
int (*func)(pci_dev_t,
void*),
void *arg);
134extern int pci_find(uint16_t ven, uint16_t dev,
int index, pci_dev_t *pdev);