27#define SMBUS_LIB_ADDRESS(SlaveAddress, Command, Length, Pec) \
28 ( ((Pec) ? BIT22: 0) | \
29 (((SlaveAddress) & 0x7f) << 1) | \
30 (((Command) & 0xff) << 8) | \
31 (((Length) & 0x3f) << 16) \
39#define SMBUS_LIB_SLAVE_ADDRESS(SmBusAddress) (((SmBusAddress) >> 1) & 0x7f)
46#define SMBUS_LIB_COMMAND(SmBusAddress) (((SmBusAddress) >> 8) & 0xff)
53#define SMBUS_LIB_LENGTH(SmBusAddress) (((SmBusAddress) >> 16) & 0x3f)
60#define SMBUS_LIB_PEC(SmBusAddress) ((BOOLEAN) (((SmBusAddress) & BIT22) != 0))
67#define SMBUS_LIB_RESERVED(SmBusAddress) ((SmBusAddress) & ~(BIT23 - 2))
97 OUT RETURN_STATUS *Status OPTIONAL
128 OUT RETURN_STATUS *Status OPTIONAL
162 OUT RETURN_STATUS *Status OPTIONAL
198 OUT RETURN_STATUS *Status OPTIONAL
231 OUT RETURN_STATUS *Status OPTIONAL
267 OUT RETURN_STATUS *Status OPTIONAL
300 OUT RETURN_STATUS *Status OPTIONAL
336 OUT RETURN_STATUS *Status OPTIONAL
372 OUT RETURN_STATUS *Status OPTIONAL
411 OUT RETURN_STATUS *Status OPTIONAL
447 OUT RETURN_STATUS *Status OPTIONAL
485 IN VOID *WriteBuffer,
486 OUT VOID *ReadBuffer,
487 OUT RETURN_STATUS *Status OPTIONAL
UINT16 EFIAPI SmBusReadDataWord(IN UINTN SmBusAddress, OUT RETURN_STATUS *Status OPTIONAL)
UINT8 EFIAPI SmBusWriteDataByte(IN UINTN SmBusAddress, IN UINT8 Value, OUT RETURN_STATUS *Status OPTIONAL)
UINTN EFIAPI SmBusWriteBlock(IN UINTN SmBusAddress, OUT VOID *Buffer, OUT RETURN_STATUS *Status OPTIONAL)
UINT16 EFIAPI SmBusProcessCall(IN UINTN SmBusAddress, IN UINT16 Value, OUT RETURN_STATUS *Status OPTIONAL)
VOID EFIAPI SmBusQuickWrite(IN UINTN SmBusAddress, OUT RETURN_STATUS *Status OPTIONAL)
UINTN EFIAPI SmBusReadBlock(IN UINTN SmBusAddress, OUT VOID *Buffer, OUT RETURN_STATUS *Status OPTIONAL)
UINT8 EFIAPI SmBusReceiveByte(IN UINTN SmBusAddress, OUT RETURN_STATUS *Status OPTIONAL)
VOID EFIAPI SmBusQuickRead(IN UINTN SmBusAddress, OUT RETURN_STATUS *Status OPTIONAL)
UINT16 EFIAPI SmBusWriteDataWord(IN UINTN SmBusAddress, IN UINT16 Value, OUT RETURN_STATUS *Status OPTIONAL)
UINTN EFIAPI SmBusBlockProcessCall(IN UINTN SmBusAddress, IN VOID *WriteBuffer, OUT VOID *ReadBuffer, OUT RETURN_STATUS *Status OPTIONAL)
UINT8 EFIAPI SmBusSendByte(IN UINTN SmBusAddress, IN UINT8 Value, OUT RETURN_STATUS *Status OPTIONAL)
UINT8 EFIAPI SmBusReadDataByte(IN UINTN SmBusAddress, OUT RETURN_STATUS *Status OPTIONAL)