EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

IntelFrameworkModulePkg/Csm/BiosThunk/Snp16Dxe/ComponentName.c

Go to the documentation of this file.
00001 
00016 #include "BiosSnp16.h"
00017 
00057 EFI_STATUS
00058 EFIAPI
00059 BiosSnp16ComponentNameGetDriverName (
00060   IN  EFI_COMPONENT_NAME_PROTOCOL  *This,
00061   IN  CHAR8                        *Language,
00062   OUT CHAR16                       **DriverName
00063   );
00064 
00133 EFI_STATUS
00134 EFIAPI
00135 BiosSnp16ComponentNameGetControllerName (
00136   IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,
00137   IN  EFI_HANDLE                                      ControllerHandle,
00138   IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,
00139   IN  CHAR8                                           *Language,
00140   OUT CHAR16                                          **ControllerName
00141   );
00142 
00143 
00144 //
00145 // EFI Component Name Protocol
00146 //
00147 GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL  gBiosSnp16ComponentName = {
00148   BiosSnp16ComponentNameGetDriverName,
00149   BiosSnp16ComponentNameGetControllerName,
00150   "eng"
00151 };
00152 
00153 //
00154 // EFI Component Name 2 Protocol
00155 //
00156 GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gBiosSnp16ComponentName2 = {
00157   (EFI_COMPONENT_NAME2_GET_DRIVER_NAME) BiosSnp16ComponentNameGetDriverName,
00158   (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) BiosSnp16ComponentNameGetControllerName,
00159   "en"
00160 };
00161 
00162 
00163 GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mBiosSnp16DriverNameTable[] = {
00164   {
00165     "eng;en",
00166     L"BIOS[UNDI] Simple Network Protocol Driver"
00167   },
00168   {
00169     NULL,
00170     NULL
00171   }
00172 };
00173 
00213 EFI_STATUS
00214 EFIAPI
00215 BiosSnp16ComponentNameGetDriverName (
00216   IN  EFI_COMPONENT_NAME_PROTOCOL  *This,
00217   IN  CHAR8                        *Language,
00218   OUT CHAR16                       **DriverName
00219   )
00220 {
00221   return LookupUnicodeString2 (
00222            Language,
00223            This->SupportedLanguages,
00224            mBiosSnp16DriverNameTable,
00225            DriverName,
00226            (BOOLEAN)(This == &gBiosSnp16ComponentName)
00227            );
00228 }
00229 
00298 EFI_STATUS
00299 EFIAPI
00300 BiosSnp16ComponentNameGetControllerName (
00301   IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,
00302   IN  EFI_HANDLE                                      ControllerHandle,
00303   IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,
00304   IN  CHAR8                                           *Language,
00305   OUT CHAR16                                          **ControllerName
00306   )
00307 {
00308   return EFI_UNSUPPORTED;
00309 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines