2 Microcode flash device access library NULL instance.
4 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #include <Library/BaseMemoryLib.h>
18 #include <Library/MicrocodeFlashAccessLib.h>
21 Perform microcode write opreation.
23 @param[in] FlashAddress The address of flash device to be accessed.
24 @param[in] Buffer The pointer to the data buffer.
25 @param[in] Length The length of data buffer in bytes.
27 @retval EFI_SUCCESS The operation returns successfully.
28 @retval EFI_WRITE_PROTECTED The flash device is read only.
29 @retval EFI_UNSUPPORTED The flash device access is unsupported.
30 @retval EFI_INVALID_PARAMETER The input parameter is not valid.
35 IN EFI_PHYSICAL_ADDRESS FlashAddress
,
40 CopyMem((VOID
*)(UINTN
)(FlashAddress
), Buffer
, Length
);