]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/UnitTestHost.h
MdePkg: Replace Opcode with the corresponding instructions.
[mirror_edk2.git] / MdePkg / Library / BaseLib / UnitTestHost.h
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 **/
19 VOID
20 EFIAPI
21 UnitTestHostBaseLibEnableInterrupts (
22 VOID
23 );
24
25 /**
26 Disables CPU interrupts.
27
28 **/
29 VOID
30 EFIAPI
31 UnitTestHostBaseLibDisableInterrupts (
32 VOID
33 );
34
35 /**
36 Enables CPU interrupts for the smallest window required to capture any
37 pending interrupts.
38
39 **/
40 VOID
41 EFIAPI
42 UnitTestHostBaseLibEnableDisableInterrupts (
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 **/
60 BOOLEAN
61 EFIAPI
62 UnitTestHostBaseLibGetInterruptState (
63 VOID
64 );
65
66 #endif