remove some comments introduced by tools.
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / AtapiPassThruDxe / ComponentName.c
CommitLineData
513f3f44 1/** @file\r
2 Copyright (c) 2006, Intel Corporation \r
3 All rights reserved. This program and the accompanying materials \r
4 are licensed and made available under the terms and conditions of the BSD License \r
5 which accompanies this distribution. The full text of the license may be found at \r
6 http://opensource.org/licenses/bsd-license.php \r
7\r
8 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
9 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
10\r
11 Module Name: ComponentName.c\r
12\r
13**/\r
14#include "AtapiPassThru.h"\r
15\r
16///\r
17/// EFI Component Name Protocol\r
18///\r
19EFI_COMPONENT_NAME_PROTOCOL gAtapiScsiPassThruComponentName = {\r
20 AtapiScsiPassThruComponentNameGetDriverName,\r
21 AtapiScsiPassThruComponentNameGetControllerName,\r
22 "eng"\r
23};\r
24\r
25static EFI_UNICODE_STRING_TABLE mAtapiScsiPassThruDriverNameTable[] = {\r
26 { "eng", (CHAR16 *) L"ATAPI SCSI Pass Thru Driver" },\r
27 { NULL , NULL }\r
28};\r
29\r
30/**\r
31 Retrieves a Unicode string that is the user readable name of the EFI Driver.\r
32\r
33 @param This A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.\r
34 @param Language A pointer to a three character ISO 639-2 language identifier.\r
35 This is the language of the driver name that that the caller\r
36 is requesting, and it must match one of the languages specified\r
37 in SupportedLanguages. The number of languages supported by a\r
38 driver is up to the driver writer.\r
39 @param DriverName A pointer to the Unicode string to return. This Unicode string\r
40 is the name of the driver specified by This in the language\r
41 specified by Language.\r
42\r
43 @retval EFI_SUCCESS The Unicode string for the Driver specified by This\r
44 and the language specified by Language was returned\r
45 in DriverName.\r
46 @retval EFI_INVALID_PARAMETER Language is NULL.\r
47 @retval EFI_INVALID_PARAMETER DriverName is NULL.\r
48 @retval EFI_UNSUPPORTED The driver specified by This does not support the\r
49 language specified by Language.\r
50\r
51**/\r
52EFI_STATUS\r
53EFIAPI\r
54AtapiScsiPassThruComponentNameGetDriverName (\r
55 IN EFI_COMPONENT_NAME_PROTOCOL *This,\r
56 IN CHAR8 *Language,\r
57 OUT CHAR16 **DriverName\r
58 )\r
59{\r
60 return LookupUnicodeString (\r
61 Language,\r
62 gAtapiScsiPassThruComponentName.SupportedLanguages,\r
63 mAtapiScsiPassThruDriverNameTable,\r
64 DriverName\r
65 );\r
66}\r
67\r
68/**\r
69 Retrieves a Unicode string that is the user readable name of the controller\r
70 that is being managed by an EFI Driver.\r
71\r
72 @param This A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.\r
73 @param ControllerHandle The handle of a controller that the driver specified by\r
74 This is managing. This handle specifies the controller\r
75 whose name is to be returned.\r
76 @param ChildHandle The handle of the child controller to retrieve the name\r
77 of. This is an optional parameter that may be NULL. It\r
78 will be NULL for device drivers. It will also be NULL\r
79 for a bus drivers that wish to retrieve the name of the\r
80 bus controller. It will not be NULL for a bus driver\r
81 that wishes to retrieve the name of a child controller.\r
82 @param Language A pointer to a three character ISO 639-2 language\r
83 identifier. This is the language of the controller name\r
84 that that the caller is requesting, and it must match one\r
85 of the languages specified in SupportedLanguages. The\r
86 number of languages supported by a driver is up to the\r
87 driver writer.\r
88 @param ControllerName A pointer to the Unicode string to return. This Unicode\r
89 string is the name of the controller specified by\r
90 ControllerHandle and ChildHandle in the language\r
91 specified by Language from the point of view of the\r
92 driver specified by This.\r
93\r
94 @retval EFI_SUCCESS The Unicode string for the user readable name in the\r
95 language specified by Language for the driver\r
96 specified by This was returned in DriverName.\r
97 @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
98 @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid\r
99 EFI_HANDLE.\r
100 @retval EFI_INVALID_PARAMETER Language is NULL.\r
101 @retval EFI_INVALID_PARAMETER ControllerName is NULL.\r
102 @retval EFI_UNSUPPORTED The driver specified by This is not currently\r
103 managing the controller specified by\r
104 ControllerHandle and ChildHandle.\r
105 @retval EFI_UNSUPPORTED The driver specified by This does not support the\r
106 language specified by Language.\r
107\r
108**/\r
109EFI_STATUS\r
110EFIAPI\r
111AtapiScsiPassThruComponentNameGetControllerName (\r
112 IN EFI_COMPONENT_NAME_PROTOCOL *This,\r
113 IN EFI_HANDLE ControllerHandle,\r
114 IN EFI_HANDLE ChildHandle OPTIONAL,\r
115 IN CHAR8 *Language,\r
116 OUT CHAR16 **ControllerName\r
117 )\r
118{\r
119 return EFI_UNSUPPORTED;\r
120}\r