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