X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FSource%2FC%2FInclude%2FCommon%2FPiFirmwareVolume.h;h=c495c1b2ff090e858a24630bf395fddfa1b8566f;hb=fb0b35e05f772bd415fe264267bbbcde2e0accda;hp=ea06eee69508c35a137268b3bbcc20c35b05ec4d;hpb=e8a47801a1dfdb148b1bfcd5bdc8ebc3bf51f92d;p=mirror_edk2.git
diff --git a/BaseTools/Source/C/Include/Common/PiFirmwareVolume.h b/BaseTools/Source/C/Include/Common/PiFirmwareVolume.h
index ea06eee695..c495c1b2ff 100644
--- a/BaseTools/Source/C/Include/Common/PiFirmwareVolume.h
+++ b/BaseTools/Source/C/Include/Common/PiFirmwareVolume.h
@@ -1,21 +1,19 @@
/** @file
The firmware volume related definitions in PI.
- Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.
+ @par Revision Reference:
+ Version 1.2C
+
+ Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available
under the terms and conditions of the BSD License which accompanies this
- distribution. The full text of the license may be found at:
+ distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
- File Name: PiFirmwareVolume.h
-
- @par Revision Reference:
- Version 1.2C
-
**/
#ifndef __PI_FIRMWAREVOLUME_H__
@@ -28,16 +26,16 @@ typedef UINT32 EFI_FV_FILE_ATTRIBUTES;
//
// Value of EFI_FV_FILE_ATTRIBUTES.
-//
+//
#define EFI_FV_FILE_ATTRIB_ALIGNMENT 0x0000001F
#define EFI_FV_FILE_ATTRIB_FIXED 0x00000100
#define EFI_FV_FILE_ATTRIB_MEMORY_MAPPED 0x00000200
typedef UINT32 EFI_FVB_ATTRIBUTES_2;
-//
+//
// Attributes bit definitions
-//
+//
#define EFI_FVB2_READ_DISABLED_CAP 0x00000001
#define EFI_FVB2_READ_ENABLED_CAP 0x00000002
#define EFI_FVB2_READ_STATUS 0x00000004
@@ -111,7 +109,7 @@ typedef struct {
EFI_FV_BLOCK_MAP_ENTRY BlockMap[1];
} EFI_FIRMWARE_VOLUME_HEADER;
-#define EFI_FVH_SIGNATURE EFI_SIGNATURE_32 ('_', 'F', 'V', 'H')
+#define EFI_FVH_SIGNATURE SIGNATURE_32 ('_', 'F', 'V', 'H')
///
/// Firmware Volume Header Revision definition
@@ -120,7 +118,7 @@ typedef struct {
//
// Extension header pointed by ExtHeaderOffset of volume header.
-//
+//
typedef struct {
EFI_GUID FvName;
UINT32 ExtHeaderSize;
@@ -137,9 +135,9 @@ typedef struct {
UINT32 TypeMask;
//
- // Array of GUIDs.
+ // Array of GUIDs.
// Each GUID represents an OEM file type.
- //
+ //
// EFI_GUID Types[1];
//
} EFI_FIRMWARE_VOLUME_EXT_ENTRY_OEM_TYPE;
@@ -150,10 +148,16 @@ typedef struct {
EFI_GUID FormatType;
//
- // An arry of bytes of length Length.
+ // An array of bytes of length Length.
//
// UINT8 Data[1];
//
} EFI_FIRMWARE_VOLUME_EXT_ENTRY_GUID_TYPE;
+#define EFI_FV_EXT_TYPE_USED_SIZE_TYPE 0x03
+typedef struct {
+ EFI_FIRMWARE_VOLUME_EXT_ENTRY Hdr;
+ UINT32 UsedSize;
+} EFI_FIRMWARE_VOLUME_EXT_ENTRY_USED_SIZE_TYPE;
+
#endif