X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FProtocol%2FSmmSwDispatch2.h;h=161493755568b77fa5157c991e9bc2f9ce87be7c;hb=08855193cafebaa2e071ffb5f083bcb3cb6d4df0;hp=c64e2b226f4db52dd8ab4a85dc578022040eee72;hpb=9df063a06aef048c042498e2f542fb693e93493a;p=mirror_edk2.git diff --git a/MdePkg/Include/Protocol/SmmSwDispatch2.h b/MdePkg/Include/Protocol/SmmSwDispatch2.h index c64e2b226f..1614937555 100644 --- a/MdePkg/Include/Protocol/SmmSwDispatch2.h +++ b/MdePkg/Include/Protocol/SmmSwDispatch2.h @@ -1,10 +1,10 @@ /** @file - SMM Software Dispatch Protocol as defined in PI 1.2 Specification + SMM Software Dispatch Protocol introduced from PI 1.2 Specification Volume 4 System Management Mode Core Interface. This protocol provides the parent dispatch service for a given SMI source generator. - Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2016, 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 @@ -65,22 +65,22 @@ typedef struct _EFI_SMM_SW_DISPATCH2_PROTOCOL EFI_SMM_SW_DISPATCH2_PROTOCOL; DispatchHandle contains a unique handle which may be used later to unregister the function using UnRegister(). - @param[in] This Pointer to the EFI_SMM_SW_DISPATCH2_PROTOCOL instance. - @param[in] DispatchFunction Function to register for handler when the specified software - SMI is generated. - @param[in] RegisterContext Pointer to the dispatch function's context. - The caller fills this context in before calling - the register function to indicate to the register - function which Software SMI input value the - dispatch function should be invoked for. - @param[out] DispatchHandle Handle generated by the dispatcher to track the - function instance. + @param[in] This Pointer to the EFI_SMM_SW_DISPATCH2_PROTOCOL instance. + @param[in] DispatchFunction Function to register for handler when the specified software + SMI is generated. + @param[in, out] RegisterContext Pointer to the dispatch function's context. + The caller fills this context in before calling + the register function to indicate to the register + function which Software SMI input value the + dispatch function should be invoked for. + @param[out] DispatchHandle Handle generated by the dispatcher to track the + function instance. @retval EFI_SUCCESS The dispatch function has been successfully registered and the SMI source has been enabled. @retval EFI_DEVICE_ERROR The SW driver was unable to enable the SMI source. @retval EFI_INVALID_PARAMETER RegisterContext is invalid. The SW SMI input value - is not within valid range. + is not within a valid range or is already in use. @retval EFI_OUT_OF_RESOURCES There is not enough memory (system or SMM) to manage this child. @retval EFI_OUT_OF_RESOURCES A unique software SMI value could not be assigned @@ -91,7 +91,7 @@ EFI_STATUS (EFIAPI *EFI_SMM_SW_REGISTER2)( IN CONST EFI_SMM_SW_DISPATCH2_PROTOCOL *This, IN EFI_SMM_HANDLER_ENTRY_POINT2 DispatchFunction, - IN CONST EFI_SMM_SW_REGISTER_CONTEXT *RegisterContext, + IN OUT EFI_SMM_SW_REGISTER_CONTEXT *RegisterContext, OUT EFI_HANDLE *DispatchHandle );