Home | History | Annotate | Download | only in SmmLibNull
      1 /** @file
      2   NULL instance of SMM Library.
      3 
      4   Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
      5   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
     55   interrupt happened and it was triggered at boot time, it returns TRUE. Otherwise,
     56   it returns FALSE.
     57 
     58   @retval TRUE   A software SMI triggered at boot time happened.
     59   @retval FALSE  No software SMI happened or the software SMI was triggered at run time.
     60 
     61 **/
     62 BOOLEAN
     63 EFIAPI
     64 IsBootServiceSoftwareSmi (
     65   VOID
     66   )
     67 {
     68   return FALSE;
     69 }
     70 
     71 
     72 /**
     73   Test if a run time software SMI happened.
     74 
     75   This function tests if a software SMM interrupt happened. If a software SMM
     76   interrupt happened and it was triggered at run time, it returns TRUE. Otherwise,
     77   it returns FALSE.
     78 
     79   @retval TRUE   A software SMI triggered at run time happened.
     80   @retval FALSE  No software SMI happened or the software SMI was triggered at boot time.
     81 
     82 **/
     83 BOOLEAN
     84 EFIAPI
     85 IsRuntimeSoftwareSmi (
     86   VOID
     87   )
     88 {
     89   return FALSE;
     90 }
     91 
     92 /**
     93   Clear APM SMI Status Bit; Set the EOS bit.
     94 
     95 **/
     96 VOID
     97 EFIAPI
     98 ClearSmi (
     99   VOID
    100   )
    101 {
    102   return;
    103 }
    104