Add OPROM mapping support to coreboot
[coreboot.git] / src / include / device / pci_rom.h
index 68c8e71b7c85b32ecdf812854e791a08a4ed8666..fe772764911de195f84aca21a438e98f746d2660 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef PCI_ROM_H
+#define PCI_ROM_H
 #include <arch/byteorder.h>
 #include <stddef.h>
 
@@ -22,11 +24,17 @@ struct  pci_data {
        uint16_t        reserved_1;
        uint16_t        dlen;
        uint8_t         drevision;
-       uint8_t         class_hi;
-       uint16_t        class_lo;
+       uint8_t         class_lo;
+       uint16_t        class_hi;
        uint16_t        ilen;
        uint16_t        irevision;
        uint8_t         type;
        uint8_t         indicator;
        uint16_t        reserved_2;
 };
+
+struct rom_header *pci_rom_probe(struct device *dev);
+struct rom_header *pci_rom_load(struct device *dev, struct rom_header *rom_header);
+u32 __attribute__((weak)) map_oprom_vendev(u32 vendev);
+
+#endif