OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
ComponentName.c
Go to the documentation of this file.
1
9#include "Partition.h"
10
11//
12// EFI Component Name Protocol
13//
14GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL gPartitionComponentName = {
17 "eng"
18};
19
20//
21// EFI Component Name 2 Protocol
22//
23GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gPartitionComponentName2 = {
24 (EFI_COMPONENT_NAME2_GET_DRIVER_NAME)PartitionComponentNameGetDriverName,
25 (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME)PartitionComponentNameGetControllerName,
26 "en"
27};
28
29//
30// Driver name table for Partition module.
31// It is shared by the implementation of ComponentName & ComponentName2 Protocol.
32//
33GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mPartitionDriverNameTable[] = {
34 {
35 "eng;en",
36 L"Partition Driver(MBR/GPT/El Torito)"
37 },
38 {
39 NULL,
40 NULL
41 }
42};
43
83EFI_STATUS
84EFIAPI
86 IN EFI_COMPONENT_NAME_PROTOCOL *This,
87 IN CHAR8 *Language,
88 OUT CHAR16 **DriverName
89 )
90{
91 return LookupUnicodeString2 (
92 Language,
93 This->SupportedLanguages,
95 DriverName,
96 (BOOLEAN)(This == &gPartitionComponentName)
97 );
98}
99
168EFI_STATUS
169EFIAPI
171 IN EFI_COMPONENT_NAME_PROTOCOL *This,
172 IN EFI_HANDLE ControllerHandle,
173 IN EFI_HANDLE ChildHandle OPTIONAL,
174 IN CHAR8 *Language,
175 OUT CHAR16 **ControllerName
176 )
177{
178 return EFI_UNSUPPORTED;
179}
GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL gPartitionComponentName
EFI_STATUS EFIAPI PartitionComponentNameGetDriverName(IN EFI_COMPONENT_NAME_PROTOCOL *This, IN CHAR8 *Language, OUT CHAR16 **DriverName)
GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gPartitionComponentName2
GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mPartitionDriverNameTable[]
EFI_STATUS EFIAPI PartitionComponentNameGetControllerName(IN EFI_COMPONENT_NAME_PROTOCOL *This, IN EFI_HANDLE ControllerHandle, IN EFI_HANDLE ChildHandle OPTIONAL, IN CHAR8 *Language, OUT CHAR16 **ControllerName)