]>
Commit | Line | Data |
---|---|---|
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 | // Smbus Device Address, Smbus Device Command, Smbus Operations\r | |
24 | //\r | |
25 | typedef struct {\r | |
26 | UINTN SmbusDeviceAddress : 7;\r | |
27 | } EFI_SMBUS_DEVICE_ADDRESS;\r | |
28 | \r | |
29 | typedef UINTN EFI_SMBUS_DEVICE_COMMAND;\r | |
30 | \r | |
31 | typedef enum _EFI_SMBUS_OPERATION\r | |
32 | {\r | |
33 | EfiSmbusQuickRead,\r | |
34 | EfiSmbusQuickWrite,\r | |
35 | EfiSmbusReceiveByte,\r | |
36 | EfiSmbusSendByte,\r | |
37 | EfiSmbusReadByte,\r | |
38 | EfiSmbusWriteByte,\r | |
39 | EfiSmbusReadWord,\r | |
40 | EfiSmbusWriteWord,\r | |
41 | EfiSmbusReadBlock,\r | |
42 | EfiSmbusWriteBlock,\r | |
43 | EfiSmbusProcessCall,\r | |
44 | EfiSmbusBWBRProcessCall\r | |
45 | } EFI_SMBUS_OPERATION;\r | |
46 | \r | |
47 | #endif\r | |
48 | \r |