2 Microcode flash device access library NULL instance.
4 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #include <Library/BaseMemoryLib.h>
12 #include <Library/MicrocodeFlashAccessLib.h>
15 Perform microcode write opreation.
17 @param[in] FlashAddress The address of flash device to be accessed.
18 @param[in] Buffer The pointer to the data buffer.
19 @param[in] Length The length of data buffer in bytes.
21 @retval EFI_SUCCESS The operation returns successfully.
22 @retval EFI_WRITE_PROTECTED The flash device is read only.
23 @retval EFI_UNSUPPORTED The flash device access is unsupported.
24 @retval EFI_INVALID_PARAMETER The input parameter is not valid.
29 IN EFI_PHYSICAL_ADDRESS FlashAddress
,
34 CopyMem((VOID
*)(UINTN
)(FlashAddress
), Buffer
, Length
);