13#ifndef __SPI_CONFIGURATION_PROTOCOL_H__
14#define __SPI_CONFIGURATION_PROTOCOL_H__
19#define EFI_SPI_CONFIGURATION_GUID \
20 { 0x85a6d3e6, 0xb65b, 0x4afc, \
21 { 0xb3, 0x8f, 0xc6, 0xd5, 0x4a, 0xf6, 0xdd, 0xc8 }}
26#define Hz(Frequency) (Frequency)
27#define KHz(Frequency) (1000 * Hz (Frequency))
28#define MHz(Frequency) (1000 * KHz (Frequency))
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
293extern EFI_GUID gEfiSpiConfigurationProtocolGuid;
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
CONST EFI_SPI_PERIPHERAL * Peripherallist
CONST EFI_DEVICE_PATH_PROTOCOL * ControllerPath
CONST CHAR16 * FriendlyName
CONST EFI_SPI_BUS *CONST *CONST Buslist
BOOLEAN ChipSelectPolarity
CONST CHAR16 * PartNumber
VOID * ChipSelectParameter
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