]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Pi/PiI2c.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Pi / PiI2c.h
index 2662533c58d8035e83beed13e03ecebc8a5ae178..10b61cd5d520817a63bde8237dbf87f6403f562e 100644 (file)
@@ -17,7 +17,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 /// I2C protocol stack to address the duplicated address space between 0\r
 //  and 127 in 10-bit mode.\r
 ///\r
-#define I2C_ADDRESSING_10_BIT     0x80000000\r
+#define I2C_ADDRESSING_10_BIT  0x80000000\r
 \r
 ///\r
 /// I2C controller capabilities\r
@@ -31,24 +31,24 @@ typedef struct {
   ///\r
   /// Length of this data structure in bytes\r
   ///\r
-  UINT32 StructureSizeInBytes;\r
+  UINT32    StructureSizeInBytes;\r
 \r
   ///\r
   /// The maximum number of bytes the I2C host controller is able to\r
   /// receive from the I2C bus.\r
   ///\r
-  UINT32 MaximumReceiveBytes;\r
+  UINT32    MaximumReceiveBytes;\r
 \r
   ///\r
   /// The maximum number of bytes the I2C host controller is able to send\r
   /// on the I2C  bus.\r
   ///\r
-  UINT32 MaximumTransmitBytes;\r
+  UINT32    MaximumTransmitBytes;\r
 \r
   ///\r
   /// The maximum number of bytes in the I2C bus transaction.\r
   ///\r
-  UINT32 MaximumTotalBytes;\r
+  UINT32    MaximumTotalBytes;\r
 } EFI_I2C_CONTROLLER_CAPABILITIES;\r
 \r
 ///\r
@@ -67,12 +67,12 @@ typedef struct {
   /// combines both the manufacture name and the I2C part number into\r
   /// a single value specified as a GUID.\r
   ///\r
-  CONST EFI_GUID *DeviceGuid;\r
+  CONST EFI_GUID    *DeviceGuid;\r
 \r
   ///\r
   /// Unique ID of the I2C part within the system\r
   ///\r
-  UINT32 DeviceIndex;\r
+  UINT32            DeviceIndex;\r
 \r
   ///\r
   /// Hardware revision - ACPI _HRV value.  See the Advanced\r
@@ -83,29 +83,29 @@ typedef struct {
   /// http://www.acpi.info/spec.htm\r
   /// http://msdn.microsoft.com/en-us/library/windows/hardware/jj131711(v=vs.85).aspx\r
   ///\r
-  UINT32 HardwareRevision;\r
+  UINT32          HardwareRevision;\r
 \r
   ///\r
   /// I2C bus configuration for the I2C device\r
   ///\r
-  UINT32 I2cBusConfiguration;\r
+  UINT32          I2cBusConfiguration;\r
 \r
   ///\r
   /// Number of slave addresses for the I2C device.\r
   ///\r
-  UINT32 SlaveAddressCount;\r
+  UINT32          SlaveAddressCount;\r
 \r
   ///\r
   /// Pointer to the array of slave addresses for the I2C device.\r
   ///\r
-  CONST UINT32 *SlaveAddressArray;\r
+  CONST UINT32    *SlaveAddressArray;\r
 } EFI_I2C_DEVICE;\r
 \r
 ///\r
 /// Define the I2C flags\r
 ///\r
 /// I2C read operation when set\r
-#define I2C_FLAG_READ               0x00000001\r
+#define I2C_FLAG_READ  0x00000001\r
 \r
 ///\r
 /// Define the flags for SMBus operation\r
@@ -116,7 +116,7 @@ typedef struct {
 ///\r
 \r
 /// SMBus operation\r
-#define I2C_FLAG_SMBUS_OPERATION    0x00010000\r
+#define I2C_FLAG_SMBUS_OPERATION  0x00010000\r
 \r
 /// SMBus block operation\r
 ///   The flag I2C_FLAG_SMBUS_BLOCK causes the I2C master protocol to update\r
@@ -127,19 +127,19 @@ typedef struct {
 ///   of LengthInBytes is to be read from the device.  The first byte\r
 ///   read contains the number of bytes remaining to be read, plus an\r
 ///   optional PEC value.\r
-#define I2C_FLAG_SMBUS_BLOCK        0x00020000\r
+#define I2C_FLAG_SMBUS_BLOCK  0x00020000\r
 \r
 /// SMBus process call operation\r
-#define I2C_FLAG_SMBUS_PROCESS_CALL 0x00040000\r
+#define I2C_FLAG_SMBUS_PROCESS_CALL  0x00040000\r
 \r
 /// SMBus use packet error code (PEC)\r
 ///   Note that the I2C master protocol may clear the I2C_FLAG_SMBUS_PEC bit\r
 ///   to indicate that the PEC value was checked by the hardware and is\r
 ///   not appended to the returned read data.\r
 ///\r
-#define I2C_FLAG_SMBUS_PEC          0x00080000\r
+#define I2C_FLAG_SMBUS_PEC  0x00080000\r
 \r
-//----------------------------------------------------------------------\r
+// ----------------------------------------------------------------------\r
 ///\r
 /// QuickRead:          OperationCount=1,\r
 ///                     LengthInBytes=0,   Flags=I2C_FLAG_READ\r
@@ -238,7 +238,7 @@ typedef struct {
 ///                                            | I2C_FLAG_SMBUS_PEC\r
 ///                     LengthInBytes=34,  Flags=I2C_FLAG_READ\r
 ///\r
-//----------------------------------------------------------------------\r
+// ----------------------------------------------------------------------\r
 \r
 ///\r
 /// I2C device operation\r
@@ -260,20 +260,20 @@ typedef struct {
   ///\r
   /// Flags to qualify the I2C operation.\r
   ///\r
-  UINT32 Flags;\r
+  UINT32    Flags;\r
 \r
   ///\r
   /// Number of bytes to send to or receive from the I2C device.  A ping\r
   /// (address only byte/bytes)  is indicated by setting the LengthInBytes\r
   /// to zero.\r
   ///\r
-  UINT32 LengthInBytes;\r
+  UINT32    LengthInBytes;\r
 \r
   ///\r
   /// Pointer to a buffer containing the data to send or to receive from\r
   /// the I2C device.  The Buffer must be at least LengthInBytes in size.\r
   ///\r
-  UINT8 *Buffer;\r
+  UINT8     *Buffer;\r
 } EFI_I2C_OPERATION;\r
 \r
 ///\r
@@ -290,12 +290,12 @@ typedef struct {
   ///\r
   /// Number of elements in the operation array\r
   ///\r
-  UINTN OperationCount;\r
+  UINTN                OperationCount;\r
 \r
   ///\r
   /// Description of the I2C operation\r
   ///\r
-  EFI_I2C_OPERATION Operation [1];\r
+  EFI_I2C_OPERATION    Operation[1];\r
 } EFI_I2C_REQUEST_PACKET;\r
 \r
-#endif  //  __PI_I2C_H__\r
+#endif //  __PI_I2C_H__\r