1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef PCI_H #define PCI_H #include "def.h" typedef struct { u8 bus; unsigned int dev : 5; u16 vendor; u16 id; u8 class; u8 subclass; } pci_dev; extern usize pci_num_devices; extern pci_dev *pci_devices; void pci_init(); #endif