]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/BdsDxe/HwErrRecSupport.c
Clean up BdsDxe for Doxygen comments requirement.
[mirror_edk2.git] / MdeModulePkg / Universal / BdsDxe / HwErrRecSupport.c
CommitLineData
fd6a62f3 1/** @file\r
2 Set the level of support for Hardware Error Record Persistence that is\r
3 implemented by the platform.\r
93e3992d 4\r
fd6a62f3 5Copyright (c) 2007 - 2008, Intel Corporation. <BR>\r
93e3992d 6All rights reserved. This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
fd6a62f3 14**/\r
93e3992d 15\r
16#include "HwErrRecSupport.h"\r
17\r
b30312ba 18/**\r
19 Set the HwErrRecSupport variable contains a binary UINT16 that supplies the\r
20 level of support for Hardware Error Record Persistence that is implemented\r
21 by the platform.\r
93e3992d 22\r
93e3992d 23\r
b30312ba 24 @param HwErrRecSupportLevel\r
25 zero value - Indicates that the platform implements no support for\r
26 Hardware Error Record Persistence.\r
27 non-zero value - Indicates that the platform implements Hardware Error\r
28 Record Persistence.\r
93e3992d 29\r
b30312ba 30 @return VOID\r
93e3992d 31\r
b30312ba 32**/\r
33VOID\r
34InitializeHwErrRecSupport (\r
35 IN UINT16 HwErrRecSupportLevel\r
36 )\r
93e3992d 37{\r
38 EFI_STATUS Status;\r
39\r
40 Status = gRT->SetVariable (\r
41 L"HwErrRecSupport",\r
42 &gEfiGlobalVariableGuid,\r
43 EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,\r
44 sizeof (UINT16),\r
45 &HwErrRecSupportLevel\r
46 );\r
47 if (EFI_ERROR (Status)) {\r
48 DEBUG ((EFI_D_ERROR, "HwErrRecSupport: Can not set the variable\n"));\r
49 }\r
50\r
51}\r