]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/BlockIo.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / BlockIo.h
index 3bd76885e11ca7ac5dc73428d06cea13b19b7c57..ac9adf7a9cab711df5c689d4b25c6e80396724ba 100644 (file)
     0x964e5b21, 0x6459, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \\r
   }\r
 \r
-typedef struct _EFI_BLOCK_IO_PROTOCOL  EFI_BLOCK_IO_PROTOCOL;\r
+typedef struct _EFI_BLOCK_IO_PROTOCOL EFI_BLOCK_IO_PROTOCOL;\r
 \r
 ///\r
 /// Protocol GUID name defined in EFI1.1.\r
 ///\r
-#define BLOCK_IO_PROTOCOL       EFI_BLOCK_IO_PROTOCOL_GUID\r
+#define BLOCK_IO_PROTOCOL  EFI_BLOCK_IO_PROTOCOL_GUID\r
 \r
 ///\r
 /// Protocol defined in EFI1.1.\r
 ///\r
-typedef EFI_BLOCK_IO_PROTOCOL   EFI_BLOCK_IO;\r
+typedef EFI_BLOCK_IO_PROTOCOL EFI_BLOCK_IO;\r
 \r
 /**\r
   Reset the Block Device.\r
@@ -129,84 +129,84 @@ typedef struct {
   ///\r
   /// The curent media Id. If the media changes, this value is changed.\r
   ///\r
-  UINT32  MediaId;\r
+  UINT32     MediaId;\r
 \r
   ///\r
   /// TRUE if the media is removable; otherwise, FALSE.\r
   ///\r
-  BOOLEAN RemovableMedia;\r
+  BOOLEAN    RemovableMedia;\r
 \r
   ///\r
   /// TRUE if there is a media currently present in the device;\r
   /// othersise, FALSE. THis field shows the media present status\r
   /// as of the most recent ReadBlocks() or WriteBlocks() call.\r
   ///\r
-  BOOLEAN MediaPresent;\r
+  BOOLEAN    MediaPresent;\r
 \r
   ///\r
   /// TRUE if LBA 0 is the first block of a partition; otherwise\r
   /// FALSE. For media with only one partition this would be TRUE.\r
   ///\r
-  BOOLEAN LogicalPartition;\r
+  BOOLEAN    LogicalPartition;\r
 \r
   ///\r
   /// TRUE if the media is marked read-only otherwise, FALSE.\r
   /// This field shows the read-only status as of the most recent WriteBlocks () call.\r
   ///\r
-  BOOLEAN ReadOnly;\r
+  BOOLEAN    ReadOnly;\r
 \r
   ///\r
   /// TRUE if the WriteBlock () function caches write data.\r
   ///\r
-  BOOLEAN WriteCaching;\r
+  BOOLEAN    WriteCaching;\r
 \r
   ///\r
   /// The intrinsic block size of the device. If the media changes, then\r
   /// this field is updated.\r
   ///\r
-  UINT32  BlockSize;\r
+  UINT32     BlockSize;\r
 \r
   ///\r
   /// Supplies the alignment requirement for any buffer to read or write block(s).\r
   ///\r
-  UINT32  IoAlign;\r
+  UINT32     IoAlign;\r
 \r
   ///\r
   /// The last logical block address on the device.\r
   /// If the media changes, then this field is updated.\r
   ///\r
-  EFI_LBA LastBlock;\r
+  EFI_LBA    LastBlock;\r
 \r
   ///\r
   /// Only present if EFI_BLOCK_IO_PROTOCOL.Revision is greater than or equal to\r
   /// EFI_BLOCK_IO_PROTOCOL_REVISION2. Returns the first LBA is aligned to\r
   /// a physical block boundary.\r
   ///\r
-  EFI_LBA LowestAlignedLba;\r
+  EFI_LBA    LowestAlignedLba;\r
 \r
   ///\r
   /// Only present if EFI_BLOCK_IO_PROTOCOL.Revision is greater than or equal to\r
   /// EFI_BLOCK_IO_PROTOCOL_REVISION2. Returns the number of logical blocks\r
   /// per physical block.\r
   ///\r
-  UINT32 LogicalBlocksPerPhysicalBlock;\r
+  UINT32     LogicalBlocksPerPhysicalBlock;\r
 \r
   ///\r
   /// Only present if EFI_BLOCK_IO_PROTOCOL.Revision is greater than or equal to\r
   /// EFI_BLOCK_IO_PROTOCOL_REVISION3. Returns the optimal transfer length\r
   /// granularity as a number of logical blocks.\r
   ///\r
-  UINT32 OptimalTransferLengthGranularity;\r
+  UINT32     OptimalTransferLengthGranularity;\r
 } EFI_BLOCK_IO_MEDIA;\r
 \r
-#define EFI_BLOCK_IO_PROTOCOL_REVISION  0x00010000\r
-#define EFI_BLOCK_IO_PROTOCOL_REVISION2 0x00020001\r
-#define EFI_BLOCK_IO_PROTOCOL_REVISION3 0x0002001F\r
+#define EFI_BLOCK_IO_PROTOCOL_REVISION   0x00010000\r
+#define EFI_BLOCK_IO_PROTOCOL_REVISION2  0x00020001\r
+#define EFI_BLOCK_IO_PROTOCOL_REVISION3  0x0002001F\r
 \r
 ///\r
 /// Revision defined in EFI1.1.\r
 ///\r
-#define EFI_BLOCK_IO_INTERFACE_REVISION   EFI_BLOCK_IO_PROTOCOL_REVISION\r
+#define EFI_BLOCK_IO_INTERFACE_REVISION  EFI_BLOCK_IO_PROTOCOL_REVISION\r
 \r
 ///\r
 ///  This protocol provides control over block devices.\r
@@ -217,19 +217,18 @@ struct _EFI_BLOCK_IO_PROTOCOL {
   /// revisions must be backwards compatible. If a future version is not\r
   /// back wards compatible, it is not the same GUID.\r
   ///\r
-  UINT64              Revision;\r
+  UINT64                Revision;\r
   ///\r
   /// Pointer to the EFI_BLOCK_IO_MEDIA data for this device.\r
   ///\r
-  EFI_BLOCK_IO_MEDIA  *Media;\r
-\r
-  EFI_BLOCK_RESET     Reset;\r
-  EFI_BLOCK_READ      ReadBlocks;\r
-  EFI_BLOCK_WRITE     WriteBlocks;\r
-  EFI_BLOCK_FLUSH     FlushBlocks;\r
+  EFI_BLOCK_IO_MEDIA    *Media;\r
 \r
+  EFI_BLOCK_RESET       Reset;\r
+  EFI_BLOCK_READ        ReadBlocks;\r
+  EFI_BLOCK_WRITE       WriteBlocks;\r
+  EFI_BLOCK_FLUSH       FlushBlocks;\r
 };\r
 \r
-extern EFI_GUID gEfiBlockIoProtocolGuid;\r
+extern EFI_GUID  gEfiBlockIoProtocolGuid;\r
 \r
 #endif\r