]>
Commit | Line | Data |
---|---|---|
faf2c63b JY |
1 | /** @file\r |
2 | Microcode flash device access library.\r | |
3 | \r | |
4 | Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r | |
8f7a05e1 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
faf2c63b JY |
6 | \r |
7 | **/\r | |
8 | \r | |
9 | \r | |
10 | #ifndef __MICROCODE_FLASH_ACCESS_LIB_H__\r | |
11 | #define __MICROCODE_FLASH_ACCESS_LIB_H__\r | |
12 | \r | |
13 | /**\r | |
14 | Perform microcode write opreation.\r | |
15 | \r | |
16 | @param[in] FlashAddress The address of flash device to be accessed.\r | |
17 | @param[in] Buffer The pointer to the data buffer.\r | |
18 | @param[in] Length The length of data buffer in bytes.\r | |
19 | \r | |
20 | @retval EFI_SUCCESS The operation returns successfully.\r | |
21 | @retval EFI_WRITE_PROTECTED The flash device is read only.\r | |
22 | @retval EFI_UNSUPPORTED The flash device access is unsupported.\r | |
23 | @retval EFI_INVALID_PARAMETER The input parameter is not valid.\r | |
24 | **/\r | |
25 | EFI_STATUS\r | |
26 | EFIAPI\r | |
27 | MicrocodeFlashWrite (\r | |
28 | IN EFI_PHYSICAL_ADDRESS FlashAddress,\r | |
29 | IN VOID *Buffer,\r | |
30 | IN UINTN Length\r | |
31 | );\r | |
32 | \r | |
33 | #endif\r |