1 | /** @file
|
---|
2 |
|
---|
3 | Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
---|
4 | Copyright (c) 2018, Linaro Ltd. All rights reserved.<BR>
|
---|
5 |
|
---|
6 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
7 |
|
---|
8 | **/
|
---|
9 |
|
---|
10 | #ifndef _VIRTUAL_KEYBOARD_COMPONENT_NAME_H_
|
---|
11 | #define _VIRTUAL_KEYBOARD_COMPONENT_NAME_H_
|
---|
12 |
|
---|
13 | extern EFI_COMPONENT_NAME_PROTOCOL gVirtualKeyboardComponentName;
|
---|
14 | extern EFI_COMPONENT_NAME2_PROTOCOL gVirtualKeyboardComponentName2;
|
---|
15 |
|
---|
16 | //
|
---|
17 | // EFI Component Name Functions
|
---|
18 | //
|
---|
19 |
|
---|
20 | /**
|
---|
21 | Retrieves a Unicode string that is the user readable name of the driver.
|
---|
22 |
|
---|
23 | This function retrieves the user readable name of a driver in the form of a
|
---|
24 | Unicode string. If the driver specified by This has a user readable name in
|
---|
25 | the language specified by Language, then a pointer to the driver name is
|
---|
26 | returned in DriverName, and EFI_SUCCESS is returned. If the driver specified
|
---|
27 | by This does not support the language specified by Language,
|
---|
28 | then EFI_UNSUPPORTED is returned.
|
---|
29 |
|
---|
30 | @param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or
|
---|
31 | EFI_COMPONENT_NAME_PROTOCOL instance.
|
---|
32 |
|
---|
33 | @param Language[in] A pointer to a Null-terminated ASCII string
|
---|
34 | array indicating the language. This is the
|
---|
35 | language of the driver name that the caller is
|
---|
36 | requesting, and it must match one of the
|
---|
37 | languages specified in SupportedLanguages. The
|
---|
38 | number of languages supported by a driver is up
|
---|
39 | to the driver writer. Language is specified
|
---|
40 | in RFC 4646 or ISO 639-2 language code format.
|
---|
41 |
|
---|
42 | @param DriverName[out] A pointer to the Unicode string to return.
|
---|
43 | This Unicode string is the name of the
|
---|
44 | driver specified by This in the language
|
---|
45 | specified by Language.
|
---|
46 |
|
---|
47 | @retval EFI_SUCCESS The Unicode string for the Driver specified by
|
---|
48 | This and the language specified by Language was
|
---|
49 | returned in DriverName.
|
---|
50 |
|
---|
51 | @retval EFI_INVALID_PARAMETER Language is NULL.
|
---|
52 |
|
---|
53 | @retval EFI_INVALID_PARAMETER DriverName is NULL.
|
---|
54 |
|
---|
55 | @retval EFI_UNSUPPORTED The driver specified by This does not support
|
---|
56 | the language specified by Language.
|
---|
57 |
|
---|
58 | **/
|
---|
59 | EFI_STATUS
|
---|
60 | EFIAPI
|
---|
61 | VirtualKeyboardComponentNameGetDriverName (
|
---|
62 | IN EFI_COMPONENT_NAME_PROTOCOL *This,
|
---|
63 | IN CHAR8 *Language,
|
---|
64 | OUT CHAR16 **DriverName
|
---|
65 | );
|
---|
66 |
|
---|
67 | /**
|
---|
68 | Retrieves a Unicode string that is the user readable name of the controller
|
---|
69 | that is being managed by a driver.
|
---|
70 |
|
---|
71 | This function retrieves the user readable name of the controller specified by
|
---|
72 | ControllerHandle and ChildHandle in the form of a Unicode string. If the
|
---|
73 | driver specified by This has a user readable name in the language specified by
|
---|
74 | Language, then a pointer to the controller name is returned in ControllerName,
|
---|
75 | and EFI_SUCCESS is returned. If the driver specified by This is not currently
|
---|
76 | managing the controller specified by ControllerHandle and ChildHandle,
|
---|
77 | then EFI_UNSUPPORTED is returned. If the driver specified by This does not
|
---|
78 | support the language specified by Language, then EFI_UNSUPPORTED is returned.
|
---|
79 |
|
---|
80 | @param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or
|
---|
81 | EFI_COMPONENT_NAME_PROTOCOL instance.
|
---|
82 |
|
---|
83 | @param ControllerHandle[in] The handle of a controller that the driver
|
---|
84 | specified by This is managing. This handle
|
---|
85 | specifies the controller whose name is to be
|
---|
86 | returned.
|
---|
87 |
|
---|
88 | @param ChildHandle[in] The handle of the child controller to retrieve
|
---|
89 | the name of. This is an optional parameter that
|
---|
90 | may be NULL. It will be NULL for device
|
---|
91 | drivers. It will also be NULL for a bus drivers
|
---|
92 | that wish to retrieve the name of the bus
|
---|
93 | controller. It will not be NULL for a bus
|
---|
94 | driver that wishes to retrieve the name of a
|
---|
95 | child controller.
|
---|
96 |
|
---|
97 | @param Language[in] A pointer to a Null-terminated ASCII string
|
---|
98 | array indicating the language. This is the
|
---|
99 | language of the driver name that the caller is
|
---|
100 | requesting, and it must match one of the
|
---|
101 | languages specified in SupportedLanguages. The
|
---|
102 | number of languages supported by a driver is up
|
---|
103 | to the driver writer. Language is specified in
|
---|
104 | RFC 4646 or ISO 639-2 language code format.
|
---|
105 |
|
---|
106 | @param ControllerName[out] A pointer to the Unicode string to return.
|
---|
107 | This Unicode string is the name of the
|
---|
108 | controller specified by ControllerHandle and
|
---|
109 | ChildHandle in the language specified by
|
---|
110 | Language from the point of view of the driver
|
---|
111 | specified by This.
|
---|
112 |
|
---|
113 | @retval EFI_SUCCESS The Unicode string for the user readable name in
|
---|
114 | the language specified by Language for the
|
---|
115 | driver specified by This was returned in
|
---|
116 | DriverName.
|
---|
117 |
|
---|
118 | @retval EFI_INVALID_PARAMETER ControllerHandle is NULL.
|
---|
119 |
|
---|
120 | @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid
|
---|
121 | EFI_HANDLE.
|
---|
122 |
|
---|
123 | @retval EFI_INVALID_PARAMETER Language is NULL.
|
---|
124 |
|
---|
125 | @retval EFI_INVALID_PARAMETER ControllerName is NULL.
|
---|
126 |
|
---|
127 | @retval EFI_UNSUPPORTED The driver specified by This is not currently
|
---|
128 | managing the controller specified by
|
---|
129 | ControllerHandle and ChildHandle.
|
---|
130 |
|
---|
131 | @retval EFI_UNSUPPORTED The driver specified by This does not support
|
---|
132 | the language specified by Language.
|
---|
133 |
|
---|
134 | **/
|
---|
135 | EFI_STATUS
|
---|
136 | EFIAPI
|
---|
137 | VirtualKeyboardComponentNameGetControllerName (
|
---|
138 | IN EFI_COMPONENT_NAME_PROTOCOL *This,
|
---|
139 | IN EFI_HANDLE ControllerHandle,
|
---|
140 | IN EFI_HANDLE ChildHandle OPTIONAL,
|
---|
141 | IN CHAR8 *Language,
|
---|
142 | OUT CHAR16 **ControllerName
|
---|
143 | );
|
---|
144 |
|
---|
145 | #endif
|
---|