BayTrail/AmiModulePkg/Usb/ComponentName.h
2018-06-21 15:06:56 +08:00

75 lines
3.2 KiB
C

//**********************************************************************
//**********************************************************************
//** **
//** (C)Copyright 1985-2016, American Megatrends, Inc. **
//** **
//** All Rights Reserved. **
//** **
//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
//** **
//** Phone: (770)-246-8600 **
//** **
//**********************************************************************
//**********************************************************************
/** @file ComponentName.h
AMI USB driver component name header file
**/
#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_NAME2_PROTOCOL icn;
CHAR16 *driver_name;
CHAR16 *component_static;
COMPONENT_CB_T component_cb;
} NAME_SERVICE_T;
//(EIP59272)>
EFI_COMPONENT_NAME2_PROTOCOL*
InitNamesStatic( NAME_SERVICE_T* n , CHAR16* driver, CHAR16* component );
EFI_COMPONENT_NAME2_PROTOCOL*
InitNamesProtocol( NAME_SERVICE_T* n , CHAR16* driver, COMPONENT_CB_T component_cb);
//
// EFI Component Name Functions
//
EFI_STATUS
EFIAPI
AMIUSBComponentNameGetDriverName (
EFI_COMPONENT_NAME2_PROTOCOL *This,
CHAR8 *Language,
CHAR16 **DriverName
);
EFI_STATUS
EFIAPI
AMIUSBComponentNameGetControllerName (
EFI_COMPONENT_NAME2_PROTOCOL *This,
EFI_HANDLE ControllerHandle,
EFI_HANDLE ChildHandle OPTIONAL,
CHAR8 *Language,
CHAR16 **ControllerName
);
//<(EIP59272)
#endif //__COMPONENTNAME_H__
//**********************************************************************
//**********************************************************************
//** **
//** (C)Copyright 1985-2016, American Megatrends, Inc. **
//** **
//** All Rights Reserved. **
//** **
//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
//** **
//** Phone: (770)-246-8600 **
//** **
//**********************************************************************
//**********************************************************************