]>
Commit | Line | Data |
---|---|---|
b7c5912a | 1 | /** @file\r |
2 | Provides a service to retrieve a pointer to the SMM Services Table.\r | |
3 | Only available to SMM module types.\r | |
4 | \r | |
9df063a0 HT |
5 | Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r |
6 | This program and the accompanying materials\r | |
b7c5912a | 7 | are licensed and made available under the terms and conditions of the BSD License\r |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #ifndef __SMM_SERVICES_TABLE_LIB_H__\r | |
17 | #define __SMM_SERVICES_TABLE_LIB_H__\r | |
18 | \r | |
19 | #include <PiSmm.h>\r | |
20 | \r | |
21 | ///\r | |
22 | /// Cache pointer to the SMM Services Table\r | |
23 | ///\r | |
24 | extern EFI_SMM_SYSTEM_TABLE2 *gSmst;\r | |
25 | \r | |
26 | /**\r | |
27 | This function allows the caller to determine if the driver is executing in \r | |
28 | System Management Mode(SMM).\r | |
29 | \r | |
30 | This function returns TRUE if the driver is executing in SMM and FALSE if the \r | |
31 | driver is not executing in SMM.\r | |
32 | \r | |
33 | @retval TRUE The driver is executing in System Management Mode (SMM).\r | |
34 | @retval FALSE The driver is not executing in System Management Mode (SMM). \r | |
35 | \r | |
36 | **/\r | |
37 | BOOLEAN\r | |
38 | EFIAPI\r | |
39 | InSmm (\r | |
40 | VOID\r | |
41 | );\r | |
42 | \r | |
43 | #endif\r |