VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/Library/SmmLib.h

Last change on this file was 99404, checked in by vboxsync, 22 months ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1/** @file
2 Library class name: SmmLib
3
4 SMM Library Services that abstracts both S/W SMI generation and detection.
5
6 Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8
9**/
10
11#ifndef __SMM_LIB_H__
12#define __SMM_LIB_H__
13
14/**
15 Triggers an SMI at boot time.
16
17 This function triggers a software SMM interrupt at boot time.
18
19**/
20VOID
21EFIAPI
22TriggerBootServiceSoftwareSmi (
23 VOID
24 );
25
26/**
27 Triggers an SMI at run time.
28
29 This function triggers a software SMM interrupt at run time.
30
31**/
32VOID
33EFIAPI
34TriggerRuntimeSoftwareSmi (
35 VOID
36 );
37
38/**
39 Test if a boot time software SMI happened.
40
41 This function tests if a software SMM interrupt happened. If a software SMM interrupt happened and
42 it was triggered at boot time, it returns TRUE. Otherwise, it returns FALSE.
43
44 @retval TRUE A software SMI triggered at boot time happened.
45 @retval FALSE No software SMI happened, or the software SMI was triggered at run time.
46
47**/
48BOOLEAN
49EFIAPI
50IsBootServiceSoftwareSmi (
51 VOID
52 );
53
54/**
55 Test if a run time software SMI happened.
56
57 This function tests if a software SMM interrupt happened. If a software SMM interrupt happened and
58 it was triggered at run time, it returns TRUE. Otherwise, it returns FALSE.
59
60 @retval TRUE A software SMI triggered at run time happened.
61 @retval FALSE No software SMI happened or the software SMI was triggered at boot time.
62
63**/
64BOOLEAN
65EFIAPI
66IsRuntimeSoftwareSmi (
67 VOID
68 );
69
70/**
71 Clear APM SMI Status Bit; Set the EOS bit.
72
73**/
74VOID
75EFIAPI
76ClearSmi (
77 VOID
78 );
79
80#endif
Note: See TracBrowser for help on using the repository browser.

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