diff options
author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-27 00:32:18 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-27 00:35:45 +0100 |
commit | be6222437bef9955c9dc3b136e56ac70f080bf47 (patch) | |
tree | 4514e93a90770c8f916eb306e072f2fc1ad2d4b1 /stage3/pci.h | |
parent | 241857a79e1a42e23ec29389862f39c92a5dc93e (diff) | |
download | cuddles-be6222437bef9955c9dc3b136e56ac70f080bf47.tar.xz |
store pci enumeration results
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 |