]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/NvdimmLabel.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / NvdimmLabel.h
index 1f289ec32e43d3c9189ad728477b1b29423ecd8f..e46999a3ab4aed24f6a0c66ac25147202f232993 100644 (file)
@@ -23,70 +23,70 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 \r
 typedef struct _EFI_NVDIMM_LABEL_PROTOCOL EFI_NVDIMM_LABEL_PROTOCOL;\r
 \r
-#define EFI_NVDIMM_LABEL_INDEX_SIG_LEN 16\r
-#define EFI_NVDIMM_LABEL_INDEX_ALIGN   256\r
+#define EFI_NVDIMM_LABEL_INDEX_SIG_LEN  16\r
+#define EFI_NVDIMM_LABEL_INDEX_ALIGN    256\r
 typedef struct {\r
   ///\r
   /// Signature of the Index Block data structure. Must be "NAMESPACE_INDEX\0".\r
   ///\r
-  CHAR8  Sig[EFI_NVDIMM_LABEL_INDEX_SIG_LEN];\r
+  CHAR8     Sig[EFI_NVDIMM_LABEL_INDEX_SIG_LEN];\r
 \r
   ///\r
   /// Attributes of this Label Storage Area.\r
   ///\r
-  UINT8  Flags[3];\r
+  UINT8     Flags[3];\r
 \r
   ///\r
   /// Size of each label in bytes, 128 bytes << LabelSize.\r
   /// 1 means 256 bytes, 2 means 512 bytes, etc. Shall be 1 or greater.\r
   ///\r
-  UINT8  LabelSize;\r
+  UINT8     LabelSize;\r
 \r
   ///\r
   /// Sequence number used to identify which of the two Index Blocks is current.\r
   ///\r
-  UINT32 Seq;\r
+  UINT32    Seq;\r
 \r
   ///\r
   /// The offset of this Index Block in the Label Storage Area.\r
   ///\r
-  UINT64 MyOff;\r
+  UINT64    MyOff;\r
 \r
   ///\r
   /// The size of this Index Block in bytes.\r
   /// This field must be a multiple of the EFI_NVDIMM_LABEL_INDEX_ALIGN.\r
   ///\r
-  UINT64 MySize;\r
+  UINT64    MySize;\r
 \r
   ///\r
   /// The offset of the other Index Block paired with this one.\r
   ///\r
-  UINT64 OtherOff;\r
+  UINT64    OtherOff;\r
 \r
   ///\r
   /// The offset of the first slot where labels are stored in this Label Storage Area.\r
   ///\r
-  UINT64 LabelOff;\r
+  UINT64    LabelOff;\r
 \r
   ///\r
   /// The total number of slots for storing labels in this Label Storage Area.\r
   ///\r
-  UINT32 NSlot;\r
+  UINT32    NSlot;\r
 \r
   ///\r
   /// Major version number. Value shall be 1.\r
   ///\r
-  UINT16 Major;\r
+  UINT16    Major;\r
 \r
   ///\r
   /// Minor version number. Value shall be 2.\r
   ///\r
-  UINT16 Minor;\r
+  UINT16    Minor;\r
 \r
   ///\r
   /// 64-bit Fletcher64 checksum of all fields in this Index Block.\r
   ///\r
-  UINT64 Checksum;\r
+  UINT64    Checksum;\r
 \r
   ///\r
   /// Array of unsigned bytes implementing a bitmask that tracks which label slots are free.\r
@@ -95,156 +95,156 @@ typedef struct {
   /// padded with additional zero bytes to make the Index Block size a multiple of EFI_NVDIMM_LABEL_INDEX_ALIGN.\r
   /// Any bits allocated beyond NSlot bits must be zero.\r
   ///\r
-  UINT8  Free[];\r
+  UINT8    Free[];\r
 } EFI_NVDIMM_LABEL_INDEX_BLOCK;\r
 \r
-#define EFI_NVDIMM_LABEL_NAME_LEN 64\r
+#define EFI_NVDIMM_LABEL_NAME_LEN  64\r
 \r
 ///\r
 /// The label is read-only.\r
 ///\r
-#define EFI_NVDIMM_LABEL_FLAGS_ROLABEL 0x00000001\r
+#define EFI_NVDIMM_LABEL_FLAGS_ROLABEL  0x00000001\r
 \r
 ///\r
 /// When set, the complete label set is local to a single NVDIMM Label Storage Area.\r
 /// When clear, the complete label set is contained on multiple NVDIMM Label Storage Areas.\r
 ///\r
-#define EFI_NVDIMM_LABEL_FLAGS_LOCAL 0x00000002\r
+#define EFI_NVDIMM_LABEL_FLAGS_LOCAL  0x00000002\r
 \r
 ///\r
 /// This reserved flag is utilized on older implementations and has been deprecated.\r
 /// Do not use.\r
 //\r
-#define EFI_NVDIMM_LABEL_FLAGS_RESERVED 0x00000004\r
+#define EFI_NVDIMM_LABEL_FLAGS_RESERVED  0x00000004\r
 \r
 ///\r
 /// When set, the label set is being updated.\r
 ///\r
-#define EFI_NVDIMM_LABEL_FLAGS_UPDATING 0x00000008\r
+#define EFI_NVDIMM_LABEL_FLAGS_UPDATING  0x00000008\r
 \r
 typedef struct {\r
   ///\r
   /// Unique Label Identifier UUID per RFC 4122.\r
   ///\r
-  EFI_GUID Uuid;\r
+  EFI_GUID    Uuid;\r
 \r
   ///\r
   /// NULL-terminated string using UTF-8 character formatting.\r
   ///\r
-  CHAR8    Name[EFI_NVDIMM_LABEL_NAME_LEN];\r
+  CHAR8       Name[EFI_NVDIMM_LABEL_NAME_LEN];\r
 \r
   ///\r
   /// Attributes of this namespace.\r
   ///\r
-  UINT32   Flags;\r
+  UINT32      Flags;\r
 \r
   ///\r
   /// Total number of labels describing this namespace.\r
   ///\r
-  UINT16   NLabel;\r
+  UINT16      NLabel;\r
 \r
   ///\r
   /// Position of this label in list of labels for this namespace.\r
   ///\r
-  UINT16   Position;\r
+  UINT16      Position;\r
 \r
   ///\r
   /// The SetCookie is utilized by SW to perform consistency checks on the Interleave Set to verify the current\r
   /// physical device configuration matches the original physical configuration when the labels were created\r
   /// for the set.The label is considered invalid if the actual label set cookie doesn't match the cookie stored here.\r
   ///\r
-  UINT64   SetCookie;\r
+  UINT64      SetCookie;\r
 \r
   ///\r
   /// This is the default logical block size in bytes and may be superseded by a block size that is specified\r
   /// in the AbstractionGuid.\r
   ///\r
-  UINT64   LbaSize;\r
+  UINT64      LbaSize;\r
 \r
   ///\r
   /// The DPA is the DIMM Physical address where the NVM contributing to this namespace begins on this NVDIMM.\r
   ///\r
-  UINT64   Dpa;\r
+  UINT64      Dpa;\r
 \r
   ///\r
   /// The extent of the DPA contributed by this label.\r
   ///\r
-  UINT64   RawSize;\r
+  UINT64      RawSize;\r
 \r
   ///\r
   /// Current slot in the Label Storage Area where this label is stored.\r
   ///\r
-  UINT32   Slot;\r
+  UINT32      Slot;\r
 \r
   ///\r
   /// Alignment hint used to advertise the preferred alignment of the data from within the namespace defined by this label.\r
   ///\r
-  UINT8    Alignment;\r
+  UINT8       Alignment;\r
 \r
   ///\r
   /// Shall be 0.\r
   ///\r
-  UINT8    Reserved[3];\r
+  UINT8       Reserved[3];\r
 \r
   ///\r
   /// Range Type GUID that describes the access mechanism for the specified DPA range.\r
   ///\r
-  EFI_GUID TypeGuid;\r
+  EFI_GUID    TypeGuid;\r
 \r
   ///\r
   /// Identifies the address abstraction mechanism for this namespace. A value of 0 indicates no mechanism used.\r
   ///\r
-  EFI_GUID AddressAbstractionGuid;\r
+  EFI_GUID    AddressAbstractionGuid;\r
 \r
   ///\r
   /// Shall be 0.\r
   ///\r
-  UINT8    Reserved1[88];\r
+  UINT8       Reserved1[88];\r
 \r
   ///\r
   /// 64-bit Fletcher64 checksum of all fields in this Label.\r
   /// This field is considered zero when the checksum is computed.\r
   ///\r
-  UINT64   Checksum;\r
+  UINT64      Checksum;\r
 } EFI_NVDIMM_LABEL;\r
 \r
 typedef struct  {\r
   ///\r
   /// The Region Offset field from the ACPI NFIT NVDIMM Region Mapping Structure for a given entry.\r
   ///\r
-  UINT64 RegionOffset;\r
+  UINT64    RegionOffset;\r
 \r
   ///\r
   /// The serial number of the NVDIMM, assigned by the module vendor.\r
   ///\r
-  UINT32 SerialNumber;\r
+  UINT32    SerialNumber;\r
 \r
   ///\r
   /// The identifier indicating the vendor of the NVDIMM.\r
   ///\r
-  UINT16 VendorId;\r
+  UINT16    VendorId;\r
 \r
   ///\r
   /// The manufacturing date of the NVDIMM, assigned by the module vendor.\r
   ///\r
-  UINT16 ManufacturingDate;\r
+  UINT16    ManufacturingDate;\r
 \r
   ///\r
   /// The manufacturing location from for the NVDIMM, assigned by the module vendor.\r
   ///\r
-  UINT8  ManufacturingLocation;\r
+  UINT8     ManufacturingLocation;\r
 \r
   ///\r
   /// Shall be 0.\r
   ///\r
-  UINT8  Reserved[31];\r
+  UINT8     Reserved[31];\r
 } EFI_NVDIMM_LABEL_SET_COOKIE_MAP;\r
 \r
 typedef struct {\r
   ///\r
   /// Array size is 1 if EFI_NVDIMM_LABEL_FLAGS_LOCAL is set indicating a Local Namespaces.\r
   ///\r
-  EFI_NVDIMM_LABEL_SET_COOKIE_MAP Mapping[0];\r
+  EFI_NVDIMM_LABEL_SET_COOKIE_MAP    Mapping[0];\r
 } EFI_NVDIMM_LABEL_SET_COOKIE_INFO;\r
 \r
 /**\r
@@ -262,7 +262,7 @@ typedef struct {
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_NVDIMM_LABEL_STORAGE_INFORMATION) (\r
+(EFIAPI *EFI_NVDIMM_LABEL_STORAGE_INFORMATION)(\r
   IN  EFI_NVDIMM_LABEL_PROTOCOL *This,\r
   OUT UINT32                    *SizeOfLabelStorageArea,\r
   OUT UINT32                    *MaxTransferLength\r
@@ -293,7 +293,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_NVDIMM_LABEL_STORAGE_READ) (\r
+(EFIAPI *EFI_NVDIMM_LABEL_STORAGE_READ)(\r
   IN CONST EFI_NVDIMM_LABEL_PROTOCOL *This,\r
   IN UINT32                          Offset,\r
   IN UINT32                          TransferLength,\r
@@ -324,7 +324,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_NVDIMM_LABEL_STORAGE_WRITE) (\r
+(EFIAPI *EFI_NVDIMM_LABEL_STORAGE_WRITE)(\r
   IN CONST EFI_NVDIMM_LABEL_PROTOCOL *This,\r
   IN UINT32                          Offset,\r
   IN UINT32                          TransferLength,\r
@@ -335,11 +335,11 @@ EFI_STATUS
 /// Provides services that allow management of labels contained in a Label Storage Area.\r
 ///\r
 struct _EFI_NVDIMM_LABEL_PROTOCOL {\r
-  EFI_NVDIMM_LABEL_STORAGE_INFORMATION LabelStorageInformation;\r
-  EFI_NVDIMM_LABEL_STORAGE_READ        LabelStorageRead;\r
-  EFI_NVDIMM_LABEL_STORAGE_WRITE       LabelStorageWrite;\r
+  EFI_NVDIMM_LABEL_STORAGE_INFORMATION    LabelStorageInformation;\r
+  EFI_NVDIMM_LABEL_STORAGE_READ           LabelStorageRead;\r
+  EFI_NVDIMM_LABEL_STORAGE_WRITE          LabelStorageWrite;\r
 };\r
 \r
-extern EFI_GUID gEfiNvdimmLabelProtocolGuid;\r
+extern EFI_GUID  gEfiNvdimmLabelProtocolGuid;\r
 \r
 #endif\r