summaryrefslogtreecommitdiff
path: root/MdePkg/Include/Protocol/FirmwareVolume2.h
diff options
context:
space:
mode:
authorMichael Kubacki <michael.kubacki@microsoft.com>2021-12-05 14:54:05 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-07 17:24:28 +0000
commit2f88bd3a1296c522317f1c21377876de63de5be7 (patch)
treeba47875489cc5698061275a495983e9dea3be098 /MdePkg/Include/Protocol/FirmwareVolume2.h
parent1436aea4d5707e672672a11bda72be2c63c936c3 (diff)
downloadedk2-2f88bd3a1296c522317f1c21377876de63de5be7.zip
edk2-2f88bd3a1296c522317f1c21377876de63de5be7.tar.gz
edk2-2f88bd3a1296c522317f1c21377876de63de5be7.tar.bz2
MdePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'MdePkg/Include/Protocol/FirmwareVolume2.h')
-rw-r--r--MdePkg/Include/Protocol/FirmwareVolume2.h167
1 files changed, 79 insertions, 88 deletions
diff --git a/MdePkg/Include/Protocol/FirmwareVolume2.h b/MdePkg/Include/Protocol/FirmwareVolume2.h
index 0792324..93749c8 100644
--- a/MdePkg/Include/Protocol/FirmwareVolume2.h
+++ b/MdePkg/Include/Protocol/FirmwareVolume2.h
@@ -21,62 +21,61 @@
typedef struct _EFI_FIRMWARE_VOLUME2_PROTOCOL EFI_FIRMWARE_VOLUME2_PROTOCOL;
-
///
/// EFI_FV_ATTRIBUTES
///
-typedef UINT64 EFI_FV_ATTRIBUTES;
+typedef UINT64 EFI_FV_ATTRIBUTES;
//
// EFI_FV_ATTRIBUTES bit definitions
//
// EFI_FV_ATTRIBUTES bit semantics
-#define EFI_FV2_READ_DISABLE_CAP 0x0000000000000001ULL
-#define EFI_FV2_READ_ENABLE_CAP 0x0000000000000002ULL
-#define EFI_FV2_READ_STATUS 0x0000000000000004ULL
-#define EFI_FV2_WRITE_DISABLE_CAP 0x0000000000000008ULL
-#define EFI_FV2_WRITE_ENABLE_CAP 0x0000000000000010ULL
-#define EFI_FV2_WRITE_STATUS 0x0000000000000020ULL
-#define EFI_FV2_LOCK_CAP 0x0000000000000040ULL
-#define EFI_FV2_LOCK_STATUS 0x0000000000000080ULL
-#define EFI_FV2_WRITE_POLICY_RELIABLE 0x0000000000000100ULL
-#define EFI_FV2_READ_LOCK_CAP 0x0000000000001000ULL
-#define EFI_FV2_READ_LOCK_STATUS 0x0000000000002000ULL
-#define EFI_FV2_WRITE_LOCK_CAP 0x0000000000004000ULL
-#define EFI_FV2_WRITE_LOCK_STATUS 0x0000000000008000ULL
-#define EFI_FV2_ALIGNMENT 0x00000000001F0000ULL
-#define EFI_FV2_ALIGNMENT_1 0x0000000000000000ULL
-#define EFI_FV2_ALIGNMENT_2 0x0000000000010000ULL
-#define EFI_FV2_ALIGNMENT_4 0x0000000000020000ULL
-#define EFI_FV2_ALIGNMENT_8 0x0000000000030000ULL
-#define EFI_FV2_ALIGNMENT_16 0x0000000000040000ULL
-#define EFI_FV2_ALIGNMENT_32 0x0000000000050000ULL
-#define EFI_FV2_ALIGNMENT_64 0x0000000000060000ULL
-#define EFI_FV2_ALIGNMENT_128 0x0000000000070000ULL
-#define EFI_FV2_ALIGNMENT_256 0x0000000000080000ULL
-#define EFI_FV2_ALIGNMENT_512 0x0000000000090000ULL
-#define EFI_FV2_ALIGNMENT_1K 0x00000000000A0000ULL
-#define EFI_FV2_ALIGNMENT_2K 0x00000000000B0000ULL
-#define EFI_FV2_ALIGNMENT_4K 0x00000000000C0000ULL
-#define EFI_FV2_ALIGNMENT_8K 0x00000000000D0000ULL
-#define EFI_FV2_ALIGNMENT_16K 0x00000000000E0000ULL
-#define EFI_FV2_ALIGNMENT_32K 0x00000000000F0000ULL
-#define EFI_FV2_ALIGNMENT_64K 0x0000000000100000ULL
-#define EFI_FV2_ALIGNMENT_128K 0x0000000000110000ULL
-#define EFI_FV2_ALIGNMENT_256K 0x0000000000120000ULL
-#define EFI_FV2_ALIGNMENT_512K 0x0000000000130000ULL
-#define EFI_FV2_ALIGNMENT_1M 0x0000000000140000ULL
-#define EFI_FV2_ALIGNMENT_2M 0x0000000000150000ULL
-#define EFI_FV2_ALIGNMENT_4M 0x0000000000160000ULL
-#define EFI_FV2_ALIGNMENT_8M 0x0000000000170000ULL
-#define EFI_FV2_ALIGNMENT_16M 0x0000000000180000ULL
-#define EFI_FV2_ALIGNMENT_32M 0x0000000000190000ULL
-#define EFI_FV2_ALIGNMENT_64M 0x00000000001A0000ULL
-#define EFI_FV2_ALIGNMENT_128M 0x00000000001B0000ULL
-#define EFI_FV2_ALIGNMENT_256M 0x00000000001C0000ULL
-#define EFI_FV2_ALIGNMENT_512M 0x00000000001D0000ULL
-#define EFI_FV2_ALIGNMENT_1G 0x00000000001E0000ULL
-#define EFI_FV2_ALIGNMENT_2G 0x00000000001F0000ULL
+#define EFI_FV2_READ_DISABLE_CAP 0x0000000000000001ULL
+#define EFI_FV2_READ_ENABLE_CAP 0x0000000000000002ULL
+#define EFI_FV2_READ_STATUS 0x0000000000000004ULL
+#define EFI_FV2_WRITE_DISABLE_CAP 0x0000000000000008ULL
+#define EFI_FV2_WRITE_ENABLE_CAP 0x0000000000000010ULL
+#define EFI_FV2_WRITE_STATUS 0x0000000000000020ULL
+#define EFI_FV2_LOCK_CAP 0x0000000000000040ULL
+#define EFI_FV2_LOCK_STATUS 0x0000000000000080ULL
+#define EFI_FV2_WRITE_POLICY_RELIABLE 0x0000000000000100ULL
+#define EFI_FV2_READ_LOCK_CAP 0x0000000000001000ULL
+#define EFI_FV2_READ_LOCK_STATUS 0x0000000000002000ULL
+#define EFI_FV2_WRITE_LOCK_CAP 0x0000000000004000ULL
+#define EFI_FV2_WRITE_LOCK_STATUS 0x0000000000008000ULL
+#define EFI_FV2_ALIGNMENT 0x00000000001F0000ULL
+#define EFI_FV2_ALIGNMENT_1 0x0000000000000000ULL
+#define EFI_FV2_ALIGNMENT_2 0x0000000000010000ULL
+#define EFI_FV2_ALIGNMENT_4 0x0000000000020000ULL
+#define EFI_FV2_ALIGNMENT_8 0x0000000000030000ULL
+#define EFI_FV2_ALIGNMENT_16 0x0000000000040000ULL
+#define EFI_FV2_ALIGNMENT_32 0x0000000000050000ULL
+#define EFI_FV2_ALIGNMENT_64 0x0000000000060000ULL
+#define EFI_FV2_ALIGNMENT_128 0x0000000000070000ULL
+#define EFI_FV2_ALIGNMENT_256 0x0000000000080000ULL
+#define EFI_FV2_ALIGNMENT_512 0x0000000000090000ULL
+#define EFI_FV2_ALIGNMENT_1K 0x00000000000A0000ULL
+#define EFI_FV2_ALIGNMENT_2K 0x00000000000B0000ULL
+#define EFI_FV2_ALIGNMENT_4K 0x00000000000C0000ULL
+#define EFI_FV2_ALIGNMENT_8K 0x00000000000D0000ULL
+#define EFI_FV2_ALIGNMENT_16K 0x00000000000E0000ULL
+#define EFI_FV2_ALIGNMENT_32K 0x00000000000F0000ULL
+#define EFI_FV2_ALIGNMENT_64K 0x0000000000100000ULL
+#define EFI_FV2_ALIGNMENT_128K 0x0000000000110000ULL
+#define EFI_FV2_ALIGNMENT_256K 0x0000000000120000ULL
+#define EFI_FV2_ALIGNMENT_512K 0x0000000000130000ULL
+#define EFI_FV2_ALIGNMENT_1M 0x0000000000140000ULL
+#define EFI_FV2_ALIGNMENT_2M 0x0000000000150000ULL
+#define EFI_FV2_ALIGNMENT_4M 0x0000000000160000ULL
+#define EFI_FV2_ALIGNMENT_8M 0x0000000000170000ULL
+#define EFI_FV2_ALIGNMENT_16M 0x0000000000180000ULL
+#define EFI_FV2_ALIGNMENT_32M 0x0000000000190000ULL
+#define EFI_FV2_ALIGNMENT_64M 0x00000000001A0000ULL
+#define EFI_FV2_ALIGNMENT_128M 0x00000000001B0000ULL
+#define EFI_FV2_ALIGNMENT_256M 0x00000000001C0000ULL
+#define EFI_FV2_ALIGNMENT_512M 0x00000000001D0000ULL
+#define EFI_FV2_ALIGNMENT_1G 0x00000000001E0000ULL
+#define EFI_FV2_ALIGNMENT_2G 0x00000000001F0000ULL
/**
Returns the attributes and current settings of the firmware volume.
@@ -104,11 +103,10 @@ typedef UINT64 EFI_FV_ATTRIBUTES;
**/
typedef
EFI_STATUS
-(EFIAPI * EFI_FV_GET_ATTRIBUTES)(
+(EFIAPI *EFI_FV_GET_ATTRIBUTES)(
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
OUT EFI_FV_ATTRIBUTES *FvAttributes
-);
-
+ );
/**
Modifies the current settings of the firmware volume according to the input parameter.
@@ -199,11 +197,10 @@ EFI_STATUS
**/
typedef
EFI_STATUS
-(EFIAPI * EFI_FV_SET_ATTRIBUTES)(
+(EFIAPI *EFI_FV_SET_ATTRIBUTES)(
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN OUT EFI_FV_ATTRIBUTES *FvAttributes
-);
-
+ );
/**
Retrieves a file and/or file information from the firmware volume.
@@ -294,7 +291,7 @@ EFI_STATUS
**/
typedef
EFI_STATUS
-(EFIAPI * EFI_FV_READ_FILE)(
+(EFIAPI *EFI_FV_READ_FILE)(
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN CONST EFI_GUID *NameGuid,
IN OUT VOID **Buffer,
@@ -302,9 +299,7 @@ EFI_STATUS
OUT EFI_FV_FILETYPE *FoundType,
OUT EFI_FV_FILE_ATTRIBUTES *FileAttributes,
OUT UINT32 *AuthenticationStatus
-);
-
-
+ );
/**
Locates the requested section within a file and returns it in a buffer.
@@ -402,7 +397,7 @@ EFI_STATUS
**/
typedef
EFI_STATUS
-(EFIAPI * EFI_FV_READ_SECTION)(
+(EFIAPI *EFI_FV_READ_SECTION)(
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN CONST EFI_GUID *NameGuid,
IN EFI_SECTION_TYPE SectionType,
@@ -410,14 +405,14 @@ EFI_STATUS
IN OUT VOID **Buffer,
IN OUT UINTN *BufferSize,
OUT UINT32 *AuthenticationStatus
-);
+ );
///
/// EFI_FV_WRITE_POLICY, two policies (unreliable write and reliable write) are defined.
///
typedef UINT32 EFI_FV_WRITE_POLICY;
-#define EFI_FV_UNRELIABLE_WRITE 0x00000000
-#define EFI_FV_RELIABLE_WRITE 0x00000001
+#define EFI_FV_UNRELIABLE_WRITE 0x00000000
+#define EFI_FV_RELIABLE_WRITE 0x00000001
//
// EFI_FV_WRITE_FILE_DATA
@@ -426,23 +421,23 @@ typedef struct {
///
/// Pointer to a GUID, which is the file name to be written.
///
- EFI_GUID *NameGuid;
+ EFI_GUID *NameGuid;
///
/// Indicates the type of file to be written.
///
- EFI_FV_FILETYPE Type;
+ EFI_FV_FILETYPE Type;
///
/// Indicates the attributes for the file to be written.
///
- EFI_FV_FILE_ATTRIBUTES FileAttributes;
+ EFI_FV_FILE_ATTRIBUTES FileAttributes;
///
/// Pointer to a buffer containing the file to be written.
///
- VOID *Buffer;
+ VOID *Buffer;
///
/// Indicates the size of the file image contained in Buffer.
///
- UINT32 BufferSize;
+ UINT32 BufferSize;
} EFI_FV_WRITE_FILE_DATA;
/**
@@ -513,13 +508,12 @@ typedef struct {
**/
typedef
EFI_STATUS
-(EFIAPI * EFI_FV_WRITE_FILE)(
+(EFIAPI *EFI_FV_WRITE_FILE)(
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN UINT32 NumberOfFiles,
IN EFI_FV_WRITE_POLICY WritePolicy,
IN EFI_FV_WRITE_FILE_DATA *FileData
-);
-
+ );
/**
Retrieves information about the next file in the firmware volume store
@@ -598,14 +592,14 @@ EFI_STATUS
**/
typedef
EFI_STATUS
-(EFIAPI * EFI_FV_GET_NEXT_FILE)(
+(EFIAPI *EFI_FV_GET_NEXT_FILE)(
IN CONST EFI_FIRMWARE_VOLUME2_PROTOCOL *This,
IN OUT VOID *Key,
IN OUT EFI_FV_FILETYPE *FileType,
OUT EFI_GUID *NameGuid,
OUT EFI_FV_FILE_ATTRIBUTES *Attributes,
OUT UINTN *Size
-);
+ );
/**
Return information about a firmware volume.
@@ -661,8 +655,7 @@ EFI_STATUS
IN CONST EFI_GUID *InformationType,
IN OUT UINTN *BufferSize,
OUT VOID *Buffer
-);
-
+ );
/**
Sets information about a firmware volume.
@@ -711,8 +704,7 @@ EFI_STATUS
IN CONST EFI_GUID *InformationType,
IN UINTN BufferSize,
IN CONST VOID *Buffer
-);
-
+ );
///
/// The Firmware Volume Protocol contains the file-level
@@ -728,29 +720,28 @@ EFI_STATUS
/// Protocol.
///
struct _EFI_FIRMWARE_VOLUME2_PROTOCOL {
- EFI_FV_GET_ATTRIBUTES GetVolumeAttributes;
- EFI_FV_SET_ATTRIBUTES SetVolumeAttributes;
- EFI_FV_READ_FILE ReadFile;
- EFI_FV_READ_SECTION ReadSection;
- EFI_FV_WRITE_FILE WriteFile;
- EFI_FV_GET_NEXT_FILE GetNextFile;
+ EFI_FV_GET_ATTRIBUTES GetVolumeAttributes;
+ EFI_FV_SET_ATTRIBUTES SetVolumeAttributes;
+ EFI_FV_READ_FILE ReadFile;
+ EFI_FV_READ_SECTION ReadSection;
+ EFI_FV_WRITE_FILE WriteFile;
+ EFI_FV_GET_NEXT_FILE GetNextFile;
///
/// Data field that indicates the size in bytes
/// of the Key input buffer for the
/// GetNextFile() API.
///
- UINT32 KeySize;
+ UINT32 KeySize;
///
/// Handle of the parent firmware volume.
///
- EFI_HANDLE ParentHandle;
- EFI_FV_GET_INFO GetInfo;
- EFI_FV_SET_INFO SetInfo;
+ EFI_HANDLE ParentHandle;
+ EFI_FV_GET_INFO GetInfo;
+ EFI_FV_SET_INFO SetInfo;
};
-
-extern EFI_GUID gEfiFirmwareVolume2ProtocolGuid;
+extern EFI_GUID gEfiFirmwareVolume2ProtocolGuid;
#endif