]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/IndustryStandard/SmBus.h
Import Pal.h and Sal.h.
[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
23//\r
24// UDID of SMBUS device.\r
25//\r
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
37//\r
38// Smbus Device Address, Smbus Device Command, Smbus Operations\r
39//\r
40typedef struct {\r
41 UINTN SmbusDeviceAddress : 7;\r
42} EFI_SMBUS_DEVICE_ADDRESS;\r
43\r
44typedef UINTN EFI_SMBUS_DEVICE_COMMAND;\r
45\r
46typedef enum _EFI_SMBUS_OPERATION\r
47{\r
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
62#endif\r
63\r