diff options
Diffstat (limited to 'stage3/pci.h')
-rw-r--r-- | stage3/pci.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/stage3/pci.h b/stage3/pci.h index ac893ee..2d2c909 100644 --- a/stage3/pci.h +++ b/stage3/pci.h @@ -1,6 +1,20 @@ #ifndef PCI_H #define PCI_H -void pci_enumerate(); +#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 |