iPXE
ComponentName.h
Go to the documentation of this file.
1/** @file
2 EFI Component Name Protocol as defined in the EFI 1.1 specification.
3 This protocol is used to retrieve user readable names of EFI Drivers
4 and controllers managed by EFI Drivers.
5
6Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
7SPDX-License-Identifier: BSD-2-Clause-Patent
8
9**/
10
11#ifndef __EFI_COMPONENT_NAME_H__
12#define __EFI_COMPONENT_NAME_H__
13
14FILE_LICENCE ( BSD2_PATENT );
15FILE_SECBOOT ( PERMITTED );
16
17///
18/// The global ID for the Component Name Protocol.
19///
20#define EFI_COMPONENT_NAME_PROTOCOL_GUID \
21 { \
22 0x107a772c, 0xd5e1, 0x11d4, {0x9a, 0x46, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d } \
23 }
24
26
27/**
28 Retrieves a Unicode string that is the user-readable name of the EFI Driver.
29
30 @param This A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.
31 @param Language A pointer to a three-character ISO 639-2 language identifier.
32 This is the language of the driver name that that the caller
33 is requesting, and it must match one of the languages specified
34 in SupportedLanguages. The number of languages supported by a
35 driver is up to the driver writer.
36 @param DriverName A pointer to the Unicode string to return. This Unicode string
37 is the name of the driver specified by This in the language
38 specified by Language.
39
40 @retval EFI_SUCCESS The Unicode string for the Driver specified by This
41 and the language specified by Language was returned
42 in DriverName.
43 @retval EFI_INVALID_PARAMETER Language is NULL.
44 @retval EFI_INVALID_PARAMETER DriverName is NULL.
45 @retval EFI_UNSUPPORTED The driver specified by This does not support the
46 language specified by Language.
47
48**/
49typedef
53 IN CHAR8 *Language,
54 OUT CHAR16 **DriverName
55 );
56
57/**
58 Retrieves a Unicode string that is the user readable name of the controller
59 that is being managed by an EFI Driver.
60
61 @param This A pointer to the EFI_COMPONENT_NAME_PROTOCOL instance.
62 @param ControllerHandle The handle of a controller that the driver specified by
63 This is managing. This handle specifies the controller
64 whose name is to be returned.
65 @param ChildHandle The handle of the child controller to retrieve the name
66 of. This is an optional parameter that may be NULL. It
67 will be NULL for device drivers. It will also be NULL
68 for a bus drivers that wish to retrieve the name of the
69 bus controller. It will not be NULL for a bus driver
70 that wishes to retrieve the name of a child controller.
71 @param Language A pointer to a three character ISO 639-2 language
72 identifier. This is the language of the controller name
73 that the caller is requesting, and it must match one
74 of the languages specified in SupportedLanguages. The
75 number of languages supported by a driver is up to the
76 driver writer.
77 @param ControllerName A pointer to the Unicode string to return. This Unicode
78 string is the name of the controller specified by
79 ControllerHandle and ChildHandle in the language specified
80 by Language, from the point of view of the driver specified
81 by This.
82
83 @retval EFI_SUCCESS The Unicode string for the user-readable name in the
84 language specified by Language for the driver
85 specified by This was returned in DriverName.
86 @retval EFI_INVALID_PARAMETER ControllerHandle is NULL.
87 @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.
88 @retval EFI_INVALID_PARAMETER Language is NULL.
89 @retval EFI_INVALID_PARAMETER ControllerName is NULL.
90 @retval EFI_UNSUPPORTED The driver specified by This is not currently managing
91 the controller specified by ControllerHandle and
92 ChildHandle.
93 @retval EFI_UNSUPPORTED The driver specified by This does not support the
94 language specified by Language.
95
96**/
97typedef
102 IN EFI_HANDLE ChildHandle OPTIONAL,
103 IN CHAR8 *Language,
104 OUT CHAR16 **ControllerName
105 );
106
107///
108/// This protocol is used to retrieve user readable names of drivers
109/// and controllers managed by UEFI Drivers.
110///
114 ///
115 /// A Null-terminated ASCII string that contains one or more
116 /// ISO 639-2 language codes. This is the list of language codes
117 /// that this protocol supports.
118 ///
120};
121
123
124#endif
char CHAR8
1-byte Character
unsigned short CHAR16
2-byte Character.
#define EFIAPI
#define OPTIONAL
Passing the datum to the function is optional, and a NULL is passed if the value is not supplied.
Definition Base.h:293
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)
Retrieves a Unicode string that is the user readable name of the controller that is being managed by ...
struct _EFI_COMPONENT_NAME_PROTOCOL EFI_COMPONENT_NAME_PROTOCOL
EFI_GUID gEfiComponentNameProtocolGuid
EFI_STATUS(EFIAPI * EFI_COMPONENT_NAME_GET_DRIVER_NAME)(IN EFI_COMPONENT_NAME_PROTOCOL *This, IN CHAR8 *Language, OUT CHAR16 **DriverName)
Retrieves a Unicode string that is the user-readable name of the EFI Driver.
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
GUID EFI_GUID
128-bit buffer containing a unique identifier value.
EFI_HANDLE ControllerHandle
Definition efi_bofm.c:110
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
#define EFI_HANDLE
Definition efi.h:53
#define IN
Definition mlx_utils.h:28
#define OUT
Definition mlx_utils.h:29
This protocol is used to retrieve user readable names of drivers and controllers managed by UEFI Driv...
CHAR8 * SupportedLanguages
A Null-terminated ASCII string that contains one or more ISO 639-2 language codes.
EFI_COMPONENT_NAME_GET_CONTROLLER_NAME GetControllerName
EFI_COMPONENT_NAME_GET_DRIVER_NAME GetDriverName