TianoCore EDK2
master
Loading...
Searching...
No Matches
I2cIo.h
Go to the documentation of this file.
1
15
#ifndef __I2C_IO_H__
16
#define __I2C_IO_H__
17
18
#include <
Pi/PiI2c.h
>
19
20
#define EFI_I2C_IO_PROTOCOL_GUID { 0xb60a3e6b, 0x18c4, 0x46e5, { 0xa2, 0x9a, 0xc9, 0xa1, 0x06, 0x65, 0xa2, 0x8e }}
21
41
typedef
struct
_EFI_I2C_IO_PROTOCOL
EFI_I2C_IO_PROTOCOL
;
42
114
typedef
115
EFI_STATUS
116
(EFIAPI *
EFI_I2C_IO_PROTOCOL_QUEUE_REQUEST
)(
117
IN
CONST
EFI_I2C_IO_PROTOCOL
*This,
118
IN
UINTN
SlaveAddressIndex,
119
IN
EFI_EVENT
Event
OPTIONAL
,
120
IN
EFI_I2C_REQUEST_PACKET
*RequestPacket,
121
OUT
EFI_STATUS
*I2cStatus
OPTIONAL
122
);
123
127
struct
_EFI_I2C_IO_PROTOCOL
{
131
EFI_I2C_IO_PROTOCOL_QUEUE_REQUEST
QueueRequest
;
132
139
CONST
EFI_GUID
*
DeviceGuid
;
140
144
UINT32
DeviceIndex
;
145
151
UINT32
HardwareRevision
;
152
157
CONST
EFI_I2C_CONTROLLER_CAPABILITIES
*
I2cControllerCapabilities
;
158
};
159
163
extern
EFI_GUID
gEfiI2cIoProtocolGuid
;
164
165
#endif
// __I2C_IO_H__
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
EFI_I2C_IO_PROTOCOL_QUEUE_REQUEST
EFI_STATUS(EFIAPI * EFI_I2C_IO_PROTOCOL_QUEUE_REQUEST)(IN CONST EFI_I2C_IO_PROTOCOL *This, IN UINTN SlaveAddressIndex, IN EFI_EVENT Event OPTIONAL, IN EFI_I2C_REQUEST_PACKET *RequestPacket, OUT EFI_STATUS *I2cStatus OPTIONAL)
Definition:
I2cIo.h:116
gEfiI2cIoProtocolGuid
EFI_GUID gEfiI2cIoProtocolGuid
CONST
#define CONST
Definition:
Base.h:259
OPTIONAL
#define OPTIONAL
Definition:
Base.h:290
IN
#define IN
Definition:
Base.h:279
OUT
#define OUT
Definition:
Base.h:284
PiI2c.h
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
EFI_EVENT
VOID * EFI_EVENT
Definition:
UefiBaseType.h:37
_EFI_I2C_IO_PROTOCOL
Definition:
I2cIo.h:127
_EFI_I2C_IO_PROTOCOL::DeviceIndex
UINT32 DeviceIndex
Definition:
I2cIo.h:144
_EFI_I2C_IO_PROTOCOL::DeviceGuid
CONST EFI_GUID * DeviceGuid
Definition:
I2cIo.h:139
_EFI_I2C_IO_PROTOCOL::QueueRequest
EFI_I2C_IO_PROTOCOL_QUEUE_REQUEST QueueRequest
Definition:
I2cIo.h:131
_EFI_I2C_IO_PROTOCOL::HardwareRevision
UINT32 HardwareRevision
Definition:
I2cIo.h:151
_EFI_I2C_IO_PROTOCOL::I2cControllerCapabilities
CONST EFI_I2C_CONTROLLER_CAPABILITIES * I2cControllerCapabilities
Definition:
I2cIo.h:157
EFI_I2C_CONTROLLER_CAPABILITIES
Definition:
PiI2c.h:30
EFI_I2C_REQUEST_PACKET
Definition:
PiI2c.h:289
GUID
Definition:
Base.h:213
MdePkg
Include
Protocol
I2cIo.h
Generated on Fri Nov 15 2024 18:01:16 for TianoCore EDK2 by
1.9.6