X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FIndustryStandard%2FSmBus.h;h=197209cf9fa26685e1bafe66bedc0affc1b58c90;hb=4a228334f067bab982a9c2a5c952192b45a06e57;hp=41a82246cf9c370781f37b6a6cdbb30027dd71fc;hpb=13de892cc309104a0a8c720062d353a3fa5da6b0;p=mirror_edk2.git diff --git a/MdePkg/Include/IndustryStandard/SmBus.h b/MdePkg/Include/IndustryStandard/SmBus.h index 41a82246cf..197209cf9f 100644 --- a/MdePkg/Include/IndustryStandard/SmBus.h +++ b/MdePkg/Include/IndustryStandard/SmBus.h @@ -1,9 +1,9 @@ /** @file - This file declares the SMBus definitions defined in SmBus Specifciation - V2.0. + This file declares the SMBus definitions defined in SmBus Specifciation V2.0 + and defined in PI1.0 specification volume 5. - Copyright (c) 2007, Intel Corporation - All rights reserved. This program and the accompanying materials + Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.
+ This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -11,25 +11,53 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - @par Revision Reference: - These definitions are defined in System Management Bus (SmBus) Specification V2.0. - **/ #ifndef _SMBUS_H_ #define _SMBUS_H_ -// -// Smbus Device Address, Smbus Device Command, Smbus Operations -// + +/// +/// UDID of SMBUS device. +/// +typedef struct { + UINT32 VendorSpecificId; + UINT16 SubsystemDeviceId; + UINT16 SubsystemVendorId; + UINT16 Interface; + UINT16 DeviceId; + UINT16 VendorId; + UINT8 VendorRevision; + UINT8 DeviceCapabilities; +} EFI_SMBUS_UDID; + +/// +/// Smbus Device Address +/// typedef struct { + /// + /// The SMBUS hardware address to which the SMBUS device is preassigned or allocated. + /// UINTN SmbusDeviceAddress : 7; } EFI_SMBUS_DEVICE_ADDRESS; -typedef UINTN EFI_SMBUS_DEVICE_COMMAND; +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; -typedef enum _EFI_SMBUS_OPERATION -{ +/// +/// Smbus Operations +/// +typedef enum _EFI_SMBUS_OPERATION { EfiSmbusQuickRead, EfiSmbusQuickWrite, EfiSmbusReceiveByte, @@ -44,5 +72,10 @@ typedef enum _EFI_SMBUS_OPERATION EfiSmbusBWBRProcessCall } EFI_SMBUS_OPERATION; +/// +/// EFI_SMBUS_DEVICE_COMMAND +/// +typedef UINTN EFI_SMBUS_DEVICE_COMMAND; + #endif