summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/Ppi/Smbus2.h
diff options
context:
space:
mode:
authorAJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524>2007-06-18 20:28:02 +0000
committerAJFISH <AJFISH@6f19259b-4bc3-4df7-8a09-765794883524>2007-06-18 20:28:02 +0000
commit00edb2182b6203a037219c29317ab6362c78b422 (patch)
tree35812fbf442b36bd80270ff0c6ad9f9be4906b92 /MdePkg/Include/Ppi/Smbus2.h
parent00a8a5bfbb20efde3bedc3329a646209c2d1d6ac (diff)
downloadedk2-00edb2182b6203a037219c29317ab6362c78b422.tar.gz
edk2-00edb2182b6203a037219c29317ab6362c78b422.tar.bz2
edk2-00edb2182b6203a037219c29317ab6362c78b422.zip
Removed tabs and fixed some minor coding style issues. Also fixed typo in EFI_PEI_ENTRY_POINT
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2668 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include/Ppi/Smbus2.h')
-rw-r--r--MdePkg/Include/Ppi/Smbus2.h96
1 files changed, 48 insertions, 48 deletions
diff --git a/MdePkg/Include/Ppi/Smbus2.h b/MdePkg/Include/Ppi/Smbus2.h
index b5e2631aa2..42246e10f2 100644
--- a/MdePkg/Include/Ppi/Smbus2.h
+++ b/MdePkg/Include/Ppi/Smbus2.h
@@ -24,7 +24,7 @@
#include <IndustryStandard/SmBus.h>
#define EFI_PEI_SMBUS2_PPI_GUID \
- { 0x9ca93627, 0xb65b, 0x4324, { 0xa2, 0x2, 0xc0, 0xb4, 0x61, 0x76, 0x45, 0x43 } }
+ { 0x9ca93627, 0xb65b, 0x4324, { 0xa2, 0x2, 0xc0, 0xb4, 0x61, 0x76, 0x45, 0x43 } }
typedef struct _EFI_PEI_SMBUS2_PPI EFI_PEI_SMBUS2_PPI;
@@ -32,36 +32,36 @@ typedef struct _EFI_PEI_SMBUS2_PPI EFI_PEI_SMBUS2_PPI;
//
// EFI_SMBUS_DEVICE_COMMAND
//
-typedef UINTN EFI_SMBUS_DEVICE_COMMAND;
+typedef UINTN EFI_SMBUS_DEVICE_COMMAND;
/*
Executes an SMBus operation to an SMBus controller.
- @param This A pointer to the EFI_PEI_SMBUS2_PPI instance.
- @param SlaveAddress The SMBUS hardware address to which the SMBUS device is preassigned or
- allocated.
- @param Command This command is transmitted by the SMBus host controller to the SMBus slave
- device and the interpretation is SMBus slave device specific.
- It can mean the offset to a list of functions inside
- an SMBus slave device. Not all operations or slave devices support
- this command's registers.
+ @param This A pointer to the EFI_PEI_SMBUS2_PPI instance.
+ @param SlaveAddress The SMBUS hardware address to which the SMBUS device is preassigned or
+ allocated.
+ @param Command This command is transmitted by the SMBus host controller to the SMBus slave
+ device and the interpretation is SMBus slave device specific.
+ It can mean the offset to a list of functions inside
+ an SMBus slave device. Not all operations or slave devices support
+ this command's registers.
- @param Operation Signifies which particular SMBus hardware protocol instance that it
- will use to execute the SMBus transactions.
- This SMBus hardware protocol is defined by the System Management Bus (SMBus)
- Specification and is not related to UEFI.
+ @param Operation Signifies which particular SMBus hardware protocol instance that it
+ will use to execute the SMBus transactions.
+ This SMBus hardware protocol is defined by the System Management Bus (SMBus)
+ Specification and is not related to UEFI.
- @param PecCheck Defines if Packet Error Code (PEC) checking is required for this operation.
+ @param PecCheck Defines if Packet Error Code (PEC) checking is required for this operation.
- @param Length Signifies the number of bytes that this operation will do.
- The maximum number of bytes can be revision specific and operation specific.
- This parameter will contain the actual number of bytes that are executed
- for this operation. Not all operations require this argument.
+ @param Length Signifies the number of bytes that this operation will do.
+ The maximum number of bytes can be revision specific and operation specific.
+ This parameter will contain the actual number of bytes that are executed
+ for this operation. Not all operations require this argument.
- @param Buffer Contains the value of data to execute to the SMBus slave device.
- Not all operations require this argument.
- The length of this buffer is identified by Length.
+ @param Buffer Contains the value of data to execute to the SMBus slave device.
+ Not all operations require this argument.
+ The length of this buffer is identified by Length.
@retval EFI_SUCCESS The last data that was returned from the access
@@ -83,13 +83,13 @@ typedef UINTN EFI_SMBUS_DEVICE_COMMAND;
typedef
EFI_STATUS
(EFIAPI *EFI_PEI_SMBUS2_PPI_EXECUTE_OPERATION) (
- IN CONST EFI_PEI_SMBUS2_PPI *This,
- IN CONST EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,
- IN CONST EFI_SMBUS_DEVICE_COMMAND Command,
- IN CONST EFI_SMBUS_OPERATION Operation,
- IN CONST BOOLEAN PecCheck,
- IN OUT UINTN *Length,
- IN OUT VOID *Buffer
+ IN CONST EFI_PEI_SMBUS2_PPI *This,
+ IN CONST EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,
+ IN CONST EFI_SMBUS_DEVICE_COMMAND Command,
+ IN CONST EFI_SMBUS_OPERATION Operation,
+ IN CONST BOOLEAN PecCheck,
+ IN OUT UINTN *Length,
+ IN OUT VOID *Buffer
);
@@ -119,9 +119,9 @@ typedef struct {
typedef
EFI_STATUS
(EFIAPI *EFI_PEI_SMBUS_NOTIFY2_FUNCTION) (
- IN CONST EFI_PEI_SMBUS2_PPI *SmbusPpi,
- IN CONST EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,
- IN CONST UINTN Data
+ IN CONST EFI_PEI_SMBUS2_PPI *SmbusPpi,
+ IN CONST EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,
+ IN CONST UINTN Data
);
/**
The ArpDevice() function enumerates the entire bus or enumerates a specific
@@ -149,10 +149,10 @@ EFI_STATUS
typedef
EFI_STATUS
(EFIAPI *EFI_PEI_SMBUS2_PPI_ARP_DEVICE) (
- IN CONST EFI_PEI_SMBUS2_PPI *This,
- IN CONST BOOLEAN ArpAll,
- IN CONST EFI_SMBUS_UDID *SmbusUdid, OPTIONAL
- IN OUT EFI_SMBUS_DEVICE_ADDRESS *SlaveAddress OPTIONAL
+ IN CONST EFI_PEI_SMBUS2_PPI *This,
+ IN CONST BOOLEAN ArpAll,
+ IN CONST EFI_SMBUS_UDID *SmbusUdid, OPTIONAL
+ IN OUT EFI_SMBUS_DEVICE_ADDRESS *SlaveAddress OPTIONAL
);
@@ -176,9 +176,9 @@ typedef struct {
typedef
EFI_STATUS
(EFIAPI *EFI_PEI_SMBUS2_PPI_GET_ARP_MAP) (
- IN CONST EFI_PEI_SMBUS2_PPI *This,
- IN OUT UINTN *Length,
- IN OUT EFI_SMBUS_DEVICE_MAP **SmbusDeviceMap
+ IN CONST EFI_PEI_SMBUS2_PPI *This,
+ IN OUT UINTN *Length,
+ IN OUT EFI_SMBUS_DEVICE_MAP **SmbusDeviceMap
);
@@ -201,10 +201,10 @@ EFI_STATUS
typedef
EFI_STATUS
(EFIAPI *EFI_PEI_SMBUS2_PPI_NOTIFY) (
- IN CONST EFI_PEI_SMBUS2_PPI *This,
- IN CONST EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,
- IN CONST UINTN Data,
- IN CONST EFI_PEI_SMBUS_NOTIFY2_FUNCTION NotifyFunction
+ IN CONST EFI_PEI_SMBUS2_PPI *This,
+ IN CONST EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,
+ IN CONST UINTN Data,
+ IN CONST EFI_PEI_SMBUS_NOTIFY2_FUNCTION NotifyFunction
);
/**
@@ -231,11 +231,11 @@ EFI_STATUS
**/
struct _EFI_PEI_SMBUS2_PPI {
- EFI_PEI_SMBUS2_PPI_EXECUTE_OPERATION Execute;
- EFI_PEI_SMBUS2_PPI_ARP_DEVICE ArpDevice;
- EFI_PEI_SMBUS2_PPI_GET_ARP_MAP GetArpMap;
- EFI_PEI_SMBUS2_PPI_NOTIFY Notify;
- EFI_GUID Identifier;
+ EFI_PEI_SMBUS2_PPI_EXECUTE_OPERATION Execute;
+ EFI_PEI_SMBUS2_PPI_ARP_DEVICE ArpDevice;
+ EFI_PEI_SMBUS2_PPI_GET_ARP_MAP GetArpMap;
+ EFI_PEI_SMBUS2_PPI_NOTIFY Notify;
+ EFI_GUID Identifier;
};
extern EFI_GUID gEfiPeiSmbus2PpiGuid;