XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Variables
MmUsbDispatch.h File Reference
#include <Pi/PiMmCis.h>
Include dependency graph for MmUsbDispatch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  EFI_MM_USB_REGISTER_CONTEXT
 
struct  _EFI_MM_USB_DISPATCH_PROTOCOL
 

Macros

#define EFI_MM_USB_DISPATCH_PROTOCOL_GUID
 

Typedefs

typedef struct _EFI_MM_USB_DISPATCH_PROTOCOL EFI_MM_USB_DISPATCH_PROTOCOL
 
typedef EFI_STATUS(EFIAPIEFI_MM_USB_REGISTER) (IN CONST EFI_MM_USB_DISPATCH_PROTOCOL *This, IN EFI_MM_HANDLER_ENTRY_POINT DispatchFunction, IN CONST EFI_MM_USB_REGISTER_CONTEXT *RegisterContext, OUT EFI_HANDLE *DispatchHandle)
 
typedef EFI_STATUS(EFIAPIEFI_MM_USB_UNREGISTER) (IN CONST EFI_MM_USB_DISPATCH_PROTOCOL *This, IN EFI_HANDLE DispatchHandle)
 

Enumerations

enum  EFI_USB_MMI_TYPE { UsbLegacy , UsbWake }
 

Variables

EFI_GUID gEfiMmUsbDispatchProtocolGuid
 

Detailed Description

MM USB Dispatch Protocol as defined in PI 1.5 Specification Volume 4 Management Mode Core Interface.

Provides the parent dispatch service for the USB MMI source generator.

Copyright (c) 2017, 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.

Revision Reference:
This protocol is from PI Version 1.5.

Macro Definition Documentation

◆ EFI_MM_USB_DISPATCH_PROTOCOL_GUID

#define EFI_MM_USB_DISPATCH_PROTOCOL_GUID
Value:
{ \
0xee9b8d90, 0xc5a6, 0x40a2, {0xbd, 0xe2, 0x52, 0x55, 0x8d, 0x33, 0xcc, 0xa1 } \
}

Typedef Documentation

◆ EFI_MM_USB_DISPATCH_PROTOCOL

◆ EFI_MM_USB_REGISTER

typedef EFI_STATUS(EFIAPI * EFI_MM_USB_REGISTER) (IN CONST EFI_MM_USB_DISPATCH_PROTOCOL *This, IN EFI_MM_HANDLER_ENTRY_POINT DispatchFunction, IN CONST EFI_MM_USB_REGISTER_CONTEXT *RegisterContext, OUT EFI_HANDLE *DispatchHandle)

Provides the parent dispatch service for the USB MMI source generator.

This service registers a function (DispatchFunction) which will be called when the USB- related MMI specified by RegisterContext has occurred. On return, DispatchHandle contains a unique handle which may be used later to unregister the function using UnRegister(). The DispatchFunction will be called with Context set to the same value as was passed into this function in RegisterContext and with CommBuffer containing NULL and CommBufferSize containing zero.

Parameters
[in]ThisPointer to the EFI_MM_USB_DISPATCH_PROTOCOL instance.
[in]DispatchFunctionFunction to register for handler when a USB-related MMI occurs.
[in]RegisterContextPointer 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 MMI types for which the dispatch function should be invoked.
[out]DispatchHandleHandle generated by the dispatcher to track the function instance.
Return values
EFI_SUCCESSThe dispatch function has been successfully registered and the MMI source has been enabled.
EFI_DEVICE_ERRORThe driver was unable to enable the MMI source.
EFI_INVALID_PARAMETERRegisterContext is invalid. The USB MMI type is not within valid range.
EFI_OUT_OF_RESOURCESThere is not enough memory (system or MM) to manage this child.

◆ EFI_MM_USB_UNREGISTER

typedef EFI_STATUS(EFIAPI * EFI_MM_USB_UNREGISTER) (IN CONST EFI_MM_USB_DISPATCH_PROTOCOL *This, IN EFI_HANDLE DispatchHandle)

Unregisters a USB service.

This service removes the handler associated with DispatchHandle so that it will no longer be called when the USB event occurs.

Parameters
[in]ThisPointer to the EFI_MM_USB_DISPATCH_PROTOCOL instance.
[in]DispatchHandleHandle of the service to remove.
Return values
EFI_SUCCESSThe dispatch function has been successfully unregistered and the MMI source has been disabled if there are no other registered child dispatch functions for this MMI source.
EFI_INVALID_PARAMETERThe DispatchHandle was not valid.

Enumeration Type Documentation

◆ EFI_USB_MMI_TYPE

USB MMI event types

Enumerator
UsbLegacy 
UsbWake 

Variable Documentation

◆ gEfiMmUsbDispatchProtocolGuid

EFI_GUID gEfiMmUsbDispatchProtocolGuid
extern