Home | History | Annotate | Download | only in Include
      1 /*++
      2 
      3 Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>
      4 This program and the accompanying materials
      5 are licensed and made available under the terms and conditions of the BSD License
      6 which accompanies this distribution.  The full text of the license may be found at
      7 http://opensource.org/licenses/bsd-license.php
      8 
      9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     11 
     12 Module Name:
     13 
     14   SmmRuntimeLib.h
     15 
     16 Abstract:
     17 
     18   SMM Related prototypes that can be referenced for Preboot Configuration only.
     19 
     20 --*/
     21 
     22 #ifndef _SMM_RUNTIME_LIB_H_
     23 #define _SMM_RUNTIME_LIB_H_
     24 
     25 #include "Tiano.h"
     26 #include "EfiRuntimeLib.h"
     27 
     28 BOOLEAN
     29 EfiInSmm (
     30   VOID
     31   )
     32 /*++
     33 
     34 Routine Description:
     35 
     36   Test whether in Smm mode currently.
     37 
     38 Arguments:
     39 
     40   None
     41 
     42 Returns:
     43 
     44   TRUE      - In Smm mode
     45   FALSE     - Not in Smm mode
     46 
     47 --*/
     48 ;
     49 
     50 EFI_STATUS
     51 RegisterSmmRuntimeDriver (
     52   IN EFI_HANDLE             ImageHandle,
     53   IN EFI_SYSTEM_TABLE       *SystemTable,
     54   OUT EFI_HANDLE            *SmmImageHandle
     55   )
     56 /*++
     57 
     58 Routine Description:
     59 
     60   Registers a Driver with the SMM.
     61 
     62 Arguments:
     63 
     64   ImageHandle     - The firmware allocated handle for the EFI image.
     65   SystemTable     - A pointer to the EFI System Table.
     66   SmmImageHandle  - Image handle returned by the SMM driver.
     67 
     68 Returns:
     69 
     70   Status code
     71 
     72 --*/
     73 ;
     74 
     75 #endif
     76