diff options
Diffstat (limited to 'Core/EM/usb/componentname.h')
-rw-r--r-- | Core/EM/usb/componentname.h | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/Core/EM/usb/componentname.h b/Core/EM/usb/componentname.h new file mode 100644 index 0000000..a417828 --- /dev/null +++ b/Core/EM/usb/componentname.h @@ -0,0 +1,117 @@ +//**************************************************************************** +//**************************************************************************** +//** ** +//** (C)Copyright 1985-2008, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Norcross, GA 30093 ** +//** ** +//** Phone (770)-246-8600 ** +//** ** +//**************************************************************************** +//**************************************************************************** + +//**************************************************************************** +// $Header: /Alaska/SOURCE/Modules/USB/ALASKA/componentname.h 9 5/03/11 10:49a Ryanchou $ +// +// $Revision: 9 $ +// +// $Date: 5/03/11 10:49a $ +//**************************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/SOURCE/Modules/USB/ALASKA/componentname.h $ +// +// 9 5/03/11 10:49a Ryanchou +// [TAG] EIP59272 +// [Category] Improvement +// [Description] According Uefi 2.1 Aptio porting document, changes made +// to install the component name protocol. +// [Files] componentname.c, componentname.h, efiusbkb.c, efiusbmass.c, +// efiusbms.c, uhcd.c, uhcd.h, usbbus.c +// +// 8 3/04/11 1:31p Olegi +// +// 7 3/04/11 1:25p Olegi +// [TAG] EIP55172 +// [Category] Spec Update +// [Severity] Important +// [Description] Install EFI_COMPONENT_NAME_PROTOCOL if BIOS is in UEFI +// 2.0 mode and EFI_COMPONENT_NAME2_PROTOCOL if BIOS is in UEFI 2.1 mode. +// [Files] uhcd.c +// usbbus.c +// efiusbkb.c +// efiusbmass.c +// efiusbms.c +// componentname.c +// componentname.h +// +// 6 5/16/08 12:02p Olegi +// Compliance with AMI coding standard. +// +//**************************************************************************** + +//<AMI_FHDR_START> +//---------------------------------------------------------------------------- +// +// Name: ComponentName.h +// +// Description: AMI USB driver component name header file +// +//---------------------------------------------------------------------------- +//<AMI_FHDR_END> + +#ifndef __COMPONENTNAME_H__ +#define __COMPONENTNAME_H__ + +//#include <Protocol\ComponentName.h> +typedef CHAR16* (*COMPONENT_CB_T)(EFI_HANDLE controller,EFI_HANDLE child); + +typedef struct { + EFI_COMPONENT_NAME_PROTOCOL icn; + CHAR16 *driver_name; + CHAR16 *component_static; + COMPONENT_CB_T component_cb; +} NAME_SERVICE_T; + //(EIP59272)> +EFI_COMPONENT_NAME_PROTOCOL* +InitNamesStatic( NAME_SERVICE_T* n , CHAR16* driver, CHAR16* component ); + +EFI_COMPONENT_NAME_PROTOCOL* +InitNamesProtocol( NAME_SERVICE_T* n , CHAR16* driver, COMPONENT_CB_T component_cb); + +// +// EFI Component Name Functions +// +EFI_STATUS +AMIUSBComponentNameGetDriverName ( + EFI_COMPONENT_NAME_PROTOCOL *This, + CHAR8 *Language, + CHAR16 **DriverName + ); + +EFI_STATUS +AMIUSBComponentNameGetControllerName ( + EFI_COMPONENT_NAME_PROTOCOL *This, + EFI_HANDLE ControllerHandle, + EFI_HANDLE ChildHandle OPTIONAL, + CHAR8 *Language, + CHAR16 **ControllerName + ); + //<(EIP59272) +#endif //__COMPONENTNAME_H__ + +//**************************************************************************** +//**************************************************************************** +//** ** +//** (C)Copyright 1985-2008, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 5555 Oakbrook Pkwy, Norcross, GA 30093 ** +//** ** +//** Phone (770)-246-8600 ** +//** ** +//**************************************************************************** +//**************************************************************************** |