]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/IndustryStandard/SmBus.h
Fix ECC issue.
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / SmBus.h
CommitLineData
a7ed1e2e 1/** @file\r
2 This file declares the SMBus definitions defined in SmBus Specifciation\r
3 V2.0.\r
4\r
5 Copyright (c) 2007, Intel Corporation \r
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
14 @par Revision Reference:\r
15 These definitions are defined in System Management Bus (SmBus) Specification V2.0.\r
16\r
17**/\r
18\r
19#ifndef _SMBUS_H_\r
20#define _SMBUS_H_\r
21\r
22\r
1bc5d021 23///\r
24/// UDID of SMBUS device.\r
25///\r
a7ed1e2e 26typedef struct {\r
27 UINT32 VendorSpecificId;\r
28 UINT16 SubsystemDeviceId;\r
29 UINT16 SubsystemVendorId;\r
30 UINT16 Interface;\r
31 UINT16 DeviceId;\r
32 UINT16 VendorId;\r
33 UINT8 VendorRevision;\r
34 UINT8 DeviceCapabilities;\r
35} EFI_SMBUS_UDID;\r
36\r
1bc5d021 37///\r
38/// Smbus Device Address, Smbus Device Command, Smbus Operations\r
39///\r
a7ed1e2e 40typedef struct {\r
41 UINTN SmbusDeviceAddress : 7;\r
42} EFI_SMBUS_DEVICE_ADDRESS;\r
43\r
a7ed1e2e 44typedef enum _EFI_SMBUS_OPERATION\r
45{\r
46 EfiSmbusQuickRead,\r
47 EfiSmbusQuickWrite,\r
48 EfiSmbusReceiveByte,\r
49 EfiSmbusSendByte,\r
50 EfiSmbusReadByte,\r
51 EfiSmbusWriteByte,\r
52 EfiSmbusReadWord,\r
53 EfiSmbusWriteWord,\r
54 EfiSmbusReadBlock,\r
55 EfiSmbusWriteBlock,\r
56 EfiSmbusProcessCall,\r
57 EfiSmbusBWBRProcessCall\r
58} EFI_SMBUS_OPERATION;\r
59\r
60#endif\r
61\r