]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/IndustryStandard/SmBus.h
1) Clean up MdePkg/Include/Common/BootScript.h and remove boot script definition...
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / SmBus.h
1 /** @file
2 This file declares the SMBus definitions defined in SmBus Specifciation
3 V2.0.
4
5 Copyright (c) 2007, Intel Corporation
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 @par Revision Reference:
15 These definitions are defined in System Management Bus (SmBus) Specification V2.0.
16
17 **/
18
19 #ifndef _SMBUS_H_
20 #define _SMBUS_H_
21
22 //
23 // Smbus Device Address, Smbus Device Command, Smbus Operations
24 //
25 typedef struct {
26 UINTN SmbusDeviceAddress : 7;
27 } EFI_SMBUS_DEVICE_ADDRESS;
28
29 typedef UINTN EFI_SMBUS_DEVICE_COMMAND;
30
31 typedef enum _EFI_SMBUS_OPERATION
32 {
33 EfiSmbusQuickRead,
34 EfiSmbusQuickWrite,
35 EfiSmbusReceiveByte,
36 EfiSmbusSendByte,
37 EfiSmbusReadByte,
38 EfiSmbusWriteByte,
39 EfiSmbusReadWord,
40 EfiSmbusWriteWord,
41 EfiSmbusReadBlock,
42 EfiSmbusWriteBlock,
43 EfiSmbusProcessCall,
44 EfiSmbusBWBRProcessCall
45 } EFI_SMBUS_OPERATION;
46
47 #endif
48 /** @file
49 This file declares the SMBus definitions defined in SmBus Specifciation
50 V2.0.
51
52 Copyright (c) 2007, Intel Corporation
53 All rights reserved. This program and the accompanying materials
54 are licensed and made available under the terms and conditions of the BSD License
55 which accompanies this distribution. The full text of the license may be found at
56 http://opensource.org/licenses/bsd-license.php
57
58 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
59 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
60
61 @par Revision Reference:
62 These definitions are defined in System Management Bus (SmBus) Specification V2.0.
63
64 **/
65
66 #ifndef _SMBUS_H_
67 #define _SMBUS_H_
68
69 //
70 // Smbus Device Address, Smbus Device Command, Smbus Operations
71 //
72 typedef struct {
73 UINTN SmbusDeviceAddress : 7;
74 } EFI_SMBUS_DEVICE_ADDRESS;
75
76 typedef UINTN EFI_SMBUS_DEVICE_COMMAND;
77
78 typedef enum _EFI_SMBUS_OPERATION
79 {
80 EfiSmbusQuickRead,
81 EfiSmbusQuickWrite,
82 EfiSmbusReceiveByte,
83 EfiSmbusSendByte,
84 EfiSmbusReadByte,
85 EfiSmbusWriteByte,
86 EfiSmbusReadWord,
87 EfiSmbusWriteWord,
88 EfiSmbusReadBlock,
89 EfiSmbusWriteBlock,
90 EfiSmbusProcessCall,
91 EfiSmbusBWBRProcessCall
92 } EFI_SMBUS_OPERATION;
93
94 #endif