TianoCore EDK2
master
Loading...
Searching...
No Matches
I2cMaster.h
Go to the documentation of this file.
1
13
#ifndef __I2C_MASTER_PPI_H__
14
#define __I2C_MASTER_PPI_H__
15
16
#include <
Pi/PiI2c.h
>
17
18
#define EFI_PEI_I2C_MASTER_PPI_GUID \
19
{ 0xb3bfab9b, 0x9f9c, 0x4e8b, { 0xad, 0x37, 0x7f, 0x8c, 0x51, 0xfc, 0x62, 0x80 }}
20
21
typedef
struct
_EFI_PEI_I2C_MASTER_PPI
EFI_PEI_I2C_MASTER_PPI
;
22
36
typedef
37
EFI_STATUS
38
(EFIAPI *
EFI_PEI_I2C_MASTER_PPI_SET_BUS_FREQUENCY
)(
39
IN
EFI_PEI_I2C_MASTER_PPI
*This,
40
IN
UINTN
*BusClockHertz
41
);
42
52
typedef
53
EFI_STATUS
54
(EFIAPI *
EFI_PEI_I2C_MASTER_PPI_RESET
)(
55
IN
CONST
EFI_PEI_I2C_MASTER_PPI
*This
56
);
57
80
typedef
81
EFI_STATUS
82
(EFIAPI *
EFI_PEI_I2C_MASTER_PPI_START_REQUEST
)(
83
IN
CONST
EFI_PEI_I2C_MASTER_PPI
*This,
84
IN
UINTN
SlaveAddress,
85
IN
EFI_I2C_REQUEST_PACKET
*RequestPacket
86
);
87
92
struct
_EFI_PEI_I2C_MASTER_PPI
{
93
EFI_PEI_I2C_MASTER_PPI_SET_BUS_FREQUENCY
SetBusFrequency;
94
EFI_PEI_I2C_MASTER_PPI_RESET
Reset;
95
EFI_PEI_I2C_MASTER_PPI_START_REQUEST
StartRequest;
96
CONST
EFI_I2C_CONTROLLER_CAPABILITIES
*I2cControllerCapabilities;
97
EFI_GUID
Identifier;
98
};
99
100
extern
EFI_GUID
gEfiPeiI2cMasterPpiGuid;
101
102
#endif
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
CONST
#define CONST
Definition:
Base.h:259
IN
#define IN
Definition:
Base.h:279
PiI2c.h
EFI_PEI_I2C_MASTER_PPI_START_REQUEST
EFI_STATUS(EFIAPI * EFI_PEI_I2C_MASTER_PPI_START_REQUEST)(IN CONST EFI_PEI_I2C_MASTER_PPI *This, IN UINTN SlaveAddress, IN EFI_I2C_REQUEST_PACKET *RequestPacket)
Definition:
I2cMaster.h:82
EFI_PEI_I2C_MASTER_PPI_SET_BUS_FREQUENCY
EFI_STATUS(EFIAPI * EFI_PEI_I2C_MASTER_PPI_SET_BUS_FREQUENCY)(IN EFI_PEI_I2C_MASTER_PPI *This, IN UINTN *BusClockHertz)
Definition:
I2cMaster.h:38
EFI_PEI_I2C_MASTER_PPI_RESET
EFI_STATUS(EFIAPI * EFI_PEI_I2C_MASTER_PPI_RESET)(IN CONST EFI_PEI_I2C_MASTER_PPI *This)
Definition:
I2cMaster.h:54
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
_EFI_PEI_I2C_MASTER_PPI
Definition:
I2cMaster.h:92
EFI_I2C_CONTROLLER_CAPABILITIES
Definition:
PiI2c.h:30
EFI_I2C_REQUEST_PACKET
Definition:
PiI2c.h:289
GUID
Definition:
Base.h:213
MdePkg
Include
Ppi
I2cMaster.h
Generated on Fri Nov 15 2024 18:01:16 for TianoCore EDK2 by
1.9.6