]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/IndustryStandard/SmBus.h
Add the detailed descriptions for the structure data member in these protocol.
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / SmBus.h
CommitLineData
a7ed1e2e 1/** @file\r
992f22b9
LG
2 This file declares the SMBus definitions defined in SmBus Specifciation V2.0\r
3 and defined in PI1.0 specification volume 5.\r
a7ed1e2e 4\r
4135253b 5 Copyright (c) 2007 - 2008, Intel Corporation \r
a7ed1e2e 6 All rights reserved. This program and the accompanying materials \r
7 are licensed and made available under the terms and conditions of the BSD License \r
8 which accompanies this distribution. The full text of the license may be found at \r
9 http://opensource.org/licenses/bsd-license.php \r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
13\r
a7ed1e2e 14**/\r
15\r
16#ifndef _SMBUS_H_\r
17#define _SMBUS_H_\r
18\r
19\r
1bc5d021 20///\r
21/// UDID of SMBUS device.\r
22///\r
a7ed1e2e 23typedef struct {\r
24 UINT32 VendorSpecificId;\r
25 UINT16 SubsystemDeviceId;\r
26 UINT16 SubsystemVendorId;\r
27 UINT16 Interface;\r
28 UINT16 DeviceId;\r
29 UINT16 VendorId;\r
30 UINT8 VendorRevision;\r
31 UINT8 DeviceCapabilities;\r
32} EFI_SMBUS_UDID;\r
33\r
1bc5d021 34///\r
4135253b 35/// Smbus Device Address\r
1bc5d021 36///\r
a7ed1e2e 37typedef struct {\r
992f22b9
LG
38 ///\r
39 /// The SMBUS hardware address to which the SMBUS device is preassigned or allocated.\r
40 ///\r
a7ed1e2e 41 UINTN SmbusDeviceAddress : 7;\r
42} EFI_SMBUS_DEVICE_ADDRESS;\r
43\r
4135253b 44///\r
45/// Smbus Operations\r
46///\r
992f22b9 47typedef enum _EFI_SMBUS_OPERATION {\r
a7ed1e2e 48 EfiSmbusQuickRead,\r
49 EfiSmbusQuickWrite,\r
50 EfiSmbusReceiveByte,\r
51 EfiSmbusSendByte,\r
52 EfiSmbusReadByte,\r
53 EfiSmbusWriteByte,\r
54 EfiSmbusReadWord,\r
55 EfiSmbusWriteWord,\r
56 EfiSmbusReadBlock,\r
57 EfiSmbusWriteBlock,\r
58 EfiSmbusProcessCall,\r
59 EfiSmbusBWBRProcessCall\r
60} EFI_SMBUS_OPERATION;\r
61\r
992f22b9
LG
62///\r
63/// EFI_SMBUS_DEVICE_COMMAND\r
64///\r
65typedef UINTN EFI_SMBUS_DEVICE_COMMAND;\r
66\r
a7ed1e2e 67#endif\r
68\r