TianoCore EDK2 master
Loading...
Searching...
No Matches
SpiIo.h
Go to the documentation of this file.
1
13#ifndef __SPI_IO_PROTOCOL_H__
14#define __SPI_IO_PROTOCOL_H__
15
18
20
25typedef enum {
32
38
44
53
127typedef
131 IN EFI_SPI_TRANSACTION_TYPE TransactionType,
132 IN BOOLEAN DebugTransaction,
133 IN UINT32 ClockHz OPTIONAL,
134 IN UINT32 BusWidth,
135 IN UINT32 FrameSize,
136 IN UINT32 WriteBytes,
137 IN UINT8 *WriteBuffer,
138 IN UINT32 ReadBytes,
139 OUT UINT8 *ReadBuffer
140 );
141
165 );
166
176
182
190
194 UINT32 BusWidth;
195
199 UINT32 FrameSize;
200
205
212
216 UINT32 ReadBytes;
217
226
230#define SPI_IO_SUPPORTS_2_BIT_DATA_BUS_WIDTH BIT0
231#define SPI_IO_SUPPORTS_4_BIT_DATA_BUS_WIDTH BIT1
232#define SPI_IO_SUPPORTS_8_BIT_DATA_BUS_WIDTH BIT2
233#define SPI_IO_TRANSFER_SIZE_INCLUDES_OPCODE BIT3
234#define SPI_IO_TRANSFER_SIZE_INCLUDES_ADDRESS BIT4
235
246
252
261
266
279
284
289
294};
295
296#endif // __SPI_IO_PROTOCOL_H__
#define CONST
Definition: Base.h:259
#define OPTIONAL
Definition: Base.h:290
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS(EFIAPI * EFI_SPI_IO_PROTOCOL_TRANSACTION)(IN CONST EFI_SPI_IO_PROTOCOL *This, IN EFI_SPI_TRANSACTION_TYPE TransactionType, IN BOOLEAN DebugTransaction, IN UINT32 ClockHz OPTIONAL, IN UINT32 BusWidth, IN UINT32 FrameSize, IN UINT32 WriteBytes, IN UINT8 *WriteBuffer, IN UINT32 ReadBytes, OUT UINT8 *ReadBuffer)
Definition: SpiIo.h:129
struct _EFI_SPI_BUS_TRANSACTION EFI_SPI_BUS_TRANSACTION
EFI_STATUS(EFIAPI * EFI_SPI_IO_PROTOCOL_UPDATE_SPI_PERIPHERAL)(IN CONST EFI_SPI_IO_PROTOCOL *This, IN CONST EFI_SPI_PERIPHERAL *SpiPeripheral)
Definition: SpiIo.h:162
EFI_SPI_TRANSACTION_TYPE
Definition: SpiIo.h:25
@ SPI_TRANSACTION_FULL_DUPLEX
Definition: SpiIo.h:31
@ SPI_TRANSACTION_READ_ONLY
Definition: SpiIo.h:43
@ SPI_TRANSACTION_WRITE_ONLY
Definition: SpiIo.h:37
@ SPI_TRANSACTION_WRITE_THEN_READ
Definition: SpiIo.h:51
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
BOOLEAN DebugTransaction
Definition: SpiIo.h:189
CONST EFI_SPI_PERIPHERAL * SpiPeripheral
Definition: SpiIo.h:175
EFI_SPI_TRANSACTION_TYPE TransactionType
Definition: SpiIo.h:181
CONST EFI_SPI_PERIPHERAL * SpiPeripheral
Definition: SpiIo.h:245
UINT32 Attributes
Definition: SpiIo.h:278
UINT32 MaximumTransferBytes
Definition: SpiIo.h:265
CONST EFI_LEGACY_SPI_CONTROLLER_PROTOCOL * LegacySpiProtocol
Definition: SpiIo.h:283
EFI_SPI_IO_PROTOCOL_TRANSACTION Transaction
Definition: SpiIo.h:288
EFI_SPI_IO_PROTOCOL_UPDATE_SPI_PERIPHERAL UpdateSpiPeripheral
Definition: SpiIo.h:293
UINT32 FrameSizeSupportMask
Definition: SpiIo.h:260
CONST EFI_SPI_PERIPHERAL * OriginalSpiPeripheral
Definition: SpiIo.h:251