summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/Protocol/I2cIo.h
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Include/Protocol/I2cIo.h')
-rw-r--r--MdePkg/Include/Protocol/I2cIo.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/MdePkg/Include/Protocol/I2cIo.h b/MdePkg/Include/Protocol/I2cIo.h
index 09076df7d0..e38fd9450e 100644
--- a/MdePkg/Include/Protocol/I2cIo.h
+++ b/MdePkg/Include/Protocol/I2cIo.h
@@ -17,7 +17,7 @@
#include <Pi/PiI2c.h>
-#define EFI_I2C_IO_PROTOCOL_GUID { 0xb60a3e6b, 0x18c4, 0x46e5, { 0xa2, 0x9a, 0xc9, 0xa1, 0x06, 0x65, 0xa2, 0x8e }}
+#define EFI_I2C_IO_PROTOCOL_GUID { 0xb60a3e6b, 0x18c4, 0x46e5, { 0xa2, 0x9a, 0xc9, 0xa1, 0x06, 0x65, 0xa2, 0x8e }}
///
/// I2C I/O protocol
@@ -38,8 +38,7 @@
/// for the I2C device required to implement the EFI_I2C_ENUMERATE_PROTOCOL.
/// The order of the list must be preserved.
///
-typedef struct _EFI_I2C_IO_PROTOCOL EFI_I2C_IO_PROTOCOL;
-
+typedef struct _EFI_I2C_IO_PROTOCOL EFI_I2C_IO_PROTOCOL;
/**
Queue an I2C transaction for execution on the I2C device.
@@ -114,7 +113,7 @@ typedef struct _EFI_I2C_IO_PROTOCOL EFI_I2C_IO_PROTOCOL;
**/
typedef
EFI_STATUS
-(EFIAPI *EFI_I2C_IO_PROTOCOL_QUEUE_REQUEST) (
+(EFIAPI *EFI_I2C_IO_PROTOCOL_QUEUE_REQUEST)(
IN CONST EFI_I2C_IO_PROTOCOL *This,
IN UINTN SlaveAddressIndex,
IN EFI_EVENT Event OPTIONAL,
@@ -129,7 +128,7 @@ struct _EFI_I2C_IO_PROTOCOL {
///
/// Queue an I2C transaction for execution on the I2C device.
///
- EFI_I2C_IO_PROTOCOL_QUEUE_REQUEST QueueRequest;
+ EFI_I2C_IO_PROTOCOL_QUEUE_REQUEST QueueRequest;
///
/// Unique value assigned by the silicon manufacture or the third
@@ -137,30 +136,30 @@ struct _EFI_I2C_IO_PROTOCOL {
/// combines both the manufacture name and the I2C part number into
/// a single value specified as a GUID.
///
- CONST EFI_GUID *DeviceGuid;
+ CONST EFI_GUID *DeviceGuid;
///
/// Unique ID of the I2C part within the system
///
- UINT32 DeviceIndex;
+ UINT32 DeviceIndex;
///
/// Hardware revision - ACPI _HRV value. See the Advanced Configuration
/// and Power Interface Specification, Revision 5.0 for the field format
/// and the Plug and play support for I2C web-page for restriction on values.
///
- UINT32 HardwareRevision;
+ UINT32 HardwareRevision;
///
/// Pointer to an EFI_I2C_CONTROLLER_CAPABILITIES data structure containing
/// the capabilities of the I2C host controller.
///
- CONST EFI_I2C_CONTROLLER_CAPABILITIES *I2cControllerCapabilities;
+ CONST EFI_I2C_CONTROLLER_CAPABILITIES *I2cControllerCapabilities;
};
///
/// Reference to variable defined in the .DEC file
///
-extern EFI_GUID gEfiI2cIoProtocolGuid;
+extern EFI_GUID gEfiI2cIoProtocolGuid;
-#endif // __I2C_IO_H__
+#endif // __I2C_IO_H__