]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/SmmLibNull/SmmLibNull.c
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Library / SmmLibNull / SmmLibNull.c
CommitLineData
0bce7349 1/** @file\r
2 NULL instance of SMM Library.\r
3\r
9095d37b
LG
4 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php.\r
0bce7349 9\r
9095d37b
LG
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
0bce7349 12\r
13**/\r
14\r
15#include <Base.h>\r
16#include <Library/SmmLib.h>\r
17\r
18/**\r
9095d37b 19 Triggers an SMI at boot time.\r
0bce7349 20\r
21 This function triggers a software SMM interrupt at boot time.\r
22\r
23**/\r
24VOID\r
25EFIAPI\r
26TriggerBootServiceSoftwareSmi (\r
27 VOID\r
28 )\r
29{\r
30 return;\r
31}\r
32\r
33\r
34/**\r
9095d37b 35 Triggers an SMI at run time.\r
0bce7349 36\r
37 This function triggers a software SMM interrupt at run time.\r
38\r
39**/\r
40VOID\r
41EFIAPI\r
42TriggerRuntimeSoftwareSmi (\r
43 VOID\r
44 )\r
45{\r
46 return;\r
47}\r
48\r
49\r
50\r
51/**\r
9095d37b 52 Test if a boot time software SMI happened.\r
0bce7349 53\r
9095d37b
LG
54 This function tests if a software SMM interrupt happened. If a software SMM\r
55 interrupt happened and it was triggered at boot time, it returns TRUE. Otherwise,\r
58380e9c 56 it returns FALSE.\r
0bce7349 57\r
58 @retval TRUE A software SMI triggered at boot time happened.\r
58380e9c 59 @retval FALSE No software SMI happened or the software SMI was triggered at run time.\r
0bce7349 60\r
61**/\r
62BOOLEAN\r
63EFIAPI\r
64IsBootServiceSoftwareSmi (\r
65 VOID\r
66 )\r
67{\r
68 return FALSE;\r
69}\r
70\r
71\r
72/**\r
9095d37b 73 Test if a run time software SMI happened.\r
0bce7349 74\r
9095d37b
LG
75 This function tests if a software SMM interrupt happened. If a software SMM\r
76 interrupt happened and it was triggered at run time, it returns TRUE. Otherwise,\r
58380e9c 77 it returns FALSE.\r
0bce7349 78\r
79 @retval TRUE A software SMI triggered at run time happened.\r
58380e9c 80 @retval FALSE No software SMI happened or the software SMI was triggered at boot time.\r
0bce7349 81\r
82**/\r
83BOOLEAN\r
84EFIAPI\r
85IsRuntimeSoftwareSmi (\r
86 VOID\r
87 )\r
88{\r
89 return FALSE;\r
90}\r
91\r
92/**\r
9095d37b
LG
93 Clear APM SMI Status Bit; Set the EOS bit.\r
94\r
0bce7349 95**/\r
96VOID\r
97EFIAPI\r
98ClearSmi (\r
99 VOID\r
100 )\r
101{\r
102 return;\r
103}\r