TianoCore EDK2 master
Loading...
Searching...
No Matches
SpiFlashLib.h
Go to the documentation of this file.
1
9#ifndef SPI_FLASH_LIB_H_
10#define SPI_FLASH_LIB_H_
11
15typedef enum {
16 FlashRegionDescriptor,
17 FlashRegionBios,
18 FlashRegionMe,
19 FlashRegionGbE,
20 FlashRegionPlatformData,
21 FlashRegionDer,
22 FlashRegionAll,
23 FlashRegionMax
25
39EFIAPI
41 IN UINT8 ComponentNumber,
42 IN UINT32 ByteCount,
43 OUT UINT8 *SfdpData
44 );
45
59EFIAPI
61 IN UINT8 ComponentNumber,
62 IN UINT32 ByteCount,
63 OUT UINT8 *JedecId
64 );
65
77EFIAPI
79 IN UINT32 ByteCount,
80 IN UINT8 *StatusValue
81 );
82
94EFIAPI
96 IN UINT32 ByteCount,
97 OUT UINT8 *StatusValue
98 );
99
113EFIAPI
115 IN UINT32 SoftStrapAddr,
116 IN UINT32 ByteCount,
117 OUT UINT8 *SoftStrapValue
118 );
119
134EFIAPI
136 IN FLASH_REGION_TYPE FlashRegionType,
137 IN UINT32 Address,
138 IN UINT32 ByteCount,
139 OUT UINT8 *Buffer
140 );
141
154EFIAPI
156 IN FLASH_REGION_TYPE FlashRegionType,
157 IN UINT32 Address,
158 IN UINT32 ByteCount
159 );
160
174EFIAPI
176 IN FLASH_REGION_TYPE FlashRegionType,
177 IN UINT32 Address,
178 IN UINT32 ByteCount,
179 IN UINT8 *Buffer
180 );
181
189EFIAPI
191 VOID
192 );
193
206EFIAPI
208 IN FLASH_REGION_TYPE FlashRegionType,
209 OUT UINT32 *BaseAddress OPTIONAL,
210 OUT UINT32 *RegionSize OPTIONAL
211 );
212
213#endif
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
FLASH_REGION_TYPE
Definition: SpiFlashLib.h:15
EFI_STATUS EFIAPI SpiFlashErase(IN FLASH_REGION_TYPE FlashRegionType, IN UINT32 Address, IN UINT32 ByteCount)
Definition: SpiFlashLib.c:221
EFI_STATUS EFIAPI SpiFlashWriteStatus(IN UINT32 ByteCount, IN UINT8 *StatusValue)
Definition: SpiFlashLib.c:331
EFI_STATUS EFIAPI SpiReadPchSoftStrap(IN UINT32 SoftStrapAddr, IN UINT32 ByteCount, OUT UINT8 *SoftStrapValue)
Definition: SpiFlashLib.c:379
EFI_STATUS EFIAPI SpiConstructor(VOID)
Definition: SpiFlashLib.c:42
EFI_STATUS EFIAPI SpiGetRegionAddress(IN FLASH_REGION_TYPE FlashRegionType, OUT UINT32 *BaseAddress OPTIONAL, OUT UINT32 *RegionSize OPTIONAL)
Definition: SpiFlashLib.c:820
EFI_STATUS EFIAPI SpiFlashWrite(IN FLASH_REGION_TYPE FlashRegionType, IN UINT32 Address, IN UINT32 ByteCount, IN UINT8 *Buffer)
Definition: SpiFlashLib.c:195
EFI_STATUS EFIAPI SpiFlashRead(IN FLASH_REGION_TYPE FlashRegionType, IN UINT32 Address, IN UINT32 ByteCount, OUT UINT8 *Buffer)
Definition: SpiFlashLib.c:168
EFI_STATUS EFIAPI SpiFlashReadJedecId(IN UINT8 ComponentNumber, IN UINT32 ByteCount, OUT UINT8 *JedecId)
Definition: SpiFlashLib.c:290
EFI_STATUS EFIAPI SpiFlashReadSfdp(IN UINT8 ComponentNumber, IN UINT32 ByteCount, OUT UINT8 *SfdpData)
Definition: SpiFlashLib.c:247
EFI_STATUS EFIAPI SpiFlashReadStatus(IN UINT32 ByteCount, OUT UINT8 *StatusValue)
Definition: SpiFlashLib.c:354
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29