]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Library/SmmServicesTableLib.h
BaseTools/BinToPcd: Fix Python 2.7.x compatibility issue
[mirror_edk2.git] / MdePkg / Include / Library / SmmServicesTableLib.h
CommitLineData
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
9095d37b 5Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
9df063a0 6This program and the accompanying materials\r
b7c5912a 7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT 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
24extern EFI_SMM_SYSTEM_TABLE2 *gSmst;\r
25\r
26/**\r
9095d37b 27 This function allows the caller to determine if the driver is executing in\r
b7c5912a 28 System Management Mode(SMM).\r
29\r
9095d37b 30 This function returns TRUE if the driver is executing in SMM and FALSE if the\r
b7c5912a 31 driver is not executing in SMM.\r
32\r
33 @retval TRUE The driver is executing in System Management Mode (SMM).\r
9095d37b 34 @retval FALSE The driver is not executing in System Management Mode (SMM).\r
b7c5912a 35\r
36**/\r
37BOOLEAN\r
38EFIAPI\r
39InSmm (\r
40 VOID\r
41 );\r
42\r
43#endif\r