summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-30 02:42:47 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-30 02:42:47 +0000
commitf527bce3d07ff80c7fff9684b2c7cdc02805c32e (patch)
treee7c4209a71f0ea4edf1797deca47c6c8ede486d1 /MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c
parent866e8172e776d5a31077ef9c4479542b0c044b2f (diff)
downloadedk2-platforms-f527bce3d07ff80c7fff9684b2c7cdc02805c32e.tar.xz
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@4000 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c')
-rw-r--r--MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c
index 0eaa9cce5d..13ce7fdfb1 100644
--- a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c
+++ b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c
@@ -1295,14 +1295,13 @@ Returns:
--*/
{
- return EfiLibInstallAllDriverProtocols (
+ return EfiLibInstallDriverBindingComponentName2 (
ImageHandle,
SystemTable,
&gEhciDriverBinding,
ImageHandle,
&gEhciComponentName,
- NULL,
- NULL
+ &gEhciComponentName2
);
}
@@ -1565,13 +1564,22 @@ EhcDriverBindingStart (
// Install the component name protocol, don't fail the start
// because of something for display.
//
- AddUnicodeString (
+ AddUnicodeString2 (
"eng",
gEhciComponentName.SupportedLanguages,
&Ehc->ControllerNameTable,
- L"Enhanced Host Controller (USB 2.0)"
+ L"Enhanced Host Controller (USB 2.0)",
+ TRUE
+ );
+ AddUnicodeString2 (
+ "en",
+ gEhciComponentName2.SupportedLanguages,
+ &Ehc->ControllerNameTable,
+ L"Enhanced Host Controller (USB 2.0)",
+ FALSE
);
+
EHC_DEBUG (("EhcDriverBindingStart: EHCI started for controller @ %x\n", Controller));
return EFI_SUCCESS;