pci: add two-pass pci initialization code
[seabios.git] / src / pci.h
index c34e348ffebd5f5a22ab91a33ad87a3593632405..3e28af29e40583d435c39ee29cafa472826afb55 100644 (file)
--- a/src/pci.h
+++ b/src/pci.h
@@ -3,6 +3,9 @@
 
 #include "types.h" // u32
 
+#define PCI_ROM_SLOT 6
+#define PCI_NUM_REGIONS 7
+
 static inline u8 pci_bdf_to_bus(u16 bdf) {
     return bdf >> 8;
 }
@@ -48,6 +51,11 @@ struct pci_device {
     u8 prog_if, revision;
     u8 header_type;
     u8 secondary_bus;
+    struct {
+        u32 addr;
+        u32 size;
+        int is64;
+    } bars[PCI_NUM_REGIONS];
 
     // Local information on device.
     int have_driver;