#include <IndustryStandard/SmBus.h>\r
\r
#define EFI_PEI_SMBUS2_PPI_GUID \\r
- { 0x9ca93627, 0xb65b, 0x4324, { 0xa2, 0x2, 0xc0, 0xb4, 0x61, 0x76, 0x45, 0x43 } }\r
+ { 0x9ca93627, 0xb65b, 0x4324, { 0xa2, 0x2, 0xc0, 0xb4, 0x61, 0x76, 0x45, 0x43 } }\r
\r
\r
typedef struct _EFI_PEI_SMBUS2_PPI EFI_PEI_SMBUS2_PPI;\r
//\r
// EFI_SMBUS_DEVICE_COMMAND\r
//\r
-typedef UINTN EFI_SMBUS_DEVICE_COMMAND;\r
+typedef UINTN EFI_SMBUS_DEVICE_COMMAND;\r
\r
\r
/*\r
Executes an SMBus operation to an SMBus controller.\r
\r
- @param This A pointer to the EFI_PEI_SMBUS2_PPI instance.\r
- @param SlaveAddress The SMBUS hardware address to which the SMBUS device is preassigned or\r
- allocated.\r
- @param Command This command is transmitted by the SMBus host controller to the SMBus slave \r
- device and the interpretation is SMBus slave device specific. \r
- It can mean the offset to a list of functions inside \r
- an SMBus slave device. Not all operations or slave devices support\r
- this command's registers.\r
+ @param This A pointer to the EFI_PEI_SMBUS2_PPI instance.\r
+ @param SlaveAddress The SMBUS hardware address to which the SMBUS device is preassigned or\r
+ allocated.\r
+ @param Command This command is transmitted by the SMBus host controller to the SMBus slave \r
+ device and the interpretation is SMBus slave device specific. \r
+ It can mean the offset to a list of functions inside \r
+ an SMBus slave device. Not all operations or slave devices support\r
+ this command's registers.\r
\r
- @param Operation Signifies which particular SMBus hardware protocol instance that it \r
- will use to execute the SMBus transactions. \r
- This SMBus hardware protocol is defined by the System Management Bus (SMBus) \r
- Specification and is not related to UEFI.\r
+ @param Operation Signifies which particular SMBus hardware protocol instance that it \r
+ will use to execute the SMBus transactions. \r
+ This SMBus hardware protocol is defined by the System Management Bus (SMBus) \r
+ Specification and is not related to UEFI.\r
\r
- @param PecCheck Defines if Packet Error Code (PEC) checking is required for this operation.\r
+ @param PecCheck Defines if Packet Error Code (PEC) checking is required for this operation.\r
\r
- @param Length Signifies the number of bytes that this operation will do. \r
- The maximum number of bytes can be revision specific and operation specific.\r
- This parameter will contain the actual number of bytes that are executed\r
- for this operation. Not all operations require this argument.\r
+ @param Length Signifies the number of bytes that this operation will do. \r
+ The maximum number of bytes can be revision specific and operation specific.\r
+ This parameter will contain the actual number of bytes that are executed\r
+ for this operation. Not all operations require this argument.\r
\r
- @param Buffer Contains the value of data to execute to the SMBus slave device. \r
- Not all operations require this argument. \r
- The length of this buffer is identified by Length.\r
+ @param Buffer Contains the value of data to execute to the SMBus slave device. \r
+ Not all operations require this argument. \r
+ The length of this buffer is identified by Length.\r
\r
\r
@retval EFI_SUCCESS The last data that was returned from the access\r
typedef\r
EFI_STATUS\r
(EFIAPI *EFI_PEI_SMBUS2_PPI_EXECUTE_OPERATION) (\r
- IN CONST EFI_PEI_SMBUS2_PPI *This,\r
- IN CONST EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,\r
- IN CONST EFI_SMBUS_DEVICE_COMMAND Command,\r
- IN CONST EFI_SMBUS_OPERATION Operation,\r
- IN CONST BOOLEAN PecCheck,\r
- IN OUT UINTN *Length,\r
- IN OUT VOID *Buffer\r
+ IN CONST EFI_PEI_SMBUS2_PPI *This,\r
+ IN CONST EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,\r
+ IN CONST EFI_SMBUS_DEVICE_COMMAND Command,\r
+ IN CONST EFI_SMBUS_OPERATION Operation,\r
+ IN CONST BOOLEAN PecCheck,\r
+ IN OUT UINTN *Length,\r
+ IN OUT VOID *Buffer\r
);\r
\r
\r
typedef\r
EFI_STATUS\r
(EFIAPI *EFI_PEI_SMBUS_NOTIFY2_FUNCTION) (\r
- IN CONST EFI_PEI_SMBUS2_PPI *SmbusPpi,\r
- IN CONST EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,\r
- IN CONST UINTN Data\r
+ IN CONST EFI_PEI_SMBUS2_PPI *SmbusPpi,\r
+ IN CONST EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,\r
+ IN CONST UINTN Data\r
);\r
/**\r
The ArpDevice() function enumerates the entire bus or enumerates a specific \r
typedef\r
EFI_STATUS\r
(EFIAPI *EFI_PEI_SMBUS2_PPI_ARP_DEVICE) (\r
- IN CONST EFI_PEI_SMBUS2_PPI *This,\r
- IN CONST BOOLEAN ArpAll,\r
- IN CONST EFI_SMBUS_UDID *SmbusUdid, OPTIONAL\r
- IN OUT EFI_SMBUS_DEVICE_ADDRESS *SlaveAddress OPTIONAL\r
+ IN CONST EFI_PEI_SMBUS2_PPI *This,\r
+ IN CONST BOOLEAN ArpAll,\r
+ IN CONST EFI_SMBUS_UDID *SmbusUdid, OPTIONAL\r
+ IN OUT EFI_SMBUS_DEVICE_ADDRESS *SlaveAddress OPTIONAL\r
);\r
\r
\r
typedef\r
EFI_STATUS\r
(EFIAPI *EFI_PEI_SMBUS2_PPI_GET_ARP_MAP) (\r
- IN CONST EFI_PEI_SMBUS2_PPI *This,\r
- IN OUT UINTN *Length,\r
- IN OUT EFI_SMBUS_DEVICE_MAP **SmbusDeviceMap\r
+ IN CONST EFI_PEI_SMBUS2_PPI *This,\r
+ IN OUT UINTN *Length,\r
+ IN OUT EFI_SMBUS_DEVICE_MAP **SmbusDeviceMap\r
);\r
\r
\r
typedef\r
EFI_STATUS\r
(EFIAPI *EFI_PEI_SMBUS2_PPI_NOTIFY) (\r
- IN CONST EFI_PEI_SMBUS2_PPI *This,\r
- IN CONST EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,\r
- IN CONST UINTN Data,\r
- IN CONST EFI_PEI_SMBUS_NOTIFY2_FUNCTION NotifyFunction\r
+ IN CONST EFI_PEI_SMBUS2_PPI *This,\r
+ IN CONST EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,\r
+ IN CONST UINTN Data,\r
+ IN CONST EFI_PEI_SMBUS_NOTIFY2_FUNCTION NotifyFunction\r
);\r
\r
/**\r
\r
**/\r
struct _EFI_PEI_SMBUS2_PPI {\r
- EFI_PEI_SMBUS2_PPI_EXECUTE_OPERATION Execute;\r
- EFI_PEI_SMBUS2_PPI_ARP_DEVICE ArpDevice;\r
- EFI_PEI_SMBUS2_PPI_GET_ARP_MAP GetArpMap;\r
- EFI_PEI_SMBUS2_PPI_NOTIFY Notify;\r
- EFI_GUID Identifier;\r
+ EFI_PEI_SMBUS2_PPI_EXECUTE_OPERATION Execute;\r
+ EFI_PEI_SMBUS2_PPI_ARP_DEVICE ArpDevice;\r
+ EFI_PEI_SMBUS2_PPI_GET_ARP_MAP GetArpMap;\r
+ EFI_PEI_SMBUS2_PPI_NOTIFY Notify;\r
+ EFI_GUID Identifier;\r
};\r
\r
extern EFI_GUID gEfiPeiSmbus2PpiGuid;\r