TianoCore EDK2 master
Loading...
Searching...
No Matches
PlatformFlashAccessLib.h
Go to the documentation of this file.
1
9#ifndef __PLATFORM_FLASH_ACCESS_LIB_H__
10#define __PLATFORM_FLASH_ACCESS_LIB_H__
11
13
14typedef enum {
15 FlashAddressTypeRelativeAddress,
16 FlashAddressTypeAbsoluteAddress,
17} FLASH_ADDRESS_TYPE;
18
19//
20// Type 0 ~ 0x7FFFFFFF is defined in this library.
21// Type 0x80000000 ~ 0xFFFFFFFF is reserved for OEM.
22//
23typedef enum {
24 PlatformFirmwareTypeSystemFirmware,
25 PlatformFirmwareTypeNvRam,
26} PLATFORM_FIRMWARE_TYPE;
27
43EFIAPI
45 IN PLATFORM_FIRMWARE_TYPE FirmwareType,
46 IN EFI_PHYSICAL_ADDRESS FlashAddress,
47 IN FLASH_ADDRESS_TYPE FlashAddressType,
48 IN VOID *Buffer,
49 IN UINTN Length
50 );
51
83EFIAPI
85 IN PLATFORM_FIRMWARE_TYPE FirmwareType,
86 IN EFI_PHYSICAL_ADDRESS FlashAddress,
87 IN FLASH_ADDRESS_TYPE FlashAddressType,
88 IN VOID *Buffer,
89 IN UINTN Length,
91 IN UINTN StartPercentage,
92 IN UINTN EndPercentage
93 );
94
95#endif
UINT64 UINTN
EFI_STATUS(EFIAPI * EFI_FIRMWARE_MANAGEMENT_UPDATE_IMAGE_PROGRESS)(IN UINTN Completion)
#define IN
Definition: Base.h:279
EFI_STATUS EFIAPI PerformFlashWriteWithProgress(IN PLATFORM_FIRMWARE_TYPE FirmwareType, IN EFI_PHYSICAL_ADDRESS FlashAddress, IN FLASH_ADDRESS_TYPE FlashAddressType, IN VOID *Buffer, IN UINTN Length, IN EFI_FIRMWARE_MANAGEMENT_UPDATE_IMAGE_PROGRESS Progress OPTIONAL, IN UINTN StartPercentage, IN UINTN EndPercentage)
EFI_STATUS EFIAPI PerformFlashWrite(IN PLATFORM_FIRMWARE_TYPE FirmwareType, IN EFI_PHYSICAL_ADDRESS FlashAddress, IN FLASH_ADDRESS_TYPE FlashAddressType, IN VOID *Buffer, IN UINTN Length)
UINT64 EFI_PHYSICAL_ADDRESS
Definition: UefiBaseType.h:50
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29