]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLibNullClass.c
MdeModulePkg: Add EDK2 Platform Boot Manager Protocol
[mirror_edk2.git] / MdeModulePkg / Library / VarCheckUefiLib / VarCheckUefiLibNullClass.c
index 1d0bc2a024c08acd4de1faf38c53f57c4834bbd8..e3bf04a54f237e0536dd74384b4790c966a48127 100644 (file)
@@ -1,17 +1,13 @@
 /** @file\r
   Implementation functions and structures for var check uefi library.\r
 \r
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
+#include <Uefi/UefiBaseType.h>\r
+\r
 #include <Library/VarCheckLib.h>\r
 #include <Library/BaseLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
@@ -425,28 +421,6 @@ UEFI_DEFINED_VARIABLE_ENTRY mGlobalVariableList[] = {
     },\r
     NULL\r
   },\r
-  {\r
-    EFI_AUDIT_MODE_NAME,\r
-    {\r
-      VAR_CHECK_VARIABLE_PROPERTY_REVISION,\r
-      0,\r
-      VARIABLE_ATTRIBUTE_BS_RT,\r
-      sizeof (UINT8),\r
-      sizeof (UINT8)\r
-    },\r
-    NULL\r
-  },\r
-  {\r
-    EFI_DEPLOYED_MODE_NAME,\r
-    {\r
-      VAR_CHECK_VARIABLE_PROPERTY_REVISION,\r
-      0,\r
-      VARIABLE_ATTRIBUTE_BS_RT,\r
-      sizeof (UINT8),\r
-      sizeof (UINT8)\r
-    },\r
-    NULL\r
-  },\r
   {\r
     EFI_KEY_EXCHANGE_KEY_NAME,\r
     {\r
@@ -700,17 +674,17 @@ EFI_GUID *mUefiDefinedGuid[] = {
 };\r
 \r
 /**\r
-  Check if a Unicode character is a hexadecimal character.\r
+  Check if a Unicode character is an upper case hexadecimal character.\r
 \r
-  This function checks if a Unicode character is a\r
-  hexadecimal character.  The valid hexadecimal character is\r
-  L'0' to L'9', L'a' to L'f', or L'A' to L'F'.\r
+  This function checks if a Unicode character is an upper case\r
+  hexadecimal character.  The valid upper case hexadecimal character is\r
+  L'0' to L'9', or L'A' to L'F'.\r
 \r
 \r
   @param[in] Char       The character to check against.\r
 \r
-  @retval TRUE          If the Char is a hexadecmial character.\r
-  @retval FALSE         If the Char is not a hexadecmial character.\r
+  @retval TRUE          If the Char is an upper case hexadecmial character.\r
+  @retval FALSE         If the Char is not an upper case hexadecmial character.\r
 \r
 **/\r
 BOOLEAN\r
@@ -719,7 +693,7 @@ VarCheckUefiIsHexaDecimalDigitCharacter (
   IN CHAR16             Char\r
   )\r
 {\r
-  return (BOOLEAN) ((Char >= L'0' && Char <= L'9') || (Char >= L'A' && Char <= L'F') || (Char >= L'a' && Char <= L'f'));\r
+  return (BOOLEAN) ((Char >= L'0' && Char <= L'9') || (Char >= L'A' && Char <= L'F'));\r
 }\r
 \r
 /**\r
@@ -943,21 +917,17 @@ VariablePropertySetUefiDefined (
   Constructor function of VarCheckUefiLib to set property and\r
   register SetVariable check handler for UEFI defined variables.\r
 \r
-  @param[in] ImageHandle    The firmware allocated handle for the EFI image.\r
-  @param[in] SystemTable    A pointer to the EFI System Table.\r
-\r
   @retval EFI_SUCCESS       The constructor executed correctly.\r
 \r
 **/\r
-EFI_STATUS\r
+RETURN_STATUS\r
 EFIAPI\r
 VarCheckUefiLibNullClassConstructor (\r
-  IN EFI_HANDLE             ImageHandle,\r
-  IN EFI_SYSTEM_TABLE       *SystemTable\r
+  VOID\r
   )\r
 {\r
   VariablePropertySetUefiDefined ();\r
   VarCheckLibRegisterSetVariableCheckHandler (SetVariableCheckHandlerUefiDefined);\r
 \r
-  return EFI_SUCCESS;\r
+  return RETURN_SUCCESS;\r
 }\r