TianoCore EDK2 master
Loading...
Searching...
No Matches
SpiNorFlash.h
Go to the documentation of this file.
1
12#ifndef __SPI_NOR_FLASH_PROTOCOL_H__
13#define __SPI_NOR_FLASH_PROTOCOL_H__
14
16
20#define EFI_SPI_NOR_FLASH_PROTOCOL_GUID \
21 { 0xb57ec3fe, 0xf833, 0x4ba6, \
22 { 0x85, 0x78, 0x2a, 0x7d, 0x6a, 0x87, 0x44, 0x4b }}
23
25
45typedef
49 OUT UINT8 *Buffer
50 );
51
70typedef
74 IN UINT32 FlashAddress,
75 IN UINT32 LengthInBytes,
76 OUT UINT8 *Buffer
77 );
78
93typedef
97 IN UINT32 LengthInBytes,
98 OUT UINT8 *FlashStatus
99 );
100
116typedef
120 IN UINT32 LengthInBytes,
121 IN UINT8 *FlashStatus
122 );
123
144typedef
148 IN UINT32 FlashAddress,
149 IN UINT32 LengthInBytes,
150 IN UINT8 *Buffer
151 );
152
171typedef
175 IN UINT32 FlashAddress,
176 IN UINT32 BlockCount
177 );
178
202
206 UINT32 FlashSize;
207
211 UINT8 Deviceid[3];
212
217
222
227
232
237
242
247
252};
253
254extern EFI_GUID gEfiSpiNorFlashProtocolGuid;
255
256#endif // __SPI_NOR_FLASH_PROTOCOL_H__
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS(EFIAPI * EFI_SPI_NOR_FLASH_PROTOCOL_WRITE_STATUS)(IN CONST EFI_SPI_NOR_FLASH_PROTOCOL *This, IN UINT32 LengthInBytes, IN UINT8 *FlashStatus)
Definition: SpiNorFlash.h:118
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)
Definition: SpiNorFlash.h:72
EFI_STATUS(EFIAPI * EFI_SPI_NOR_FLASH_PROTOCOL_ERASE)(IN CONST EFI_SPI_NOR_FLASH_PROTOCOL *This, IN UINT32 FlashAddress, IN UINT32 BlockCount)
Definition: SpiNorFlash.h:173
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)
Definition: SpiNorFlash.h:146
EFI_STATUS(EFIAPI * EFI_SPI_NOR_FLASH_PROTOCOL_GET_FLASH_ID)(IN CONST EFI_SPI_NOR_FLASH_PROTOCOL *This, OUT UINT8 *Buffer)
Definition: SpiNorFlash.h:47
EFI_STATUS(EFIAPI * EFI_SPI_NOR_FLASH_PROTOCOL_READ_STATUS)(IN CONST EFI_SPI_NOR_FLASH_PROTOCOL *This, IN UINT32 LengthInBytes, OUT UINT8 *FlashStatus)
Definition: SpiNorFlash.h:95
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_SPI_NOR_FLASH_PROTOCOL_ERASE Erase
Definition: SpiNorFlash.h:251
EFI_SPI_NOR_FLASH_PROTOCOL_WRITE_STATUS WriteStatus
Definition: SpiNorFlash.h:241
EFI_SPI_NOR_FLASH_PROTOCOL_READ_STATUS ReadStatus
Definition: SpiNorFlash.h:236
EFI_SPI_NOR_FLASH_PROTOCOL_WRITE_DATA WriteData
Definition: SpiNorFlash.h:246
EFI_SPI_NOR_FLASH_PROTOCOL_READ_DATA ReadData
Definition: SpiNorFlash.h:226
CONST EFI_SPI_PERIPHERAL * SpiPeripheral
Definition: SpiNorFlash.h:201
EFI_SPI_NOR_FLASH_PROTOCOL_READ_DATA LfReadData
Definition: SpiNorFlash.h:231
EFI_SPI_NOR_FLASH_PROTOCOL_GET_FLASH_ID GetFlashid
Definition: SpiNorFlash.h:221
Definition: Base.h:213