]>
Commit | Line | Data |
---|---|---|
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 | |
21 | VOID\r | |
22 | EFIAPI\r | |
23 | TriggerBootServiceSoftwareSmi (\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 | |
34 | VOID\r | |
35 | EFIAPI\r | |
36 | TriggerRuntimeSoftwareSmi (\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 | |
48 | @retval FLASE No software SMI happened, or the software SMI was triggered at run time.\r | |
49 | \r | |
50 | **/\r | |
51 | BOOLEAN\r | |
52 | EFIAPI\r | |
53 | IsBootServiceSoftwareSmi (\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 | |
65 | @retval FLASE No software SMI happened or the software SMI was triggered at boot time.\r | |
66 | \r | |
67 | **/\r | |
68 | BOOLEAN\r | |
69 | EFIAPI\r | |
70 | IsRuntimeSoftwareSmi (\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 |
78 | VOID\r | |
79 | EFIAPI\r | |
80 | ClearSmi (\r | |
81 | VOID\r | |
82 | );\r | |
83 | #endif\r |