45 DEBUG ((DEBUG_VERBOSE,
"%a - ENTRY\n", __func__));
49 ASSERT (HcProtocol !=
NULL);
50 if (HcProtocol ==
NULL) {
51 return EFI_OUT_OF_RESOURCES;
67 &gEfiSpiSmmHcProtocolGuid,
72 if (EFI_ERROR (Status)) {
73 DEBUG ((DEBUG_VERBOSE,
"Error installing gEfiSpiSmmHcProtocolGuid\n"));
76 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_INSTALL_PROTOCOL_INTERFACE MmInstallProtocolInterface
EFI_SPI_HC_PROTOCOL_TRANSACTION Transaction
EFI_SPI_HC_PROTOCOL_CLOCK Clock
UINT32 MaximumTransferBytes
UINT32 FrameSizeSupportMask
EFI_SPI_HC_PROTOCOL_CHIP_SELECT ChipSelect