VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Include/Library/SmmLib.h@ 85716

Last change on this file since 85716 was 80721, checked in by vboxsync, 5 years ago

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), 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/**
16 Triggers an SMI at boot time.
17
18 This function triggers a software SMM interrupt at boot time.
19
20**/
21VOID
22EFIAPI
23TriggerBootServiceSoftwareSmi (
24 VOID
25 );
26
27
28/**
29 Triggers an SMI at run time.
30
31 This function triggers a software SMM interrupt at run time.
32
33**/
34VOID
35EFIAPI
36TriggerRuntimeSoftwareSmi (
37 VOID
38 );
39
40
41/**
42 Test if a boot time software SMI happened.
43
44 This function tests if a software SMM interrupt happened. If a software SMM interrupt happened and
45 it was triggered at boot time, it returns TRUE. Otherwise, it returns FALSE.
46
47 @retval TRUE A software SMI triggered at boot time happened.
48 @retval FLASE No software SMI happened, or the software SMI was triggered at run time.
49
50**/
51BOOLEAN
52EFIAPI
53IsBootServiceSoftwareSmi (
54 VOID
55 );
56
57
58/**
59 Test if a run time software SMI happened.
60
61 This function tests if a software SMM interrupt happened. If a software SMM interrupt happened and
62 it was triggered at run time, it returns TRUE. Otherwise, it returns FALSE.
63
64 @retval TRUE A software SMI triggered at run time happened.
65 @retval FLASE No software SMI happened or the software SMI was triggered at boot time.
66
67**/
68BOOLEAN
69EFIAPI
70IsRuntimeSoftwareSmi (
71 VOID
72 );
73
74/**
75 Clear APM SMI Status Bit; Set the EOS bit.
76
77**/
78VOID
79EFIAPI
80ClearSmi (
81 VOID
82 );
83#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