RDFU  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Component.c
Go to the documentation of this file.
1 #include <Library/UefiLib.h>
2 #include "EfiScanner.h"
3 
4 
10 GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gEfiScannerComponentName2 = {
11  (EFI_COMPONENT_NAME2_GET_DRIVER_NAME) EfiScannerComponentNameGetDriverName,
12  (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) EfiScannerComponentNameGetControllerName,
13  "en"
14 };
15 
16 GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL gEfiScannerComponentName = {
19  "eng"
20 };
21 
22 
23 
24 
25 GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mEfiScannerDriverNameTable[] = {
26  { "eng;en", L"RDFU SCANNER DRIVER" },
27  { NULL , NULL }
28 };
29 
30 
31 
32 // name of the driver
34  IN EFI_COMPONENT_NAME_PROTOCOL *This,
35  IN CHAR8 *Language,
36  OUT CHAR16 **DriverName)
37 {
38  return LookupUnicodeString2(
39  Language,
40  This->SupportedLanguages,
42  DriverName,
43  (BOOLEAN)(This == &gEfiScannerComponentName));
44 }
45 
46 
47 // name of the controller
49  IN EFI_COMPONENT_NAME_PROTOCOL *This,
50  IN EFI_HANDLE ControllerHandle,
51  IN EFI_HANDLE ChildHandle,
52  IN CHAR8 *Language,
53  OUT CHAR16 **ControllerName)
54 {
55  return EFI_UNSUPPORTED;
56 }