]>
Commit | Line | Data |
---|---|---|
90b24889 WF |
1 | /** @file\r |
2 | UEFI Component Name(2) protocol implementation for WiFi Connection Manager.\r | |
3 | \r | |
4 | Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r | |
5 | \r | |
ecf98fbc | 6 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
90b24889 WF |
7 | \r |
8 | **/\r | |
9 | \r | |
10 | #ifndef __EFI_WIFI_COMPONENT_NAME__\r | |
11 | #define __EFI_WIFI_COMPONENT_NAME__\r | |
12 | \r | |
13 | /**\r | |
14 | Retrieves a Unicode string that is the user-readable name of the EFI Driver.\r | |
15 | \r | |
16 | @param This A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.\r | |
17 | @param Language A pointer to a three-character ISO 639-2 language identifier.\r | |
18 | This is the language of the driver name that that the caller\r | |
19 | is requesting, and it must match one of the languages specified\r | |
20 | in SupportedLanguages. The number of languages supported by a\r | |
21 | driver is up to the driver writer.\r | |
22 | @param DriverName A pointer to the Unicode string to return. This Unicode string\r | |
23 | is the name of the driver specified by This in the language\r | |
24 | specified by Language.\r | |
25 | \r | |
26 | @retval EFI_SUCCESS The Unicode string for the Driver specified by This\r | |
27 | and the language specified by Language was returned\r | |
28 | in DriverName.\r | |
29 | @retval EFI_INVALID_PARAMETER Language is NULL.\r | |
30 | @retval EFI_INVALID_PARAMETER DriverName is NULL.\r | |
31 | @retval EFI_UNSUPPORTED The driver specified by This does not support the\r | |
32 | language specified by Language.\r | |
33 | \r | |
34 | **/\r | |
35 | EFI_STATUS\r | |
36 | EFIAPI\r | |
37 | WifiMgrDxeComponentNameGetDriverName (\r | |
38 | IN EFI_COMPONENT_NAME2_PROTOCOL *This,\r | |
39 | IN CHAR8 *Language,\r | |
40 | OUT CHAR16 **DriverName\r | |
41 | );\r | |
42 | \r | |
43 | /**\r | |
44 | Retrieves a Unicode string that is the user readable name of the controller\r | |
45 | that is being managed by an EFI Driver.\r | |
46 | \r | |
47 | @param This A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.\r | |
48 | @param ControllerHandle The handle of a controller that the driver specified by\r | |
49 | This is managing. This handle specifies the controller\r | |
50 | whose name is to be returned.\r | |
51 | @param ChildHandle The handle of the child controller to retrieve the name\r | |
52 | of. This is an optional parameter that may be NULL. It\r | |
53 | will be NULL for device drivers. It will also be NULL\r | |
54 | for a bus drivers that wish to retrieve the name of the\r | |
55 | bus controller. It will not be NULL for a bus driver\r | |
56 | that wishes to retrieve the name of a child controller.\r | |
57 | @param Language A pointer to a three character ISO 639-2 language\r | |
58 | identifier. This is the language of the controller name\r | |
59 | that the caller is requesting, and it must match one\r | |
60 | of the languages specified in SupportedLanguages. The\r | |
61 | number of languages supported by a driver is up to the\r | |
62 | driver writer.\r | |
63 | @param ControllerName A pointer to the Unicode string to return. This Unicode\r | |
64 | string is the name of the controller specified by\r | |
65 | ControllerHandle and ChildHandle in the language specified\r | |
66 | by Language, from the point of view of the driver specified\r | |
67 | by This.\r | |
68 | \r | |
69 | @retval EFI_SUCCESS The Unicode string for the user-readable name in the\r | |
70 | language specified by Language for the driver\r | |
71 | specified by This was returned in DriverName.\r | |
72 | @retval EFI_INVALID_PARAMETER ControllerHandle is NULL.\r | |
73 | @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r | |
74 | @retval EFI_INVALID_PARAMETER Language is NULL.\r | |
75 | @retval EFI_INVALID_PARAMETER ControllerName is NULL.\r | |
76 | @retval EFI_UNSUPPORTED The driver specified by This is not currently managing\r | |
77 | the controller specified by ControllerHandle and\r | |
78 | ChildHandle.\r | |
79 | @retval EFI_UNSUPPORTED The driver specified by This does not support the\r | |
80 | language specified by Language.\r | |
81 | \r | |
82 | **/\r | |
83 | EFI_STATUS\r | |
84 | EFIAPI\r | |
85 | WifiMgrDxeComponentNameGetControllerName (\r | |
86 | IN EFI_COMPONENT_NAME2_PROTOCOL *This,\r | |
87 | IN EFI_HANDLE ControllerHandle,\r | |
88 | IN EFI_HANDLE ChildHandle OPTIONAL,\r | |
89 | IN CHAR8 *Language,\r | |
90 | OUT CHAR16 **ControllerName\r | |
91 | );\r | |
92 | \r | |
93 | #endif\r |