2007-06-19 12:39:04 +02:00
|
|
|
/** @file
|
2020-02-07 02:07:36 +01:00
|
|
|
This file declares the SMBus definitions defined in SmBus Specification V2.0
|
2008-12-09 15:04:41 +01:00
|
|
|
and defined in PI1.0 specification volume 5.
|
2007-06-19 12:39:04 +02:00
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:06:00 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2007-06-19 12:39:04 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _SMBUS_H_
|
|
|
|
#define _SMBUS_H_
|
|
|
|
|
|
|
|
|
2008-08-14 05:21:03 +02:00
|
|
|
///
|
|
|
|
/// UDID of SMBUS device.
|
|
|
|
///
|
2007-06-19 12:39:04 +02:00
|
|
|
typedef struct {
|
|
|
|
UINT32 VendorSpecificId;
|
|
|
|
UINT16 SubsystemDeviceId;
|
|
|
|
UINT16 SubsystemVendorId;
|
|
|
|
UINT16 Interface;
|
|
|
|
UINT16 DeviceId;
|
|
|
|
UINT16 VendorId;
|
|
|
|
UINT8 VendorRevision;
|
|
|
|
UINT8 DeviceCapabilities;
|
|
|
|
} EFI_SMBUS_UDID;
|
|
|
|
|
2008-08-14 05:21:03 +02:00
|
|
|
///
|
2008-10-20 17:16:32 +02:00
|
|
|
/// Smbus Device Address
|
2008-08-14 05:21:03 +02:00
|
|
|
///
|
2007-06-19 12:39:04 +02:00
|
|
|
typedef struct {
|
2008-12-09 15:04:41 +01:00
|
|
|
///
|
|
|
|
/// The SMBUS hardware address to which the SMBUS device is preassigned or allocated.
|
|
|
|
///
|
2007-06-19 12:39:04 +02:00
|
|
|
UINTN SmbusDeviceAddress : 7;
|
|
|
|
} EFI_SMBUS_DEVICE_ADDRESS;
|
|
|
|
|
2008-12-09 15:35:34 +01:00
|
|
|
typedef struct {
|
|
|
|
///
|
|
|
|
/// The SMBUS hardware address to which the SMBUS device is preassigned or
|
|
|
|
/// allocated. Type EFI_SMBUS_DEVICE_ADDRESS is defined in EFI_PEI_SMBUS2_PPI.Execute().
|
|
|
|
///
|
|
|
|
EFI_SMBUS_DEVICE_ADDRESS SmbusDeviceAddress;
|
|
|
|
///
|
|
|
|
/// The SMBUS Unique Device Identifier (UDID) as defined in EFI_SMBUS_UDID.
|
|
|
|
/// Type EFI_SMBUS_UDID is defined in EFI_PEI_SMBUS2_PPI.ArpDevice().
|
|
|
|
///
|
|
|
|
EFI_SMBUS_UDID SmbusDeviceUdid;
|
|
|
|
} EFI_SMBUS_DEVICE_MAP;
|
|
|
|
|
2008-10-20 17:16:32 +02:00
|
|
|
///
|
|
|
|
/// Smbus Operations
|
|
|
|
///
|
2008-12-09 15:04:41 +01:00
|
|
|
typedef enum _EFI_SMBUS_OPERATION {
|
2007-06-19 12:39:04 +02:00
|
|
|
EfiSmbusQuickRead,
|
|
|
|
EfiSmbusQuickWrite,
|
|
|
|
EfiSmbusReceiveByte,
|
|
|
|
EfiSmbusSendByte,
|
|
|
|
EfiSmbusReadByte,
|
|
|
|
EfiSmbusWriteByte,
|
|
|
|
EfiSmbusReadWord,
|
|
|
|
EfiSmbusWriteWord,
|
|
|
|
EfiSmbusReadBlock,
|
|
|
|
EfiSmbusWriteBlock,
|
|
|
|
EfiSmbusProcessCall,
|
|
|
|
EfiSmbusBWBRProcessCall
|
|
|
|
} EFI_SMBUS_OPERATION;
|
|
|
|
|
2008-12-09 15:04:41 +01:00
|
|
|
///
|
|
|
|
/// EFI_SMBUS_DEVICE_COMMAND
|
|
|
|
///
|
|
|
|
typedef UINTN EFI_SMBUS_DEVICE_COMMAND;
|
|
|
|
|
2007-06-19 12:39:04 +02:00
|
|
|
#endif
|
|
|
|
|