diff options
author | Michael Kubacki <michael.kubacki@microsoft.com> | 2021-12-05 14:54:05 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-07 17:24:28 +0000 |
commit | 2f88bd3a1296c522317f1c21377876de63de5be7 (patch) | |
tree | ba47875489cc5698061275a495983e9dea3be098 /MdePkg/Include/Guid/Btt.h | |
parent | 1436aea4d5707e672672a11bda72be2c63c936c3 (diff) | |
download | edk2-2f88bd3a1296c522317f1c21377876de63de5be7.tar.gz edk2-2f88bd3a1296c522317f1c21377876de63de5be7.tar.bz2 edk2-2f88bd3a1296c522317f1c21377876de63de5be7.zip |
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/Guid/Btt.h')
-rw-r--r-- | MdePkg/Include/Guid/Btt.h | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/MdePkg/Include/Guid/Btt.h b/MdePkg/Include/Guid/Btt.h index a98fa6d7ba..21523b8f89 100644 --- a/MdePkg/Include/Guid/Btt.h +++ b/MdePkg/Include/Guid/Btt.h @@ -26,19 +26,19 @@ SPDX-License-Identifier: BSD-2-Clause-Patent //
// Alignment of all BTT structures
//
-#define EFI_BTT_ALIGNMENT 4096
+#define EFI_BTT_ALIGNMENT 4096
-#define EFI_BTT_INFO_UNUSED_LEN 3968
+#define EFI_BTT_INFO_UNUSED_LEN 3968
-#define EFI_BTT_INFO_BLOCK_SIG_LEN 16
+#define EFI_BTT_INFO_BLOCK_SIG_LEN 16
///
/// Indicate inconsistent metadata or lost metadata due to unrecoverable media errors.
///
-#define EFI_BTT_INFO_BLOCK_FLAGS_ERROR 0x00000001
+#define EFI_BTT_INFO_BLOCK_FLAGS_ERROR 0x00000001
-#define EFI_BTT_INFO_BLOCK_MAJOR_VERSION 2
-#define EFI_BTT_INFO_BLOCK_MINOR_VERSION 0
+#define EFI_BTT_INFO_BLOCK_MAJOR_VERSION 2
+#define EFI_BTT_INFO_BLOCK_MINOR_VERSION 0
///
/// Block Translation Table (BTT) Info Block
@@ -48,97 +48,97 @@ typedef struct _EFI_BTT_INFO_BLOCK { /// Signature of the BTT Index Block data structure.
/// Shall be "BTT_ARENA_INFO\0\0".
///
- CHAR8 Sig[EFI_BTT_INFO_BLOCK_SIG_LEN];
+ CHAR8 Sig[EFI_BTT_INFO_BLOCK_SIG_LEN];
///
/// UUID identifying this BTT instance.
///
- GUID Uuid;
+ GUID Uuid;
///
/// UUID of containing namespace.
///
- GUID ParentUuid;
+ GUID ParentUuid;
///
/// Attributes of this BTT Info Block.
///
- UINT32 Flags;
+ UINT32 Flags;
///
/// Major version number. Currently at version 2.
///
- UINT16 Major;
+ UINT16 Major;
///
/// Minor version number. Currently at version 0.
///
- UINT16 Minor;
+ UINT16 Minor;
///
/// Advertised LBA size in bytes. I/O requests shall be in this size chunk.
///
- UINT32 ExternalLbaSize;
+ UINT32 ExternalLbaSize;
///
/// Advertised number of LBAs in this arena.
///
- UINT32 ExternalNLba;
+ UINT32 ExternalNLba;
///
/// Internal LBA size shall be greater than or equal to ExternalLbaSize and shall not be smaller than 512 bytes.
///
- UINT32 InternalLbaSize;
+ UINT32 InternalLbaSize;
///
/// Number of internal blocks in the arena data area.
///
- UINT32 InternalNLba;
+ UINT32 InternalNLba;
///
/// Number of free blocks maintained for writes to this arena.
///
- UINT32 NFree;
+ UINT32 NFree;
///
/// The size of this info block in bytes.
///
- UINT32 InfoSize;
+ UINT32 InfoSize;
///
/// Offset of next arena, relative to the beginning of this arena.
///
- UINT64 NextOff;
+ UINT64 NextOff;
///
/// Offset of the data area for this arena, relative to the beginning of this arena.
///
- UINT64 DataOff;
+ UINT64 DataOff;
///
/// Offset of the map for this arena, relative to the beginning of this arena.
///
- UINT64 MapOff;
+ UINT64 MapOff;
///
/// Offset of the flog for this arena, relative to the beginning of this arena.
///
- UINT64 FlogOff;
+ UINT64 FlogOff;
///
/// Offset of the backup copy of this arena's info block, relative to the beginning of this arena.
///
- UINT64 InfoOff;
+ UINT64 InfoOff;
///
/// Shall be zero.
///
- CHAR8 Unused[EFI_BTT_INFO_UNUSED_LEN];
+ CHAR8 Unused[EFI_BTT_INFO_UNUSED_LEN];
///
/// 64-bit Fletcher64 checksum of all fields.
///
- UINT64 Checksum;
+ UINT64 Checksum;
} EFI_BTT_INFO_BLOCK;
///
@@ -148,25 +148,25 @@ typedef struct _EFI_BTT_MAP_ENTRY { ///
/// Post-map LBA number (block number in this arena's data area)
///
- UINT32 PostMapLba : 30;
+ UINT32 PostMapLba : 30;
///
/// When set and Zero is not set, reads on this block return an error.
/// When set and Zero is set, indicate a map entry in its normal, non-error state.
///
- UINT32 Error : 1;
+ UINT32 Error : 1;
///
/// When set and Error is not set, reads on this block return a full block of zeros.
/// When set and Error is set, indicate a map entry in its normal, non-error state.
///
- UINT32 Zero : 1;
+ UINT32 Zero : 1;
} EFI_BTT_MAP_ENTRY;
///
/// Alignment of each flog structure
///
-#define EFI_BTT_FLOG_ENTRY_ALIGNMENT 64
+#define EFI_BTT_FLOG_ENTRY_ALIGNMENT 64
///
/// The BTT Flog is both a free list and a log.
@@ -178,45 +178,45 @@ typedef struct _EFI_BTT_FLOG { ///
/// Last pre-map LBA written using this flog entry.
///
- UINT32 Lba0;
+ UINT32 Lba0;
///
/// Old post-map LBA.
///
- UINT32 OldMap0;
+ UINT32 OldMap0;
///
/// New post-map LBA.
///
- UINT32 NewMap0;
+ UINT32 NewMap0;
///
/// The Seq0 field in each flog entry is used to determine which set of fields is newer between the two sets
/// (Lba0, OldMap0, NewMpa0, Seq0 vs Lba1, Oldmap1, NewMap1, Seq1).
///
- UINT32 Seq0;
+ UINT32 Seq0;
///
/// Alternate lba entry.
///
- UINT32 Lba1;
+ UINT32 Lba1;
///
/// Alternate old entry.
///
- UINT32 OldMap1;
+ UINT32 OldMap1;
///
/// Alternate new entry.
///
- UINT32 NewMap1;
+ UINT32 NewMap1;
///
/// Alternate Seq entry.
///
- UINT32 Seq1;
+ UINT32 Seq1;
} EFI_BTT_FLOG;
-extern GUID gEfiBttAbstractionGuid;
+extern GUID gEfiBttAbstractionGuid;
#endif //_BTT_H_
|