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