VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseLib/UnitTestHost.h

Last change on this file 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
2 Unit Test Host functions.
3
4 Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7**/
8
9#ifndef __UNIT_TEST_HOST_H__
10#define __UNIT_TEST_HOST_H__
11
12#include "BaseLibInternals.h"
13#include <Library/UnitTestHostBaseLib.h>
14
15/**
16 Enables CPU interrupts.
17
18**/
19VOID
20EFIAPI
21UnitTestHostBaseLibEnableInterrupts (
22 VOID
23 );
24
25/**
26 Disables CPU interrupts.
27
28**/
29VOID
30EFIAPI
31UnitTestHostBaseLibDisableInterrupts (
32 VOID
33 );
34
35/**
36 Enables CPU interrupts for the smallest window required to capture any
37 pending interrupts.
38
39**/
40VOID
41EFIAPI
42UnitTestHostBaseLibEnableDisableInterrupts (
43 VOID
44 );
45
46/**
47 Set the current CPU interrupt state.
48
49 Sets the current CPU interrupt state to the state specified by
50 InterruptState. If InterruptState is TRUE, then interrupts are enabled. If
51 InterruptState is FALSE, then interrupts are disabled. InterruptState is
52 returned.
53
54 @param InterruptState TRUE if interrupts should enabled. FALSE if
55 interrupts should be disabled.
56
57 @return InterruptState
58
59**/
60BOOLEAN
61EFIAPI
62UnitTestHostBaseLibGetInterruptState (
63 VOID
64 );
65
66#endif
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