]>
Commit | Line | Data |
---|---|---|
637ff819 | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.\r | |
4 | This software and associated documentation (if any) is furnished\r | |
5 | under a license and may only be used or copied in accordance\r | |
6 | with the terms of the license. Except as permitted by such\r | |
7 | license, no part of this software or documentation may be\r | |
8 | reproduced, stored in a retrieval system, or transmitted in any\r | |
9 | form or by any means without the express written consent of\r | |
10 | Intel Corporation.\r | |
11 | \r | |
12 | \r | |
13 | Module Name:\r | |
14 | \r | |
15 | ComponentName.h\r | |
16 | \r | |
17 | Abstract:\r | |
18 | \r | |
19 | \r | |
20 | Revision History:\r | |
21 | \r | |
22 | --*/\r | |
23 | \r | |
24 | #ifndef _SERIAL_COMPONENT_NAME_H\r | |
25 | #define _SERIAL_COMPONENT_NAME_H\r | |
26 | \r | |
27 | #define SERIAL_PORT_NAME "ISA Serial Port # "\r | |
28 | #define ADD_SERIAL_NAME(x, y) AddName ((x), (y))\r | |
29 | \r | |
30 | extern EFI_COMPONENT_NAME_PROTOCOL gIsaSerialComponentName;\r | |
31 | \r | |
32 | //\r | |
33 | // EFI Component Name Functions\r | |
34 | //\r | |
35 | EFI_STATUS\r | |
36 | EFIAPI\r | |
37 | IsaSerialComponentNameGetDriverName (\r | |
38 | IN EFI_COMPONENT_NAME_PROTOCOL *This,\r | |
39 | IN CHAR8 *Language,\r | |
40 | OUT CHAR16 **DriverName\r | |
41 | )\r | |
42 | /*++\r | |
43 | \r | |
44 | Routine Description:\r | |
45 | \r | |
46 | Retrieves a Unicode string that is the user readable name of the EFI Driver.\r | |
47 | \r | |
48 | Arguments:\r | |
49 | \r | |
50 | This - A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.\r | |
51 | Language - A pointer to a three character ISO 639-2 language identifier.\r | |
52 | This is the language of the driver name that that the caller\r | |
53 | is requesting, and it must match one of the languages specified\r | |
54 | in SupportedLanguages. The number of languages supported by a\r | |
55 | driver is up to the driver writer.\r | |
56 | DriverName - A pointer to the Unicode string to return. This Unicode string\r | |
57 | is the name of the driver specified by This in the language\r | |
58 | specified by Language.\r | |
59 | \r | |
60 | Returns:\r | |
61 | \r | |
62 | EFI_SUCCESS - The Unicode string for the Driver specified by This\r | |
63 | and the language specified by Language was returned\r | |
64 | in DriverName.\r | |
65 | EFI_INVALID_PARAMETER - Language is NULL.\r | |
66 | EFI_INVALID_PARAMETER - DriverName is NULL.\r | |
67 | EFI_UNSUPPORTED - The driver specified by This does not support the\r | |
68 | language specified by Language.\r | |
69 | \r | |
70 | --*/\r | |
71 | ;\r | |
72 | \r | |
73 | EFI_STATUS\r | |
74 | EFIAPI\r | |
75 | IsaSerialComponentNameGetControllerName (\r | |
76 | IN EFI_COMPONENT_NAME_PROTOCOL *This,\r | |
77 | IN EFI_HANDLE ControllerHandle,\r | |
78 | IN EFI_HANDLE ChildHandle OPTIONAL,\r | |
79 | IN CHAR8 *Language,\r | |
80 | OUT CHAR16 **ControllerName\r | |
81 | )\r | |
82 | /*++\r | |
83 | \r | |
84 | Routine Description:\r | |
85 | \r | |
86 | Retrieves a Unicode string that is the user readable name of the controller\r | |
87 | that is being managed by an EFI Driver.\r | |
88 | \r | |
89 | Arguments:\r | |
90 | \r | |
91 | This - A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.\r | |
92 | ControllerHandle - The handle of a controller that the driver specified by\r | |
93 | This is managing. This handle specifies the controller\r | |
94 | whose name is to be returned.\r | |
95 | ChildHandle - The handle of the child controller to retrieve the name\r | |
96 | of. This is an optional parameter that may be NULL. It\r | |
97 | will be NULL for device drivers. It will also be NULL\r | |
98 | for a bus drivers that wish to retrieve the name of the\r | |
99 | bus controller. It will not be NULL for a bus driver\r | |
100 | that wishes to retrieve the name of a child controller.\r | |
101 | Language - A pointer to a three character ISO 639-2 language\r | |
102 | identifier. This is the language of the controller name\r | |
103 | that that the caller is requesting, and it must match one\r | |
104 | of the languages specified in SupportedLanguages. The\r | |
105 | number of languages supported by a driver is up to the\r | |
106 | driver writer.\r | |
107 | ControllerName - A pointer to the Unicode string to return. This Unicode\r | |
108 | string is the name of the controller specified by\r | |
109 | ControllerHandle and ChildHandle in the language\r | |
110 | specified by Language from the point of view of the\r | |
111 | driver specified by This.\r | |
112 | \r | |
113 | Returns:\r | |
114 | \r | |
115 | EFI_SUCCESS - The Unicode string for the user readable name in the\r | |
116 | language specified by Language for the driver\r | |
117 | specified by This was returned in DriverName.\r | |
118 | EFI_INVALID_PARAMETER - ControllerHandle is not a valid EFI_HANDLE.\r | |
119 | EFI_INVALID_PARAMETER - ChildHandle is not NULL and it is not a valid\r | |
120 | EFI_HANDLE.\r | |
121 | EFI_INVALID_PARAMETER - Language is NULL.\r | |
122 | EFI_INVALID_PARAMETER - ControllerName is NULL.\r | |
123 | EFI_UNSUPPORTED - The driver specified by This is not currently\r | |
124 | managing the controller specified by\r | |
125 | ControllerHandle and ChildHandle.\r | |
126 | EFI_UNSUPPORTED - The driver specified by This does not support the\r | |
127 | language specified by Language.\r | |
128 | \r | |
129 | --*/\r | |
130 | ;\r | |
131 | \r | |
132 | VOID\r | |
133 | AddName (\r | |
134 | IN SERIAL_DEV *SerialDevice,\r | |
135 | IN EFI_ISA_IO_PROTOCOL *IsaIo\r | |
136 | )\r | |
137 | /*++\r | |
138 | \r | |
139 | Routine Description:\r | |
140 | \r | |
141 | Add the component name for the serial io device\r | |
142 | \r | |
143 | Arguments:\r | |
144 | \r | |
145 | SerialDevice - A pointer to the SERIAL_DEV instance.\r | |
146 | IsaIo - A pointer to the EFI_ISA_IO_PROTOCOL instance.\r | |
147 | \r | |
148 | Returns:\r | |
149 | \r | |
150 | None\r | |
151 | \r | |
152 | --*/\r | |
153 | ;\r | |
154 | \r | |
155 | #endif\r |