1 /** @file -- VarCheckPolicyLib.h
2 This internal header file defines the common interface of constructor for
5 Copyright (c) Microsoft Corporation. All rights reserved.
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef _VAR_CHECK_POLICY_LIB_H_
11 #define _VAR_CHECK_POLICY_LIB_H_
14 Common constructor function of VarCheckPolicyLib to register VarCheck handler
17 @retval EFI_SUCCESS The constructor executed correctly.
22 VarCheckPolicyLibCommonConstructor (
27 This function is wrapper function to validate the buffer.
29 @param Buffer The buffer start address to be checked.
30 @param Length The buffer length to be checked.
32 @retval TRUE This buffer is valid per processor architecture and not overlap with SMRAM/MMRAM.
33 @retval FALSE This buffer is not valid per processor architecture or overlap with SMRAM/MMRAM.
37 VarCheckPolicyIsBufferOutsideValid (
38 IN EFI_PHYSICAL_ADDRESS Buffer
,
42 #endif // _VAR_CHECK_POLICY_LIB_H_