X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=IntelFrameworkPkg%2FInclude%2FProtocol%2FSmmSxDispatch.h;h=7d1dec47fd91b97cbc605c73a2cbbb7246826431;hb=c5b900bed8bab2f16149c48f11c525690611b33d;hp=938d3725decd6b32f4adca3673ff3bdb15ac7573;hpb=3a228b9ed500e7379de53ff9bfc17d9fe43b8a7a;p=mirror_edk2.git diff --git a/IntelFrameworkPkg/Include/Protocol/SmmSxDispatch.h b/IntelFrameworkPkg/Include/Protocol/SmmSxDispatch.h index 938d3725de..7d1dec47fd 100644 --- a/IntelFrameworkPkg/Include/Protocol/SmmSxDispatch.h +++ b/IntelFrameworkPkg/Include/Protocol/SmmSxDispatch.h @@ -1,14 +1,14 @@ /** @file Provides the parent dispatch service for a given Sx-state source generator. - Copyright (c) 2007 - 2009, Intel Corporation - All rights reserved. This program and the accompanying materials - are licensed and made available under the terms and conditions of the BSD License - which accompanies this distribution. The full text of the license may be found at - http://opensource.org/licenses/bsd-license.php - - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under +the terms and conditions of the BSD License that accompanies this distribution. +The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php. + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @par Revision Reference: This Protocol is defined in Framework of EFI SMM Core Interface Spec @@ -19,6 +19,10 @@ #ifndef _EFI_SMM_SX_DISPATCH_H_ #define _EFI_SMM_SX_DISPATCH_H_ +// +// Share some common definitions with PI SMM +// +#include // // Global ID for the Sx SMI Protocol @@ -29,24 +33,6 @@ } typedef struct _EFI_SMM_SX_DISPATCH_PROTOCOL EFI_SMM_SX_DISPATCH_PROTOCOL; -// -// Related Definitions -// -typedef enum { - SxS0, - SxS1, - SxS2, - SxS3, - SxS4, - SxS5, - EfiMaximumSleepType -} EFI_SLEEP_TYPE; - -typedef enum { - SxEntry, - SxExit, - EfiMaximumPhase -} EFI_SLEEP_PHASE; typedef struct { EFI_SLEEP_TYPE Type; @@ -59,13 +45,13 @@ typedef struct { /** Dispatch function for a Sx state SMI handler. - @param DispatchHandle Handle of this dispatch function. - @param DispatchContext Pointer to the dispatch function's context. + @param DispatchHandle The handle of this dispatch function. + @param DispatchContext The pointer to the dispatch function's context. The Type and Phase fields are filled in by the Sx dispatch driver prior to invoking this dispatch function. For this interface, the Sx driver will call the dispatch function for all Sx type and phases, so the Sx state handler(s) must check the Type and - Phase field of EFI_SMM_SX_DISPATCH_CONTEXT and act accordingly. + Phase field of EFI_SMM_SX_DISPATCH_CONTEXT, and act accordingly. @return None @@ -78,20 +64,20 @@ VOID ); /** - Register a child SMI source dispatch function with a parent SMM driver + Register a child SMI source dispatch function with a parent SMM driver. - @param This Pointer to the EFI_SMM_SX_DISPATCH_PROTOCOL instance. - @param DispatchFunction Function to install. - @param DispatchContext Pointer to the dispatch function's context. - The caller fills this context in before calling - the register function to indicate to the register + @param This The pointer to the EFI_SMM_SX_DISPATCH_PROTOCOL instance. + @param DispatchFunction The function to install. + @param DispatchContext The pointer to the dispatch function's context. + The caller fills in this context before calling + the register function to indicates to the register function which Sx state type and phase the caller - wishes to be called back on. For this intertace, + wishes to be called back on. For this interface, the Sx driver will call the registered handlers for all Sx type and phases, so the Sx state handler(s) must check the Type and Phase field of the Dispatch - context and act accordingly. - @param DispatchHandle Handle of dispatch function, for when interfacing + context, and act accordingly. + @param DispatchHandle The handle of dispatch function, for interfacing with the parent Sx state SMM driver. @retval EFI_SUCCESS The dispatch function has been successfully @@ -102,7 +88,7 @@ VOID @retval EFI_OUT_OF_RESOURCES Not enough memory (system or SMM) to manage this child. @retval EFI_INVALID_PARAMETER DispatchContext is invalid. Type & Phase are not - within valid range. + within a valid range. **/ typedef @@ -117,11 +103,11 @@ EFI_STATUS /** Unregisters an Sx-state service - @param This Pointer to the EFI_SMM_SX_DISPATCH_PROTOCOL instance. - @param DispatchHandle Handle of the service to remove. + @param This The pointer to the EFI_SMM_SX_DISPATCH_PROTOCOL instance. + @param DispatchHandle The handle of the service to remove. - @retval EFI_SUCCESS The dispatch function has been successfully unregistered and the - SMI source has been disabled if there are no other registered child + @retval EFI_SUCCESS The dispatch function has been successfully unregistered, and the + SMI source has been disabled, if there are no other registered child dispatch functions for this SMI source. @retval EFI_INVALID_PARAMETER Handle is invalid.