romload.h 724 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef _EFI_ROMLOAD_H
  2. #define _EFI_ROMLOAD_H
  3. #define ROM_SIGNATURE 0xaa55
  4. #define PCIDS_SIGNATURE "PCIR"
  5. #pragma pack(push)
  6. #pragma pack(1)
  7. typedef struct
  8. {
  9. UINT8 Pcids_Sig[4];
  10. UINT16 VendId;
  11. UINT16 DevId;
  12. UINT16 Vpd_Off;
  13. UINT16 Size;
  14. UINT8 Rev;
  15. UINT8 Class_Code[3];
  16. UINT16 Image_Len;
  17. UINT16 Rev_Lvl;
  18. UINT8 Code_Type;
  19. UINT8 Indi;
  20. UINT16 Rsvd;
  21. }PciDataStructure;
  22. typedef struct
  23. {
  24. UINT16 Size;
  25. UINT32 Header_Sig;
  26. UINT16 SubSystem;
  27. UINT16 MachineType;
  28. UINT8 Resvd[10];
  29. UINT16 EfiOffset;
  30. }ArchData;
  31. typedef struct
  32. {
  33. UINT16 Rom_Sig;
  34. ArchData Arch_Data;
  35. UINT16 Pcids_Off;
  36. UINT8 resvd[38];
  37. }RomHeader;
  38. #pragma pack(pop)
  39. #endif