]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/SmmLibNull/SmmLibNull.c
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / SmmLibNull / SmmLibNull.c
CommitLineData
0bce7349 1/** @file\r
2 NULL instance of SMM Library.\r
3\r
9095d37b 4 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
9344f092 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
0bce7349 6\r
7**/\r
8\r
9#include <Base.h>\r
10#include <Library/SmmLib.h>\r
11\r
12/**\r
9095d37b 13 Triggers an SMI at boot time.\r
0bce7349 14\r
15 This function triggers a software SMM interrupt at boot time.\r
16\r
17**/\r
18VOID\r
19EFIAPI\r
20TriggerBootServiceSoftwareSmi (\r
21 VOID\r
22 )\r
23{\r
24 return;\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 return;\r
41}\r
42\r
43\r
44\r
45/**\r
9095d37b 46 Test if a boot time software SMI happened.\r
0bce7349 47\r
9095d37b
LG
48 This function tests if a software SMM interrupt happened. If a software SMM\r
49 interrupt happened and it was triggered at boot time, it returns TRUE. Otherwise,\r
58380e9c 50 it returns FALSE.\r
0bce7349 51\r
52 @retval TRUE A software SMI triggered at boot time happened.\r
58380e9c 53 @retval FALSE No software SMI happened or the software SMI was triggered at run time.\r
0bce7349 54\r
55**/\r
56BOOLEAN\r
57EFIAPI\r
58IsBootServiceSoftwareSmi (\r
59 VOID\r
60 )\r
61{\r
62 return FALSE;\r
63}\r
64\r
65\r
66/**\r
9095d37b 67 Test if a run time software SMI happened.\r
0bce7349 68\r
9095d37b
LG
69 This function tests if a software SMM interrupt happened. If a software SMM\r
70 interrupt happened and it was triggered at run time, it returns TRUE. Otherwise,\r
58380e9c 71 it returns FALSE.\r
0bce7349 72\r
73 @retval TRUE A software SMI triggered at run time happened.\r
58380e9c 74 @retval FALSE No software SMI happened or the software SMI was triggered at boot time.\r
0bce7349 75\r
76**/\r
77BOOLEAN\r
78EFIAPI\r
79IsRuntimeSoftwareSmi (\r
80 VOID\r
81 )\r
82{\r
83 return FALSE;\r
84}\r
85\r
86/**\r
9095d37b
LG
87 Clear APM SMI Status Bit; Set the EOS bit.\r
88\r
0bce7349 89**/\r
90VOID\r
91EFIAPI\r
92ClearSmi (\r
93 VOID\r
94 )\r
95{\r
96 return;\r
97}\r