1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
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 **
//** **
//****************************************************************************
//****************************************************************************
|