Update to support to produce Component Name and & Component Name 2 protocol based on Feature flag PcdComponentNameDisable & PcdComponentName2Disable.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4005 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -498,39 +498,75 @@ TerminalDriverBindingStart (
|
||||
TerminalDevice->ControllerNameTable = NULL;
|
||||
switch (TerminalDevice->TerminalType) {
|
||||
case PcAnsiType:
|
||||
AddUnicodeString (
|
||||
AddUnicodeString2 (
|
||||
"eng",
|
||||
gTerminalComponentName.SupportedLanguages,
|
||||
&TerminalDevice->ControllerNameTable,
|
||||
(CHAR16 *)L"PC-ANSI Serial Console"
|
||||
(CHAR16 *)L"PC-ANSI Serial Console",
|
||||
TRUE
|
||||
);
|
||||
AddUnicodeString2 (
|
||||
"en",
|
||||
gTerminalComponentName2.SupportedLanguages,
|
||||
&TerminalDevice->ControllerNameTable,
|
||||
(CHAR16 *)L"PC-ANSI Serial Console",
|
||||
FALSE
|
||||
);
|
||||
|
||||
break;
|
||||
|
||||
case VT100Type:
|
||||
AddUnicodeString (
|
||||
AddUnicodeString2 (
|
||||
"eng",
|
||||
gTerminalComponentName.SupportedLanguages,
|
||||
&TerminalDevice->ControllerNameTable,
|
||||
(CHAR16 *)L"VT-100 Serial Console"
|
||||
(CHAR16 *)L"VT-100 Serial Console",
|
||||
TRUE
|
||||
);
|
||||
AddUnicodeString2 (
|
||||
"en",
|
||||
gTerminalComponentName2.SupportedLanguages,
|
||||
&TerminalDevice->ControllerNameTable,
|
||||
(CHAR16 *)L"VT-100 Serial Console",
|
||||
FALSE
|
||||
);
|
||||
|
||||
break;
|
||||
|
||||
case VT100PlusType:
|
||||
AddUnicodeString (
|
||||
AddUnicodeString2 (
|
||||
"eng",
|
||||
gTerminalComponentName.SupportedLanguages,
|
||||
&TerminalDevice->ControllerNameTable,
|
||||
(CHAR16 *)L"VT-100+ Serial Console"
|
||||
(CHAR16 *)L"VT-100+ Serial Console",
|
||||
TRUE
|
||||
);
|
||||
AddUnicodeString2 (
|
||||
"en",
|
||||
gTerminalComponentName2.SupportedLanguages,
|
||||
&TerminalDevice->ControllerNameTable,
|
||||
(CHAR16 *)L"VT-100+ Serial Console",
|
||||
FALSE
|
||||
);
|
||||
|
||||
break;
|
||||
|
||||
case VTUTF8Type:
|
||||
AddUnicodeString (
|
||||
AddUnicodeString2 (
|
||||
"eng",
|
||||
gTerminalComponentName.SupportedLanguages,
|
||||
&TerminalDevice->ControllerNameTable,
|
||||
(CHAR16 *)L"VT-UTF8 Serial Console"
|
||||
(CHAR16 *)L"VT-UTF8 Serial Console",
|
||||
TRUE
|
||||
);
|
||||
AddUnicodeString2 (
|
||||
"en",
|
||||
gTerminalComponentName2.SupportedLanguages,
|
||||
&TerminalDevice->ControllerNameTable,
|
||||
(CHAR16 *)L"VT-UTF8 Serial Console",
|
||||
FALSE
|
||||
);
|
||||
|
||||
break;
|
||||
}
|
||||
//
|
||||
@@ -1221,14 +1257,13 @@ InitializeTerminal(
|
||||
//
|
||||
// Install driver model protocol(s).
|
||||
//
|
||||
Status = EfiLibInstallAllDriverProtocols (
|
||||
Status = EfiLibInstallDriverBindingComponentName2 (
|
||||
ImageHandle,
|
||||
SystemTable,
|
||||
&gTerminalDriverBinding,
|
||||
ImageHandle,
|
||||
&gTerminalComponentName,
|
||||
NULL,
|
||||
NULL
|
||||
&gTerminalComponentName2
|
||||
);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
|
Reference in New Issue
Block a user