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