remove some comments introduced by tools.
[mirror_edk2.git] / MdeModulePkg / Universal / DebugPortDxe / ComponentName.c
CommitLineData
c1f23d63 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13 ComponentName.c\r
14\r
15Abstract:\r
16 Component name protocol member functions for DebugPort...\r
17 \r
18--*/\r
19\r
20#include "DebugPort.h"\r
21\r
22//\r
23// EFI Component Name Protocol\r
24//\r
25EFI_COMPONENT_NAME_PROTOCOL gDebugPortComponentName = {\r
26 DebugPortComponentNameGetDriverName,\r
27 DebugPortComponentNameGetControllerName,\r
28 "eng"\r
29};\r
30\r
31static EFI_UNICODE_STRING_TABLE mDebugPortDriverNameTable[] = {\r
32 {\r
33 "eng",\r
34 (CHAR16 *) L"DebugPort Driver"\r
35 },\r
36 {\r
37 NULL,\r
38 NULL\r
39 }\r
40};\r
41\r
42EFI_STATUS\r
43EFIAPI\r
44DebugPortComponentNameGetDriverName (\r
45 IN EFI_COMPONENT_NAME_PROTOCOL *This,\r
46 IN CHAR8 *Language,\r
47 OUT CHAR16 **DriverName\r
48 )\r
49/*++\r
50\r
51 Routine Description:\r
52 Retrieves a Unicode string that is the user readable name of the EFI Driver.\r
53\r
54 Arguments:\r
55 This - A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.\r
56 Language - A pointer to a three character ISO 639-2 language identifier.\r
57 This is the language of the driver name that that the caller \r
58 is requesting, and it must match one of the languages specified\r
59 in SupportedLanguages. The number of languages supported by a \r
60 driver is up to the driver writer.\r
61 DriverName - A pointer to the Unicode string to return. This Unicode string\r
62 is the name of the driver specified by This in the language \r
63 specified by Language.\r
64\r
65 Returns:\r
66 EFI_SUCCESS - The Unicode string for the Driver specified by This\r
67 and the language specified by Language was returned \r
68 in DriverName.\r
69 EFI_INVALID_PARAMETER - Language is NULL.\r
70 EFI_INVALID_PARAMETER - DriverName is NULL.\r
71 EFI_UNSUPPORTED - The driver specified by This does not support the \r
72 language specified by Language.\r
73\r
74--*/\r
75{\r
76 return LookupUnicodeString (\r
77 Language,\r
78 gDebugPortComponentName.SupportedLanguages,\r
79 mDebugPortDriverNameTable,\r
80 DriverName\r
81 );\r
82}\r
83\r
84EFI_STATUS\r
85EFIAPI\r
86DebugPortComponentNameGetControllerName (\r
87 IN EFI_COMPONENT_NAME_PROTOCOL *This,\r
88 IN EFI_HANDLE ControllerHandle,\r
89 IN EFI_HANDLE ChildHandle OPTIONAL,\r
90 IN CHAR8 *Language,\r
91 OUT CHAR16 **ControllerName\r
92 )\r
93/*++\r
94\r
95 Routine Description:\r
96 The debug port driver does not support GetControllerName, so this function\r
97 is just stubbed and returns EFI_UNSUPPORTED.\r
98\r
99 Arguments:\r
100 Per EFI 1.10 driver model\r
101\r
102 Returns:\r
103 EFI_UNSUPPORTED\r
104\r
105--*/\r
106{\r
107 return EFI_UNSUPPORTED;\r
108}\r