]> git.proxmox.com Git - mirror_edk2.git/blame - UefiCpuPkg/Include/Library/MicrocodeFlashAccessLib.h
MdeModulePkg/SerialDxe: Do not fail reset when SetAttributes is not supported
[mirror_edk2.git] / UefiCpuPkg / Include / Library / MicrocodeFlashAccessLib.h
CommitLineData
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
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15\r
16#ifndef __MICROCODE_FLASH_ACCESS_LIB_H__\r
17#define __MICROCODE_FLASH_ACCESS_LIB_H__\r
18\r
19/**\r
20 Perform microcode write opreation.\r
21\r
22 @param[in] FlashAddress The address of flash device to be accessed.\r
23 @param[in] Buffer The pointer to the data buffer.\r
24 @param[in] Length The length of data buffer in bytes.\r
25\r
26 @retval EFI_SUCCESS The operation returns successfully.\r
27 @retval EFI_WRITE_PROTECTED The flash device is read only.\r
28 @retval EFI_UNSUPPORTED The flash device access is unsupported.\r
29 @retval EFI_INVALID_PARAMETER The input parameter is not valid.\r
30**/\r
31EFI_STATUS\r
32EFIAPI\r
33MicrocodeFlashWrite (\r
34 IN EFI_PHYSICAL_ADDRESS FlashAddress,\r
35 IN VOID *Buffer,\r
36 IN UINTN Length\r
37 );\r
38\r
39#endif\r