TianoCore EDK2 master
Loading...
Searching...
No Matches
SpiHcPlatformLib.h
Go to the documentation of this file.
1
9#ifndef PLATFORM_SPI_HC_H_
10#define PLATFORM_SPI_HC_H_
11
12#include <Uefi/UefiBaseType.h>
13#include <Protocol/SpiHc.h>
15#include <Protocol/DevicePath.h>
17
29EFIAPI
31 OUT UINT32 *Attributes,
32 OUT UINT32 *FrameSizeSupportMask,
33 OUT UINT32 *MaximumTransferBytes
34 );
35
45EFIAPI
47 OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath
48 );
49
76EFIAPI
79 IN CONST EFI_SPI_PERIPHERAL *SpiPeripheral,
80 IN BOOLEAN PinValue
81 );
82
111EFIAPI
114 IN CONST EFI_SPI_PERIPHERAL *SpiPeripheral,
115 IN UINT32 *ClockHz
116 );
117
142EFIAPI
145 IN EFI_SPI_BUS_TRANSACTION *BusTransaction
146 );
147
148#endif // PLATFORM_SPI_HC_SMM_PROTOCOL_H_
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS EFIAPI GetPlatformSpiHcDetails(OUT UINT32 *Attributes, OUT UINT32 *FrameSizeSupportMask, OUT UINT32 *MaximumTransferBytes)
EFI_STATUS EFIAPI GetSpiHcDevicePath(OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath)
EFI_STATUS EFIAPI PlatformSpiHcChipSelect(IN CONST EFI_SPI_HC_PROTOCOL *This, IN CONST EFI_SPI_PERIPHERAL *SpiPeripheral, IN BOOLEAN PinValue)
EFI_STATUS EFIAPI PlatformSpiHcTransaction(IN CONST EFI_SPI_HC_PROTOCOL *This, IN EFI_SPI_BUS_TRANSACTION *BusTransaction)
EFI_STATUS EFIAPI PlatformSpiHcClock(IN CONST EFI_SPI_HC_PROTOCOL *This, IN CONST EFI_SPI_PERIPHERAL *SpiPeripheral, IN UINT32 *ClockHz)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29