TianoCore EDK2 master
Loading...
Searching...
No Matches
WifiConnectionMgrComponentName.c
Go to the documentation of this file.
1
11
12extern EFI_GUID mEfiWifiMgrPrivateGuid;
13
21 "eng"
22};
23
31 "en"
32};
33
39 {
40 "eng;en",
41 L"UEFI WiFi Connection Manager"
42 },
43 {
44 NULL,
45 NULL
46 }
47};
48
54 {
55 "eng;en",
56 L"UEFI WiFi Connection Manager Controller"
57 },
58 {
59 NULL,
60 NULL
61 }
62};
63
87EFIAPI
90 IN CHAR8 *Language,
91 OUT CHAR16 **DriverName
92 )
93{
95 Language,
96 This->SupportedLanguages,
98 DriverName,
99 (BOOLEAN)(This != &gWifiMgrDxeComponentName2)
100 );
101}
102
144EFIAPI
147 IN EFI_HANDLE ControllerHandle,
148 IN EFI_HANDLE ChildHandle OPTIONAL,
149 IN CHAR8 *Language,
150 OUT CHAR16 **ControllerName
151 )
152{
153 EFI_STATUS Status;
154 WIFI_MGR_PRIVATE_PROTOCOL *WifiMgrPrivate;
155
156 //
157 // ChildHandle must be NULL for a Device Driver
158 //
159 if ((ControllerHandle == NULL) || (ChildHandle != NULL)) {
160 return EFI_UNSUPPORTED;
161 }
162
163 //
164 // Check Controller's handle
165 //
166 Status = gBS->OpenProtocol (
167 ControllerHandle,
168 &mEfiWifiMgrPrivateGuid,
169 (VOID **)&WifiMgrPrivate,
170 NULL,
171 NULL,
172 EFI_OPEN_PROTOCOL_GET_PROTOCOL
173 );
174 if (EFI_ERROR (Status)) {
175 return EFI_UNSUPPORTED;
176 }
177
178 return LookupUnicodeString2 (
179 Language,
180 This->SupportedLanguages,
182 ControllerName,
183 (BOOLEAN)(This != &gWifiMgrDxeComponentName2)
184 );
185}
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
#define GLOBAL_REMOVE_IF_UNREFERENCED
Definition: Base.h:48
EFI_STATUS(EFIAPI * EFI_COMPONENT_NAME_GET_CONTROLLER_NAME)(IN EFI_COMPONENT_NAME_PROTOCOL *This, IN EFI_HANDLE ControllerHandle, IN EFI_HANDLE ChildHandle OPTIONAL, IN CHAR8 *Language, OUT CHAR16 **ControllerName)
Definition: ComponentName.h:96
EFI_STATUS(EFIAPI * EFI_COMPONENT_NAME_GET_DRIVER_NAME)(IN EFI_COMPONENT_NAME_PROTOCOL *This, IN CHAR8 *Language, OUT CHAR16 **DriverName)
Definition: ComponentName.h:48
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
EFI_BOOT_SERVICES * gBS
EFI_STATUS EFIAPI LookupUnicodeString2(IN CONST CHAR8 *Language, IN CONST CHAR8 *SupportedLanguages, IN CONST EFI_UNICODE_STRING_TABLE *UnicodeStringTable, OUT CHAR16 **UnicodeString, IN BOOLEAN Iso639Language)
Definition: UefiLib.c:801
EFI_STATUS EFIAPI WifiMgrDxeComponentNameGetDriverName(IN EFI_COMPONENT_NAME2_PROTOCOL *This, IN CHAR8 *Language, OUT CHAR16 **DriverName)
EFI_STATUS EFIAPI WifiMgrDxeComponentNameGetControllerName(IN EFI_COMPONENT_NAME2_PROTOCOL *This, IN EFI_HANDLE ControllerHandle, IN EFI_HANDLE ChildHandle OPTIONAL, IN CHAR8 *Language, OUT CHAR16 **ControllerName)
GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL gWifiMgrDxeComponentName
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mWifiMgrDxeControllerNameTable[]
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mWifiMgrDxeDriverNameTable[]
GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gWifiMgrDxeComponentName2
Definition: Base.h:213