RDFU  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Component.c File Reference
#include <Library/UefiLib.h>
#include "EfiScanner.h"
Include dependency graph for Component.c:

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI EfiScannerComponentNameGetDriverName (IN EFI_COMPONENT_NAME_PROTOCOL *This, IN CHAR8 *Language, OUT CHAR16 **DriverName)
 
EFI_STATUS EFIAPI EfiScannerComponentNameGetControllerName (IN EFI_COMPONENT_NAME_PROTOCOL *This, IN EFI_HANDLE ControllerHandle, IN EFI_HANDLE ChildHandle, IN CHAR8 *Language, OUT CHAR16 **ControllerName)
 

Variables

GLOBAL_REMOVE_IF_UNREFERENCED
EFI_COMPONENT_NAME2_PROTOCOL 
gEfiScannerComponentName2
 
GLOBAL_REMOVE_IF_UNREFERENCED
EFI_COMPONENT_NAME_PROTOCOL 
gEfiScannerComponentName
 
GLOBAL_REMOVE_IF_UNREFERENCED
EFI_UNICODE_STRING_TABLE 
mEfiScannerDriverNameTable []
 

Function Documentation

EFI_STATUS EFIAPI EfiScannerComponentNameGetControllerName ( IN EFI_COMPONENT_NAME_PROTOCOL *  This,
IN EFI_HANDLE  ControllerHandle,
IN EFI_HANDLE ChildHandle  ,
IN CHAR8 *  Language,
OUT CHAR16 **  ControllerName 
)

Definition at line 48 of file Component.c.

54 {
55  return EFI_UNSUPPORTED;
56 }
EFI_STATUS EFIAPI EfiScannerComponentNameGetDriverName ( IN EFI_COMPONENT_NAME_PROTOCOL *  This,
IN CHAR8 *  Language,
OUT CHAR16 **  DriverName 
)

Definition at line 33 of file Component.c.

References gEfiScannerComponentName, and mEfiScannerDriverNameTable.

37 {
38  return LookupUnicodeString2(
39  Language,
40  This->SupportedLanguages,
42  DriverName,
43  (BOOLEAN)(This == &gEfiScannerComponentName));
44 }

Variable Documentation

GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL gEfiScannerComponentName
GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gEfiScannerComponentName2
Initial value:
= {
(EFI_COMPONENT_NAME2_GET_DRIVER_NAME) EfiScannerComponentNameGetDriverName,
(EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) EfiScannerComponentNameGetControllerName,
"en"
}

just a couple of definitions for the EFI_COMPONENT_NAME2 and EFI_COMPONENT_NAME protocols.

Definition at line 10 of file Component.c.

Referenced by EfiScannerDriverUnload(), and EfiScannerEntryPoint().

GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mEfiScannerDriverNameTable[]
Initial value:
= {
{ "eng;en", L"RDFU SCANNER DRIVER" },
{ NULL , NULL }
}

Definition at line 25 of file Component.c.

Referenced by EfiScannerComponentNameGetDriverName().