X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=IntelFrameworkPkg%2FInclude%2FProtocol%2FSmmUsbDispatch.h;h=e4cf74219cb9693865421b12c72c2e6767db81ce;hb=06a098c478a8e1ac495f3a74b044b3bce53b83fc;hp=741b0a1a7e1a8c7712540cefe62ad945fcdb3169;hpb=b80fbe8543eb535e40172a263b6b5d633e5b282c;p=mirror_edk2.git diff --git a/IntelFrameworkPkg/Include/Protocol/SmmUsbDispatch.h b/IntelFrameworkPkg/Include/Protocol/SmmUsbDispatch.h index 741b0a1a7e..e4cf74219c 100644 --- a/IntelFrameworkPkg/Include/Protocol/SmmUsbDispatch.h +++ b/IntelFrameworkPkg/Include/Protocol/SmmUsbDispatch.h @@ -1,7 +1,7 @@ /** @file - This file declares EFI Smm USB Smi Child Protocol. + Provides the parent dispatch service for the USB SMI source generator. - Copyright (c) 2007, Intel Corporation + 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 @@ -10,11 +10,10 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - Module Name: SmmUsbDispatch.h - @par Revision Reference: This Protocol is defined in Framework of EFI SMM Core Interface Spec Version 0.9. + **/ #ifndef _EFI_SMM_USB_DISPATCH_H_ @@ -41,7 +40,18 @@ typedef enum { } EFI_USB_SMI_TYPE; typedef struct { + /// + /// Describes whether this child handler will be invoked in response to a USB legacy + /// emulation event, such as port-trap on the PS/2* keyboard control registers, or to a + /// USB wake event, such as resumption from a sleep state. + /// EFI_USB_SMI_TYPE Type; + /// + /// The device path is part of the context structure and describes the location of the + /// particular USB host controller in the system for which this register event will occur. + /// This location is important because of the possible integration of several USB host + /// controllers in a system. + /// EFI_DEVICE_PATH_PROTOCOL *Device; } EFI_SMM_USB_DISPATCH_CONTEXT; @@ -51,35 +61,33 @@ typedef struct { /** Dispatch function for a USB SMI handler. - @param DispatchHandle Handle of this dispatch function. - @param DispatchContext Pointer to the dispatch function's context. + @param[in] DispatchHandle Handle of this dispatch function. + @param[in] DispatchContext Pointer to the dispatch function's context. The DispatchContext fields are filled in by the dispatching driver prior to invoking this dispatch function. - Nothing - **/ typedef VOID -(EFIAPI *EFI_SMM_USB_DISPATCH) ( +(EFIAPI *EFI_SMM_USB_DISPATCH)( IN EFI_HANDLE DispatchHandle, IN EFI_SMM_USB_DISPATCH_CONTEXT *DispatchContext ); /** - 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 Protocol instance pointer. - @param DispatchFunction Pointer to dispatch function to be invoked for - this SMI source - @param DispatchContext Pointer to the dispatch function's context. + @param[in] This Pointer to the EFI_SMM_USB_DISPATCH_PROTOCOL instance. + @param[in] DispatchFunction Pointer to dispatch function to be invoked + for this SMI source. + @param[in] DispatchContext Pointer to the dispatch function's context. The caller fills this context in before calling the register function to indicate to the register function the USB SMI types for which the dispatch function should be invoked. - @param DispatchHandle Handle of dispatch function, for when interfacing - with the parent Sx state SMM driver. + @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. @@ -92,47 +100,37 @@ VOID **/ typedef EFI_STATUS -(EFIAPI *EFI_SMM_USB_REGISTER) ( - IN EFI_SMM_USB_DISPATCH_PROTOCOL *This, +(EFIAPI *EFI_SMM_USB_REGISTER)( + IN EFI_SMM_USB_DISPATCH_PROTOCOL *This, IN EFI_SMM_USB_DISPATCH DispatchFunction, IN EFI_SMM_USB_DISPATCH_CONTEXT *DispatchContext, OUT EFI_HANDLE *DispatchHandle ); /** - Unregister a child SMI source dispatch function with a parent SMM driver + Unregisters a USB service. - @param This Protocol instance pointer. - @param DispatchHandle Handle of dispatch function to deregister. + @param[in] This Pointer to the EFI_SMM_USB_DISPATCH_PROTOCOL instance. + @param[in] DispatchHandle 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 dispatch functions for this SMI source. - @retval EFI_INVALID_PARAMETER Handle is invalid. + @retval EFI_INVALID_PARAMETER The DispatchHandle was not valid. **/ typedef EFI_STATUS -(EFIAPI *EFI_SMM_USB_UNREGISTER) ( +(EFIAPI *EFI_SMM_USB_UNREGISTER)( IN EFI_SMM_USB_DISPATCH_PROTOCOL *This, - IN EFI_HANDLE DispatchHandle + IN EFI_HANDLE DispatchHandle ); -// -// Interface structure for the SMM USB SMI Dispatch Protocol -// -/** - @par Protocol Description: - Provides the parent dispatch service for the USB SMI source generator. - - @param Register - Installs a child service to be dispatched by this protocol. - - @param UnRegister - Removes a child service dispatched by this protocol. - -**/ +/// +/// The EFI_SMM_USB_DISPATCH_PROTOCOL provides the ability to install child handlers for the +/// given event types. +/// struct _EFI_SMM_USB_DISPATCH_PROTOCOL { EFI_SMM_USB_REGISTER Register; EFI_SMM_USB_UNREGISTER UnRegister;