/// 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
///\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
/// 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
/// 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
///\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
/// 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
/// | I2C_FLAG_SMBUS_PEC\r
/// LengthInBytes=34, Flags=I2C_FLAG_READ\r
///\r
-//----------------------------------------------------------------------\r
+// ----------------------------------------------------------------------\r
\r
///\r
/// I2C device operation\r
///\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
///\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