TianoCore EDK2 master
Loading...
Searching...
No Matches
SpiConfiguration.h
Go to the documentation of this file.
1
13#ifndef __SPI_CONFIGURATION_PROTOCOL_H__
14#define __SPI_CONFIGURATION_PROTOCOL_H__
15
19#define EFI_SPI_CONFIGURATION_GUID \
20 { 0x85a6d3e6, 0xb65b, 0x4afc, \
21 { 0xb3, 0x8f, 0xc6, 0xd5, 0x4a, 0xf6, 0xdd, 0xc8 }}
22
26#define Hz(Frequency) (Frequency)
27#define KHz(Frequency) (1000 * Hz (Frequency))
28#define MHz(Frequency) (1000 * KHz (Frequency))
29
31
56typedef
58(EFIAPI *EFI_SPI_CHIP_SELECT)(
59 IN CONST EFI_SPI_PERIPHERAL *SpiPeripheral,
60 IN BOOLEAN PinValue
61 );
62
89(EFIAPI *EFI_SPI_CLOCK)(
90 IN CONST EFI_SPI_PERIPHERAL *SpiPeripheral,
91 IN UINT32 *ClockHz
92 );
93
99typedef struct _EFI_SPI_PART {
103 CONST CHAR16 *Vendor;
104
109
115
121
129
137typedef struct _EFI_SPI_BUS {
142
148
154
161
171
175#define SPI_PART_SUPPORTS_2_BIT_DATA_BUS_WIDTH BIT0
176#define SPI_PART_SUPPORTS_4_BIT_DATA_BUS_WIDTH BIT1
177#define SPI_PART_SUPPORTS_8_BIT_DATA_BUS_WIDTH BIT2
178
192
197
207
212
219
226
231 BOOLEAN ClockPhase;
232
241
248
254
261
272};
273
285 UINT32 BusCount;
286
292
293extern EFI_GUID gEfiSpiConfigurationProtocolGuid;
294
295#endif // __SPI_CONFIGURATION_PROTOCOL_H__
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
struct _EFI_SPI_BUS EFI_SPI_BUS
EFI_STATUS(EFIAPI * EFI_SPI_CLOCK)(IN CONST EFI_SPI_PERIPHERAL *SpiPeripheral, IN UINT32 *ClockHz)
EFI_STATUS(EFIAPI * EFI_SPI_CHIP_SELECT)(IN CONST EFI_SPI_PERIPHERAL *SpiPeripheral, IN BOOLEAN PinValue)
struct _EFI_SPI_CONFIGURATION_PROTOCOL EFI_SPI_CONFIGURATION_PROTOCOL
struct _EFI_SPI_PART EFI_SPI_PART
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
CONST EFI_SPI_PERIPHERAL * Peripherallist
CONST EFI_DEVICE_PATH_PROTOCOL * ControllerPath
EFI_SPI_CLOCK Clock
CONST CHAR16 * FriendlyName
CONST EFI_SPI_BUS *CONST *CONST Buslist
BOOLEAN ChipSelectPolarity
CONST CHAR16 * Vendor
CONST CHAR16 * PartNumber
CONST GUID * SpiPeripheralDriverGuid
CONST EFI_SPI_BUS * SpiBus
EFI_SPI_CHIP_SELECT ChipSelect
CONST VOID * ConfigurationData
CONST EFI_SPI_PERIPHERAL * NextSpiPeripheral
CONST CHAR16 * FriendlyName
CONST EFI_SPI_PART * SpiPart
Definition: Base.h:213