]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/ComponentName.h
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6240 6f19259b...
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / PciBusDxe / ComponentName.h
CommitLineData
3db51098 1/**@file\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
ead42efc 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
3db51098 12**/\r
ead42efc 13\r
ead42efc 14\r
15#ifndef _EFI_PCI_BUS_COMPONENT_NAME_H\r
16#define _EFI_PCI_BUS_COMPONENT_NAME_H\r
17\r
733f03aa 18extern EFI_COMPONENT_NAME_PROTOCOL gPciBusComponentName;\r
19extern EFI_COMPONENT_NAME2_PROTOCOL gPciBusComponentName2;\r
ead42efc 20\r
21//\r
22// EFI Component Name Functions\r
23//\r
733f03aa 24/**\r
25 Retrieves a Unicode string that is the user readable name of the driver.\r
ead42efc 26\r
733f03aa 27 This function retrieves the user readable name of a driver in the form of a\r
28 Unicode string. If the driver specified by This has a user readable name in\r
29 the language specified by Language, then a pointer to the driver name is\r
30 returned in DriverName, and EFI_SUCCESS is returned. If the driver specified\r
31 by This does not support the language specified by Language,\r
32 then EFI_UNSUPPORTED is returned.\r
ead42efc 33\r
733f03aa 34 @param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
35 EFI_COMPONENT_NAME_PROTOCOL instance.\r
ead42efc 36\r
733f03aa 37 @param Language[in] A pointer to a Null-terminated ASCII string\r
38 array indicating the language. This is the\r
39 language of the driver name that the caller is\r
40 requesting, and it must match one of the\r
41 languages specified in SupportedLanguages. The\r
42 number of languages supported by a driver is up\r
43 to the driver writer. Language is specified\r
44 in RFC 3066 or ISO 639-2 language code format.\r
ead42efc 45\r
733f03aa 46 @param DriverName[out] A pointer to the Unicode string to return.\r
47 This Unicode string is the name of the\r
48 driver specified by This in the language\r
49 specified by Language.\r
ead42efc 50\r
733f03aa 51 @retval EFI_SUCCESS The Unicode string for the Driver specified by\r
52 This and the language specified by Language was\r
53 returned in DriverName.\r
ead42efc 54\r
733f03aa 55 @retval EFI_INVALID_PARAMETER Language is NULL.\r
ead42efc 56\r
733f03aa 57 @retval EFI_INVALID_PARAMETER DriverName is NULL.\r
58\r
59 @retval EFI_UNSUPPORTED The driver specified by This does not support\r
60 the language specified by Language.\r
61\r
62**/\r
63EFI_STATUS\r
64EFIAPI\r
65PciBusComponentNameGetDriverName (\r
66 IN EFI_COMPONENT_NAME_PROTOCOL *This,\r
67 IN CHAR8 *Language,\r
68 OUT CHAR16 **DriverName\r
69 );\r
70\r
71\r
72/**\r
73 Retrieves a Unicode string that is the user readable name of the controller\r
74 that is being managed by a driver.\r
75\r
76 This function retrieves the user readable name of the controller specified by\r
77 ControllerHandle and ChildHandle in the form of a Unicode string. If the\r
78 driver specified by This has a user readable name in the language specified by\r
79 Language, then a pointer to the controller name is returned in ControllerName,\r
80 and EFI_SUCCESS is returned. If the driver specified by This is not currently\r
81 managing the controller specified by ControllerHandle and ChildHandle,\r
82 then EFI_UNSUPPORTED is returned. If the driver specified by This does not\r
83 support the language specified by Language, then EFI_UNSUPPORTED is returned.\r
84\r
85 @param This[in] A pointer to the EFI_COMPONENT_NAME2_PROTOCOL or\r
86 EFI_COMPONENT_NAME_PROTOCOL instance.\r
87\r
88 @param ControllerHandle[in] The handle of a controller that the driver\r
89 specified by This is managing. This handle\r
90 specifies the controller whose name is to be\r
91 returned.\r
92\r
93 @param ChildHandle[in] The handle of the child controller to retrieve\r
94 the name of. This is an optional parameter that\r
95 may be NULL. It will be NULL for device\r
96 drivers. It will also be NULL for a bus drivers\r
97 that wish to retrieve the name of the bus\r
98 controller. It will not be NULL for a bus\r
99 driver that wishes to retrieve the name of a\r
100 child controller.\r
101\r
102 @param Language[in] A pointer to a Null-terminated ASCII string\r
103 array indicating the language. This is the\r
104 language of the driver name that the caller is\r
105 requesting, and it must match one of the\r
106 languages specified in SupportedLanguages. The\r
107 number of languages supported by a driver is up\r
108 to the driver writer. Language is specified in\r
109 RFC 3066 or ISO 639-2 language code format.\r
110\r
111 @param ControllerName[out] A pointer to the Unicode string to return.\r
112 This Unicode string is the name of the\r
113 controller specified by ControllerHandle and\r
114 ChildHandle in the language specified by\r
115 Language from the point of view of the driver\r
116 specified by This.\r
117\r
118 @retval EFI_SUCCESS The Unicode string for the user readable name in\r
119 the language specified by Language for the\r
120 driver specified by This was returned in\r
121 DriverName.\r
122\r
123 @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
124\r
125 @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid\r
126 EFI_HANDLE.\r
127\r
128 @retval EFI_INVALID_PARAMETER Language is NULL.\r
129\r
130 @retval EFI_INVALID_PARAMETER ControllerName is NULL.\r
131\r
132 @retval EFI_UNSUPPORTED The driver specified by This is not currently\r
133 managing the controller specified by\r
134 ControllerHandle and ChildHandle.\r
135\r
136 @retval EFI_UNSUPPORTED The driver specified by This does not support\r
137 the language specified by Language.\r
ead42efc 138\r
733f03aa 139**/\r
ead42efc 140EFI_STATUS\r
141EFIAPI\r
142PciBusComponentNameGetControllerName (\r
143 IN EFI_COMPONENT_NAME_PROTOCOL *This,\r
144 IN EFI_HANDLE ControllerHandle,\r
145 IN EFI_HANDLE ChildHandle OPTIONAL,\r
146 IN CHAR8 *Language,\r
147 OUT CHAR16 **ControllerName\r
733f03aa 148 );\r
ead42efc 149\r
ead42efc 150\r
151#endif\r