9#ifndef SPI_FLASH_LIB_H_
10#define SPI_FLASH_LIB_H_
16 FlashRegionDescriptor,
20 FlashRegionPlatformData,
41 IN UINT8 ComponentNumber,
61 IN UINT8 ComponentNumber,
97 OUT UINT8 *StatusValue
115 IN UINT32 SoftStrapAddr,
117 OUT UINT8 *SoftStrapValue
209 OUT UINT32 *BaseAddress OPTIONAL,
210 OUT UINT32 *RegionSize OPTIONAL
EFI_STATUS EFIAPI SpiFlashErase(IN FLASH_REGION_TYPE FlashRegionType, IN UINT32 Address, IN UINT32 ByteCount)
EFI_STATUS EFIAPI SpiFlashWriteStatus(IN UINT32 ByteCount, IN UINT8 *StatusValue)
EFI_STATUS EFIAPI SpiReadPchSoftStrap(IN UINT32 SoftStrapAddr, IN UINT32 ByteCount, OUT UINT8 *SoftStrapValue)
EFI_STATUS EFIAPI SpiConstructor(VOID)
EFI_STATUS EFIAPI SpiGetRegionAddress(IN FLASH_REGION_TYPE FlashRegionType, OUT UINT32 *BaseAddress OPTIONAL, OUT UINT32 *RegionSize OPTIONAL)
EFI_STATUS EFIAPI SpiFlashWrite(IN FLASH_REGION_TYPE FlashRegionType, IN UINT32 Address, IN UINT32 ByteCount, IN UINT8 *Buffer)
EFI_STATUS EFIAPI SpiFlashRead(IN FLASH_REGION_TYPE FlashRegionType, IN UINT32 Address, IN UINT32 ByteCount, OUT UINT8 *Buffer)
EFI_STATUS EFIAPI SpiFlashReadJedecId(IN UINT8 ComponentNumber, IN UINT32 ByteCount, OUT UINT8 *JedecId)
EFI_STATUS EFIAPI SpiFlashReadSfdp(IN UINT8 ComponentNumber, IN UINT32 ByteCount, OUT UINT8 *SfdpData)
EFI_STATUS EFIAPI SpiFlashReadStatus(IN UINT32 ByteCount, OUT UINT8 *StatusValue)