TianoCore EDK2 master
Loading...
Searching...
No Matches
PlatformFlashAccessLibNull.c
Go to the documentation of this file.
1
9#include <PiDxe.h>
10
13
14UINT64 mInternalFdAddress;
15
47EFIAPI
49 IN PLATFORM_FIRMWARE_TYPE FirmwareType,
50 IN EFI_PHYSICAL_ADDRESS FlashAddress,
51 IN FLASH_ADDRESS_TYPE FlashAddressType,
52 IN VOID *Buffer,
53 IN UINTN Length,
55 IN UINTN StartPercentage,
56 IN UINTN EndPercentage
57 )
58{
59 if (FlashAddressType == FlashAddressTypeRelativeAddress) {
60 FlashAddress = FlashAddress + mInternalFdAddress;
61 }
62
63 CopyMem ((VOID *)(UINTN)(FlashAddress), Buffer, Length);
64 return EFI_SUCCESS;
65}
66
82EFIAPI
84 IN PLATFORM_FIRMWARE_TYPE FirmwareType,
85 IN EFI_PHYSICAL_ADDRESS FlashAddress,
86 IN FLASH_ADDRESS_TYPE FlashAddressType,
87 IN VOID *Buffer,
88 IN UINTN Length
89 )
90{
92 FirmwareType,
93 FlashAddress,
94 FlashAddressType,
95 Buffer,
96 Length,
97 NULL,
98 0,
99 0
100 );
101}
UINT64 UINTN
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
EFI_STATUS(EFIAPI * EFI_FIRMWARE_MANAGEMENT_UPDATE_IMAGE_PROGRESS)(IN UINTN Completion)
#define NULL
Definition: Base.h:319
#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
#define EFI_SUCCESS
Definition: UefiBaseType.h:112