TianoCore EDK2 master
Loading...
Searching...
No Matches
PiI2c.h
Go to the documentation of this file.
1
12#ifndef __PI_I2C_H__
13#define __PI_I2C_H__
14
18// and 127 in 10-bit mode.
20#define I2C_ADDRESSING_10_BIT 0x80000000
21
30typedef struct {
35
41
47
53
63typedef struct {
71
76
87
92
97
103
108#define I2C_FLAG_READ 0x00000001
109
117
119#define I2C_FLAG_SMBUS_OPERATION 0x00010000
120
130#define I2C_FLAG_SMBUS_BLOCK 0x00020000
131
133#define I2C_FLAG_SMBUS_PROCESS_CALL 0x00040000
134
140#define I2C_FLAG_SMBUS_PEC 0x00080000
141
142// ----------------------------------------------------------------------
241// ----------------------------------------------------------------------
242
259typedef struct {
263 UINT32 Flags;
264
271
276 UINT8 *Buffer;
278
289typedef struct {
294
298 EFI_I2C_OPERATION Operation[1];
300
301#endif // __PI_I2C_H__
UINT64 UINTN
#define CONST
Definition: Base.h:259
UINT32 DeviceIndex
Definition: PiI2c.h:75
UINT32 HardwareRevision
Definition: PiI2c.h:86
CONST EFI_GUID * DeviceGuid
Definition: PiI2c.h:70
CONST UINT32 * SlaveAddressArray
Definition: PiI2c.h:101
UINT32 SlaveAddressCount
Definition: PiI2c.h:96
UINT32 I2cBusConfiguration
Definition: PiI2c.h:91
UINT32 LengthInBytes
Definition: PiI2c.h:270
UINT8 * Buffer
Definition: PiI2c.h:276
UINT32 Flags
Definition: PiI2c.h:263
Definition: Base.h:213