]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Library/SmmLib.h
MdePkg/Library/Smm: Fix various typos
[mirror_edk2.git] / MdePkg / Include / Library / SmmLib.h
CommitLineData
0bce7349 1/** @file\r
2 Library class name: SmmLib\r
0bce7349 3\r
9095d37b 4 SMM Library Services that abstracts both S/W SMI generation and detection.\r
0bce7349 5\r
9095d37b 6 Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
9344f092 7 SPDX-License-Identifier: BSD-2-Clause-Patent\r
0bce7349 8\r
9**/\r
10\r
11#ifndef __SMM_LIB_H__\r
12#define __SMM_LIB_H__\r
13\r
14\r
15/**\r
9095d37b 16 Triggers an SMI at boot time.\r
0bce7349 17\r
18 This function triggers a software SMM interrupt at boot time.\r
19\r
20**/\r
21VOID\r
22EFIAPI\r
23TriggerBootServiceSoftwareSmi (\r
24 VOID\r
25 );\r
26\r
27\r
28/**\r
9095d37b 29 Triggers an SMI at run time.\r
0bce7349 30\r
31 This function triggers a software SMM interrupt at run time.\r
32\r
33**/\r
34VOID\r
35EFIAPI\r
36TriggerRuntimeSoftwareSmi (\r
37 VOID\r
38 );\r
39\r
40\r
41/**\r
9095d37b 42 Test if a boot time software SMI happened.\r
0bce7349 43\r
44 This function tests if a software SMM interrupt happened. If a software SMM interrupt happened and\r
45 it was triggered at boot time, it returns TRUE. Otherwise, it returns FALSE.\r
46\r
47 @retval TRUE A software SMI triggered at boot time happened.\r
fae43d06 48 @retval FALSE No software SMI happened, or the software SMI was triggered at run time.\r
0bce7349 49\r
50**/\r
51BOOLEAN\r
52EFIAPI\r
53IsBootServiceSoftwareSmi (\r
54 VOID\r
55 );\r
56\r
57\r
58/**\r
9095d37b 59 Test if a run time software SMI happened.\r
0bce7349 60\r
61 This function tests if a software SMM interrupt happened. If a software SMM interrupt happened and\r
62 it was triggered at run time, it returns TRUE. Otherwise, it returns FALSE.\r
63\r
64 @retval TRUE A software SMI triggered at run time happened.\r
fae43d06 65 @retval FALSE No software SMI happened or the software SMI was triggered at boot time.\r
0bce7349 66\r
67**/\r
68BOOLEAN\r
69EFIAPI\r
70IsRuntimeSoftwareSmi (\r
71 VOID\r
72 );\r
73\r
74/**\r
9095d37b
LG
75 Clear APM SMI Status Bit; Set the EOS bit.\r
76\r
0bce7349 77**/\r
78VOID\r
79EFIAPI\r
80ClearSmi (\r
81 VOID\r
82 );\r
83#endif\r