46 DEBUG ((DEBUG_VERBOSE,
"%a - ENTRY\n", __func__));
50 ASSERT (HcProtocol !=
NULL);
51 if (HcProtocol ==
NULL) {
52 return EFI_OUT_OF_RESOURCES;
62 if (EFI_ERROR (Status)) {
63 DEBUG ((DEBUG_VERBOSE,
"Error, no Platform SPI HC details\n"));
72 Status =
gBS->InstallProtocolInterface (
74 &gEfiSpiHcProtocolGuid,
79 if (EFI_ERROR (Status)) {
80 DEBUG ((DEBUG_VERBOSE,
"Error installing gEfiSpiHcProtocolGuid\n"));
87 Status =
gBS->InstallProtocolInterface (
89 &gEfiDevicePathProtocolGuid,
94 if (EFI_ERROR (Status)) {
95 DEBUG ((DEBUG_VERBOSE,
"Error installing gEfiDevicePathProtocolGuid\n"));
98 DEBUG ((DEBUG_VERBOSE,
"%a - EXIT Status=%r\n", __func__, Status));
VOID *EFIAPI AllocateZeroPool(IN UINTN AllocationSize)
#define DEBUG(Expression)
EFI_STATUS EFIAPI 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)
EFI_STATUS EFIAPI Clock(IN CONST EFI_SPI_HC_PROTOCOL *This, IN CONST EFI_SPI_PERIPHERAL *SpiPeripheral, IN UINT32 *ClockHz)
EFI_STATUS EFIAPI ChipSelect(IN CONST EFI_SPI_HC_PROTOCOL *This, IN CONST EFI_SPI_PERIPHERAL *SpiPeripheral, IN BOOLEAN PinValue)
EFI_STATUS EFIAPI SpiHcProtocolEntry(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_SPI_HC_PROTOCOL_TRANSACTION Transaction
EFI_SPI_HC_PROTOCOL_CLOCK Clock
UINT32 MaximumTransferBytes
UINT32 FrameSizeSupportMask
EFI_SPI_HC_PROTOCOL_CHIP_SELECT ChipSelect