]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/ComponentName.h
remove some comments introduced by tools.
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Isa / IsaSerialDxe / ComponentName.h
CommitLineData
637ff819 1/*++\r
2\r
366565e0 3 Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
4 All rights reserved. This program and the accompanying materials\r
5 are licensed and made available under the terms and conditions of the BSD License\r
6 which accompanies this distribution. The full text of the license may be found at\r
7 http://opensource.org/licenses/bsd-license.php\r
8\r
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
637ff819 11\r
12Module Name:\r
13\r
14 ComponentName.h\r
15\r
16Abstract:\r
17\r
18\r
19Revision History:\r
20\r
21--*/\r
22\r
23#ifndef _SERIAL_COMPONENT_NAME_H\r
24#define _SERIAL_COMPONENT_NAME_H\r
25\r
26#define SERIAL_PORT_NAME "ISA Serial Port # "\r
27#define ADD_SERIAL_NAME(x, y) AddName ((x), (y))\r
28\r
29extern EFI_COMPONENT_NAME_PROTOCOL gIsaSerialComponentName;\r
30\r
31//\r
32// EFI Component Name Functions\r
33//\r
34EFI_STATUS\r
35EFIAPI\r
36IsaSerialComponentNameGetDriverName (\r
37 IN EFI_COMPONENT_NAME_PROTOCOL *This,\r
38 IN CHAR8 *Language,\r
39 OUT CHAR16 **DriverName\r
40 )\r
41/*++\r
42\r
43 Routine Description:\r
44\r
45 Retrieves a Unicode string that is the user readable name of the EFI Driver.\r
46\r
47 Arguments:\r
48\r
49 This - A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.\r
50 Language - A pointer to a three character ISO 639-2 language identifier.\r
51 This is the language of the driver name that that the caller\r
52 is requesting, and it must match one of the languages specified\r
53 in SupportedLanguages. The number of languages supported by a\r
54 driver is up to the driver writer.\r
55 DriverName - A pointer to the Unicode string to return. This Unicode string\r
56 is the name of the driver specified by This in the language\r
57 specified by Language.\r
58\r
59 Returns:\r
60\r
61 EFI_SUCCESS - The Unicode string for the Driver specified by This\r
62 and the language specified by Language was returned\r
63 in DriverName.\r
64 EFI_INVALID_PARAMETER - Language is NULL.\r
65 EFI_INVALID_PARAMETER - DriverName is NULL.\r
66 EFI_UNSUPPORTED - The driver specified by This does not support the\r
67 language specified by Language.\r
68\r
69--*/\r
70;\r
71\r
72EFI_STATUS\r
73EFIAPI\r
74IsaSerialComponentNameGetControllerName (\r
75 IN EFI_COMPONENT_NAME_PROTOCOL *This,\r
76 IN EFI_HANDLE ControllerHandle,\r
77 IN EFI_HANDLE ChildHandle OPTIONAL,\r
78 IN CHAR8 *Language,\r
79 OUT CHAR16 **ControllerName\r
80 )\r
81/*++\r
82\r
83 Routine Description:\r
84\r
85 Retrieves a Unicode string that is the user readable name of the controller\r
86 that is being managed by an EFI Driver.\r
87\r
88 Arguments:\r
89\r
90 This - A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.\r
91 ControllerHandle - The handle of a controller that the driver specified by\r
92 This is managing. This handle specifies the controller\r
93 whose name is to be returned.\r
94 ChildHandle - The handle of the child controller to retrieve the name\r
95 of. This is an optional parameter that may be NULL. It\r
96 will be NULL for device drivers. It will also be NULL\r
97 for a bus drivers that wish to retrieve the name of the\r
98 bus controller. It will not be NULL for a bus driver\r
99 that wishes to retrieve the name of a child controller.\r
100 Language - A pointer to a three character ISO 639-2 language\r
101 identifier. This is the language of the controller name\r
102 that that the caller is requesting, and it must match one\r
103 of the languages specified in SupportedLanguages. The\r
104 number of languages supported by a driver is up to the\r
105 driver writer.\r
106 ControllerName - A pointer to the Unicode string to return. This Unicode\r
107 string is the name of the controller specified by\r
108 ControllerHandle and ChildHandle in the language\r
109 specified by Language from the point of view of the\r
110 driver specified by This.\r
111\r
112 Returns:\r
113\r
114 EFI_SUCCESS - The Unicode string for the user readable name in the\r
115 language specified by Language for the driver\r
116 specified by This was returned in DriverName.\r
117 EFI_INVALID_PARAMETER - ControllerHandle is not a valid EFI_HANDLE.\r
118 EFI_INVALID_PARAMETER - ChildHandle is not NULL and it is not a valid\r
119 EFI_HANDLE.\r
120 EFI_INVALID_PARAMETER - Language is NULL.\r
121 EFI_INVALID_PARAMETER - ControllerName is NULL.\r
122 EFI_UNSUPPORTED - The driver specified by This is not currently\r
123 managing the controller specified by\r
124 ControllerHandle and ChildHandle.\r
125 EFI_UNSUPPORTED - The driver specified by This does not support the\r
126 language specified by Language.\r
127\r
128--*/\r
129;\r
130\r
131VOID\r
132AddName (\r
133 IN SERIAL_DEV *SerialDevice,\r
134 IN EFI_ISA_IO_PROTOCOL *IsaIo\r
135 )\r
136/*++\r
137\r
138 Routine Description:\r
139\r
140 Add the component name for the serial io device\r
141\r
142 Arguments:\r
143\r
144 SerialDevice - A pointer to the SERIAL_DEV instance.\r
145 IsaIo - A pointer to the EFI_ISA_IO_PROTOCOL instance.\r
146\r
147 Returns:\r
148\r
149 None\r
150\r
151--*/\r
152;\r
153\r
154#endif\r