Changeset 99404 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/Pi/PiFirmwareVolume.h
- Timestamp:
- Apr 14, 2023 3:17:44 PM (22 months ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-145445 /vendor/edk2/current 103735-103757,103769-103776,129194-156846
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/Pi/PiFirmwareVolume.h
r80721 r99404 16 16 /// EFI_FV_FILE_ATTRIBUTES 17 17 /// 18 typedef UINT32 18 typedef UINT32 EFI_FV_FILE_ATTRIBUTES; 19 19 20 20 // … … 28 28 /// type of EFI FVB attribute 29 29 /// 30 typedef UINT32 30 typedef UINT32 EFI_FVB_ATTRIBUTES_2; 31 31 32 32 // 33 33 // Attributes bit definitions 34 34 // 35 #define EFI_FVB2_READ_DISABLED_CAP 0x0000000136 #define EFI_FVB2_READ_ENABLED_CAP 0x0000000237 #define EFI_FVB2_READ_STATUS 0x0000000438 #define EFI_FVB2_WRITE_DISABLED_CAP 0x0000000839 #define EFI_FVB2_WRITE_ENABLED_CAP 0x0000001040 #define EFI_FVB2_WRITE_STATUS 0x0000002041 #define EFI_FVB2_LOCK_CAP 0x0000004042 #define EFI_FVB2_LOCK_STATUS 0x0000008043 #define EFI_FVB2_STICKY_WRITE 0x0000020044 #define EFI_FVB2_MEMORY_MAPPED 0x0000040045 #define EFI_FVB2_ERASE_POLARITY 0x0000080046 #define EFI_FVB2_READ_LOCK_CAP 0x0000100047 #define EFI_FVB2_READ_LOCK_STATUS 0x0000200048 #define EFI_FVB2_WRITE_LOCK_CAP 0x0000400049 #define EFI_FVB2_WRITE_LOCK_STATUS 0x0000800050 #define EFI_FVB2_ALIGNMENT 0x001F000051 #define EFI_FVB2_ALIGNMENT_1 0x0000000052 #define EFI_FVB2_ALIGNMENT_2 0x0001000053 #define EFI_FVB2_ALIGNMENT_4 0x0002000054 #define EFI_FVB2_ALIGNMENT_8 0x0003000055 #define EFI_FVB2_ALIGNMENT_16 0x0004000056 #define EFI_FVB2_ALIGNMENT_32 0x0005000057 #define EFI_FVB2_ALIGNMENT_64 0x0006000058 #define EFI_FVB2_ALIGNMENT_128 0x0007000059 #define EFI_FVB2_ALIGNMENT_256 0x0008000060 #define EFI_FVB2_ALIGNMENT_512 0x0009000061 #define EFI_FVB2_ALIGNMENT_1K 0x000A000062 #define EFI_FVB2_ALIGNMENT_2K 0x000B000063 #define EFI_FVB2_ALIGNMENT_4K 0x000C000064 #define EFI_FVB2_ALIGNMENT_8K 0x000D000065 #define EFI_FVB2_ALIGNMENT_16K 0x000E000066 #define EFI_FVB2_ALIGNMENT_32K 0x000F000067 #define EFI_FVB2_ALIGNMENT_64K 0x0010000068 #define EFI_FVB2_ALIGNMENT_128K 0x0011000069 #define EFI_FVB2_ALIGNMENT_256K 0x0012000070 #define EFI_FVB2_ALIGNMENT_512K 0x0013000071 #define EFI_FVB2_ALIGNMENT_1M 0x0014000072 #define EFI_FVB2_ALIGNMENT_2M 0x0015000073 #define EFI_FVB2_ALIGNMENT_4M 0x0016000074 #define EFI_FVB2_ALIGNMENT_8M 0x0017000075 #define EFI_FVB2_ALIGNMENT_16M 0x0018000076 #define EFI_FVB2_ALIGNMENT_32M 0x0019000077 #define EFI_FVB2_ALIGNMENT_64M 0x001A000078 #define EFI_FVB2_ALIGNMENT_128M 0x001B000079 #define EFI_FVB2_ALIGNMENT_256M 0x001C000080 #define EFI_FVB2_ALIGNMENT_512M 0x001D000081 #define EFI_FVB2_ALIGNMENT_1G 0x001E000082 #define EFI_FVB2_ALIGNMENT_2G 0x001F000083 #define EFI_FVB2_WEAK_ALIGNMENT 0x8000000035 #define EFI_FVB2_READ_DISABLED_CAP 0x00000001 36 #define EFI_FVB2_READ_ENABLED_CAP 0x00000002 37 #define EFI_FVB2_READ_STATUS 0x00000004 38 #define EFI_FVB2_WRITE_DISABLED_CAP 0x00000008 39 #define EFI_FVB2_WRITE_ENABLED_CAP 0x00000010 40 #define EFI_FVB2_WRITE_STATUS 0x00000020 41 #define EFI_FVB2_LOCK_CAP 0x00000040 42 #define EFI_FVB2_LOCK_STATUS 0x00000080 43 #define EFI_FVB2_STICKY_WRITE 0x00000200 44 #define EFI_FVB2_MEMORY_MAPPED 0x00000400 45 #define EFI_FVB2_ERASE_POLARITY 0x00000800 46 #define EFI_FVB2_READ_LOCK_CAP 0x00001000 47 #define EFI_FVB2_READ_LOCK_STATUS 0x00002000 48 #define EFI_FVB2_WRITE_LOCK_CAP 0x00004000 49 #define EFI_FVB2_WRITE_LOCK_STATUS 0x00008000 50 #define EFI_FVB2_ALIGNMENT 0x001F0000 51 #define EFI_FVB2_ALIGNMENT_1 0x00000000 52 #define EFI_FVB2_ALIGNMENT_2 0x00010000 53 #define EFI_FVB2_ALIGNMENT_4 0x00020000 54 #define EFI_FVB2_ALIGNMENT_8 0x00030000 55 #define EFI_FVB2_ALIGNMENT_16 0x00040000 56 #define EFI_FVB2_ALIGNMENT_32 0x00050000 57 #define EFI_FVB2_ALIGNMENT_64 0x00060000 58 #define EFI_FVB2_ALIGNMENT_128 0x00070000 59 #define EFI_FVB2_ALIGNMENT_256 0x00080000 60 #define EFI_FVB2_ALIGNMENT_512 0x00090000 61 #define EFI_FVB2_ALIGNMENT_1K 0x000A0000 62 #define EFI_FVB2_ALIGNMENT_2K 0x000B0000 63 #define EFI_FVB2_ALIGNMENT_4K 0x000C0000 64 #define EFI_FVB2_ALIGNMENT_8K 0x000D0000 65 #define EFI_FVB2_ALIGNMENT_16K 0x000E0000 66 #define EFI_FVB2_ALIGNMENT_32K 0x000F0000 67 #define EFI_FVB2_ALIGNMENT_64K 0x00100000 68 #define EFI_FVB2_ALIGNMENT_128K 0x00110000 69 #define EFI_FVB2_ALIGNMENT_256K 0x00120000 70 #define EFI_FVB2_ALIGNMENT_512K 0x00130000 71 #define EFI_FVB2_ALIGNMENT_1M 0x00140000 72 #define EFI_FVB2_ALIGNMENT_2M 0x00150000 73 #define EFI_FVB2_ALIGNMENT_4M 0x00160000 74 #define EFI_FVB2_ALIGNMENT_8M 0x00170000 75 #define EFI_FVB2_ALIGNMENT_16M 0x00180000 76 #define EFI_FVB2_ALIGNMENT_32M 0x00190000 77 #define EFI_FVB2_ALIGNMENT_64M 0x001A0000 78 #define EFI_FVB2_ALIGNMENT_128M 0x001B0000 79 #define EFI_FVB2_ALIGNMENT_256M 0x001C0000 80 #define EFI_FVB2_ALIGNMENT_512M 0x001D0000 81 #define EFI_FVB2_ALIGNMENT_1G 0x001E0000 82 #define EFI_FVB2_ALIGNMENT_2G 0x001F0000 83 #define EFI_FVB2_WEAK_ALIGNMENT 0x80000000 84 84 85 85 typedef struct { … … 87 87 /// The number of sequential blocks which are of the same size. 88 88 /// 89 UINT32 NumBlocks;89 UINT32 NumBlocks; 90 90 /// 91 91 /// The size of the blocks. 92 92 /// 93 UINT32 Length;93 UINT32 Length; 94 94 } EFI_FV_BLOCK_MAP_ENTRY; 95 95 … … 148 148 } EFI_FIRMWARE_VOLUME_HEADER; 149 149 150 #define EFI_FVH_SIGNATURE SIGNATURE_32 ('_', 'F', 'V', 'H')150 #define EFI_FVH_SIGNATURE SIGNATURE_32 ('_', 'F', 'V', 'H') 151 151 152 152 /// … … 162 162 /// Firmware volume name. 163 163 /// 164 EFI_GUID FvName;164 EFI_GUID FvName; 165 165 /// 166 166 /// Size of the rest of the extension header, including this structure. 167 167 /// 168 UINT32 ExtHeaderSize;168 UINT32 ExtHeaderSize; 169 169 } EFI_FIRMWARE_VOLUME_EXT_HEADER; 170 170 … … 191 191 /// Standard extension entry, with the type EFI_FV_EXT_TYPE_OEM_TYPE. 192 192 /// 193 EFI_FIRMWARE_VOLUME_EXT_ENTRY Hdr;193 EFI_FIRMWARE_VOLUME_EXT_ENTRY Hdr; 194 194 /// 195 195 /// A bit mask, one bit for each file type between 0xC0 (bit 0) and 0xDF (bit 31). If a bit 196 196 /// is '1', then the GUID entry exists in Types. If a bit is '0' then no GUID entry exists in Types. 197 197 /// 198 UINT32 TypeMask;198 UINT32 TypeMask; 199 199 /// 200 200 /// An array of GUIDs, each GUID representing an OEM file type. … … 204 204 } EFI_FIRMWARE_VOLUME_EXT_ENTRY_OEM_TYPE; 205 205 206 #define EFI_FV_EXT_TYPE_GUID_TYPE 0x0002206 #define EFI_FV_EXT_TYPE_GUID_TYPE 0x0002 207 207 208 208 /// … … 214 214 /// Standard extension entry, with the type EFI_FV_EXT_TYPE_OEM_TYPE. 215 215 /// 216 EFI_FIRMWARE_VOLUME_EXT_ENTRY 216 EFI_FIRMWARE_VOLUME_EXT_ENTRY Hdr; 217 217 /// 218 218 /// Vendor-specific GUID. 219 219 /// 220 EFI_GUID 220 EFI_GUID FormatType; 221 221 /// 222 222 /// An arry of bytes of length Length. … … 226 226 } EFI_FIRMWARE_VOLUME_EXT_ENTRY_GUID_TYPE; 227 227 228 #define EFI_FV_EXT_TYPE_USED_SIZE_TYPE 0x03228 #define EFI_FV_EXT_TYPE_USED_SIZE_TYPE 0x03 229 229 230 230 /// … … 236 236 /// Standard extension entry, with the type EFI_FV_EXT_TYPE_USED_SIZE_TYPE. 237 237 /// 238 EFI_FIRMWARE_VOLUME_EXT_ENTRY 238 EFI_FIRMWARE_VOLUME_EXT_ENTRY Hdr; 239 239 /// 240 240 /// The number of bytes of the FV that are in uses. The remaining … … 242 242 /// the FV must contain the value implied by EFI_FVB2_ERASE_POLARITY. 243 243 /// 244 UINT32 244 UINT32 UsedSize; 245 245 } EFI_FIRMWARE_VOLUME_EXT_ENTRY_USED_SIZE_TYPE; 246 246
Note:
See TracChangeset
for help on using the changeset viewer.