VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.h@ 105681

Last change on this file since 105681 was 89983, checked in by vboxsync, 4 years ago

Devices/EFI: Merge edk-stable202105 and openssl 1.1.1j and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1/** @file -- VarCheckPolicyLib.h
2This internal header file defines the common interface of constructor for
3VarCheckPolicyLib.
4
5Copyright (c) Microsoft Corporation. All rights reserved.
6SPDX-License-Identifier: BSD-2-Clause-Patent
7
8**/
9
10#ifndef _VAR_CHECK_POLICY_LIB_H_
11#define _VAR_CHECK_POLICY_LIB_H_
12
13/**
14 Common constructor function of VarCheckPolicyLib to register VarCheck handler
15 and SW MMI handlers.
16
17 @retval EFI_SUCCESS The constructor executed correctly.
18
19**/
20EFI_STATUS
21EFIAPI
22VarCheckPolicyLibCommonConstructor (
23 VOID
24 );
25
26/**
27 This function is wrapper function to validate the buffer.
28
29 @param Buffer The buffer start address to be checked.
30 @param Length The buffer length to be checked.
31
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.
34**/
35BOOLEAN
36EFIAPI
37VarCheckPolicyIsBufferOutsideValid (
38 IN EFI_PHYSICAL_ADDRESS Buffer,
39 IN UINT64 Length
40 );
41
42#endif // _VAR_CHECK_POLICY_LIB_H_
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette