VirtualBox

Ignore:
Timestamp:
Apr 14, 2023 3:17:44 PM (22 months ago)
Author:
vboxsync
Message:

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/Pi/PiFirmwareVolume.h

    r80721 r99404  
    1616/// EFI_FV_FILE_ATTRIBUTES
    1717///
    18 typedef UINT32  EFI_FV_FILE_ATTRIBUTES;
     18typedef UINT32 EFI_FV_FILE_ATTRIBUTES;
    1919
    2020//
     
    2828/// type of EFI FVB attribute
    2929///
    30 typedef UINT32  EFI_FVB_ATTRIBUTES_2;
     30typedef UINT32 EFI_FVB_ATTRIBUTES_2;
    3131
    3232//
    3333// Attributes bit definitions
    3434//
    35 #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
     35#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
    8484
    8585typedef struct {
     
    8787  /// The number of sequential blocks which are of the same size.
    8888  ///
    89   UINT32 NumBlocks;
     89  UINT32    NumBlocks;
    9090  ///
    9191  /// The size of the blocks.
    9292  ///
    93   UINT32 Length;
     93  UINT32    Length;
    9494} EFI_FV_BLOCK_MAP_ENTRY;
    9595
     
    148148} EFI_FIRMWARE_VOLUME_HEADER;
    149149
    150 #define EFI_FVH_SIGNATURE SIGNATURE_32 ('_', 'F', 'V', 'H')
     150#define EFI_FVH_SIGNATURE  SIGNATURE_32 ('_', 'F', 'V', 'H')
    151151
    152152///
     
    162162  /// Firmware volume name.
    163163  ///
    164   EFI_GUID  FvName;
     164  EFI_GUID    FvName;
    165165  ///
    166166  /// Size of the rest of the extension header, including this structure.
    167167  ///
    168   UINT32    ExtHeaderSize;
     168  UINT32      ExtHeaderSize;
    169169} EFI_FIRMWARE_VOLUME_EXT_HEADER;
    170170
     
    191191  /// Standard extension entry, with the type EFI_FV_EXT_TYPE_OEM_TYPE.
    192192  ///
    193   EFI_FIRMWARE_VOLUME_EXT_ENTRY Hdr;
     193  EFI_FIRMWARE_VOLUME_EXT_ENTRY    Hdr;
    194194  ///
    195195  /// A bit mask, one bit for each file type between 0xC0 (bit 0) and 0xDF (bit 31). If a bit
    196196  /// is '1', then the GUID entry exists in Types. If a bit is '0' then no GUID entry exists in Types.
    197197  ///
    198   UINT32    TypeMask;
     198  UINT32                           TypeMask;
    199199  ///
    200200  /// An array of GUIDs, each GUID representing an OEM file type.
     
    204204} EFI_FIRMWARE_VOLUME_EXT_ENTRY_OEM_TYPE;
    205205
    206 #define EFI_FV_EXT_TYPE_GUID_TYPE 0x0002
     206#define EFI_FV_EXT_TYPE_GUID_TYPE  0x0002
    207207
    208208///
     
    214214  /// Standard extension entry, with the type EFI_FV_EXT_TYPE_OEM_TYPE.
    215215  ///
    216   EFI_FIRMWARE_VOLUME_EXT_ENTRY     Hdr;
     216  EFI_FIRMWARE_VOLUME_EXT_ENTRY    Hdr;
    217217  ///
    218218  /// Vendor-specific GUID.
    219219  ///
    220   EFI_GUID                          FormatType;
     220  EFI_GUID                         FormatType;
    221221  ///
    222222  /// An arry of bytes of length Length.
     
    226226} EFI_FIRMWARE_VOLUME_EXT_ENTRY_GUID_TYPE;
    227227
    228 #define EFI_FV_EXT_TYPE_USED_SIZE_TYPE 0x03
     228#define EFI_FV_EXT_TYPE_USED_SIZE_TYPE  0x03
    229229
    230230///
     
    236236  /// Standard extension entry, with the type EFI_FV_EXT_TYPE_USED_SIZE_TYPE.
    237237  ///
    238   EFI_FIRMWARE_VOLUME_EXT_ENTRY     Hdr;
     238  EFI_FIRMWARE_VOLUME_EXT_ENTRY    Hdr;
    239239  ///
    240240  /// The number of bytes of the FV that are in uses. The remaining
     
    242242  /// the FV must contain the value implied by EFI_FVB2_ERASE_POLARITY.
    243243  ///
    244   UINT32                            UsedSize;
     244  UINT32                           UsedSize;
    245245} EFI_FIRMWARE_VOLUME_EXT_ENTRY_USED_SIZE_TYPE;
    246246
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette