12#ifndef __SPI_NOR_FLASH_PROTOCOL_H__
13#define __SPI_NOR_FLASH_PROTOCOL_H__
20#define EFI_SPI_NOR_FLASH_PROTOCOL_GUID \
21 { 0xb57ec3fe, 0xf833, 0x4ba6, \
22 { 0x85, 0x78, 0x2a, 0x7d, 0x6a, 0x87, 0x44, 0x4b }}
74 IN UINT32 FlashAddress,
75 IN UINT32 LengthInBytes,
97 IN UINT32 LengthInBytes,
98 OUT UINT8 *FlashStatus
120 IN UINT32 LengthInBytes,
121 IN UINT8 *FlashStatus
148 IN UINT32 FlashAddress,
149 IN UINT32 LengthInBytes,
175 IN UINT32 FlashAddress,
254extern EFI_GUID gEfiSpiNorFlashProtocolGuid;
EFI_STATUS(EFIAPI * EFI_SPI_NOR_FLASH_PROTOCOL_WRITE_STATUS)(IN CONST EFI_SPI_NOR_FLASH_PROTOCOL *This, IN UINT32 LengthInBytes, IN UINT8 *FlashStatus)
EFI_STATUS(EFIAPI * EFI_SPI_NOR_FLASH_PROTOCOL_READ_DATA)(IN CONST EFI_SPI_NOR_FLASH_PROTOCOL *This, IN UINT32 FlashAddress, IN UINT32 LengthInBytes, OUT UINT8 *Buffer)
EFI_STATUS(EFIAPI * EFI_SPI_NOR_FLASH_PROTOCOL_ERASE)(IN CONST EFI_SPI_NOR_FLASH_PROTOCOL *This, IN UINT32 FlashAddress, IN UINT32 BlockCount)
EFI_STATUS(EFIAPI * EFI_SPI_NOR_FLASH_PROTOCOL_WRITE_DATA)(IN CONST EFI_SPI_NOR_FLASH_PROTOCOL *This, IN UINT32 FlashAddress, IN UINT32 LengthInBytes, IN UINT8 *Buffer)
EFI_STATUS(EFIAPI * EFI_SPI_NOR_FLASH_PROTOCOL_GET_FLASH_ID)(IN CONST EFI_SPI_NOR_FLASH_PROTOCOL *This, OUT UINT8 *Buffer)
EFI_STATUS(EFIAPI * EFI_SPI_NOR_FLASH_PROTOCOL_READ_STATUS)(IN CONST EFI_SPI_NOR_FLASH_PROTOCOL *This, IN UINT32 LengthInBytes, OUT UINT8 *FlashStatus)
EFI_SPI_NOR_FLASH_PROTOCOL_ERASE Erase
EFI_SPI_NOR_FLASH_PROTOCOL_WRITE_STATUS WriteStatus
EFI_SPI_NOR_FLASH_PROTOCOL_READ_STATUS ReadStatus
EFI_SPI_NOR_FLASH_PROTOCOL_WRITE_DATA WriteData
EFI_SPI_NOR_FLASH_PROTOCOL_READ_DATA ReadData
CONST EFI_SPI_PERIPHERAL * SpiPeripheral
EFI_SPI_NOR_FLASH_PROTOCOL_READ_DATA LfReadData
EFI_SPI_NOR_FLASH_PROTOCOL_GET_FLASH_ID GetFlashid