TianoCore EDK2
master
Loading...
Searching...
No Matches
I2cMaster.h
Go to the documentation of this file.
1
15
#ifndef __I2C_MASTER_H__
16
#define __I2C_MASTER_H__
17
18
#include <
Pi/PiI2c.h
>
19
20
#define EFI_I2C_MASTER_PROTOCOL_GUID { 0xcd72881f, 0x45b5, 0x4feb, { 0x98, 0xc8, 0x31, 0x3d, 0xa8, 0x11, 0x74, 0x62 }}
21
22
typedef
struct
_EFI_I2C_MASTER_PROTOCOL
EFI_I2C_MASTER_PROTOCOL
;
23
49
typedef
50
EFI_STATUS
51
(EFIAPI *
EFI_I2C_MASTER_PROTOCOL_SET_BUS_FREQUENCY
)(
52
IN
CONST
EFI_I2C_MASTER_PROTOCOL
*This,
53
IN
OUT
UINTN
*BusClockHertz
54
);
55
71
typedef
72
EFI_STATUS
73
(EFIAPI *
EFI_I2C_MASTER_PROTOCOL_RESET
)(
74
IN
CONST
EFI_I2C_MASTER_PROTOCOL
*This
75
);
76
144
typedef
145
EFI_STATUS
146
(EFIAPI *
EFI_I2C_MASTER_PROTOCOL_START_REQUEST
)(
147
IN
CONST
EFI_I2C_MASTER_PROTOCOL
*This,
148
IN
UINTN
SlaveAddress,
149
IN
EFI_I2C_REQUEST_PACKET
*RequestPacket,
150
IN
EFI_EVENT
Event
OPTIONAL
,
151
OUT
EFI_STATUS
*I2cStatus
OPTIONAL
152
);
153
161
struct
_EFI_I2C_MASTER_PROTOCOL
{
165
EFI_I2C_MASTER_PROTOCOL_SET_BUS_FREQUENCY
SetBusFrequency
;
166
170
EFI_I2C_MASTER_PROTOCOL_RESET
Reset
;
171
175
EFI_I2C_MASTER_PROTOCOL_START_REQUEST
StartRequest
;
176
181
CONST
EFI_I2C_CONTROLLER_CAPABILITIES
*
I2cControllerCapabilities
;
182
};
183
184
extern
EFI_GUID
gEfiI2cMasterProtocolGuid;
185
186
#endif
// __I2C_MASTER_H__
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
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_I2C_MASTER_PROTOCOL_START_REQUEST
EFI_STATUS(EFIAPI * EFI_I2C_MASTER_PROTOCOL_START_REQUEST)(IN CONST EFI_I2C_MASTER_PROTOCOL *This, IN UINTN SlaveAddress, IN EFI_I2C_REQUEST_PACKET *RequestPacket, IN EFI_EVENT Event OPTIONAL, OUT EFI_STATUS *I2cStatus OPTIONAL)
Definition:
I2cMaster.h:146
EFI_I2C_MASTER_PROTOCOL_SET_BUS_FREQUENCY
EFI_STATUS(EFIAPI * EFI_I2C_MASTER_PROTOCOL_SET_BUS_FREQUENCY)(IN CONST EFI_I2C_MASTER_PROTOCOL *This, IN OUT UINTN *BusClockHertz)
Definition:
I2cMaster.h:51
EFI_I2C_MASTER_PROTOCOL_RESET
EFI_STATUS(EFIAPI * EFI_I2C_MASTER_PROTOCOL_RESET)(IN CONST EFI_I2C_MASTER_PROTOCOL *This)
Definition:
I2cMaster.h:73
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
EFI_EVENT
VOID * EFI_EVENT
Definition:
UefiBaseType.h:37
_EFI_I2C_MASTER_PROTOCOL
Definition:
I2cMaster.h:161
_EFI_I2C_MASTER_PROTOCOL::SetBusFrequency
EFI_I2C_MASTER_PROTOCOL_SET_BUS_FREQUENCY SetBusFrequency
Definition:
I2cMaster.h:165
_EFI_I2C_MASTER_PROTOCOL::Reset
EFI_I2C_MASTER_PROTOCOL_RESET Reset
Definition:
I2cMaster.h:170
_EFI_I2C_MASTER_PROTOCOL::StartRequest
EFI_I2C_MASTER_PROTOCOL_START_REQUEST StartRequest
Definition:
I2cMaster.h:175
_EFI_I2C_MASTER_PROTOCOL::I2cControllerCapabilities
CONST EFI_I2C_CONTROLLER_CAPABILITIES * I2cControllerCapabilities
Definition:
I2cMaster.h:181
EFI_I2C_CONTROLLER_CAPABILITIES
Definition:
PiI2c.h:30
EFI_I2C_REQUEST_PACKET
Definition:
PiI2c.h:289
GUID
Definition:
Base.h:213
MdePkg
Include
Protocol
I2cMaster.h
Generated on Fri Nov 15 2024 18:01:16 for TianoCore EDK2 by
1.9.6