From aa8f4f55ff80d0c1b1efcdae6d45db76849fc265 Mon Sep 17 00:00:00 2001 From: vanjeff Date: Mon, 23 Feb 2009 02:51:45 +0000 Subject: 1. Retired HotPlugDevice protocol. 2. Check devicepath node to get hot plug information. Currently, USB and PCCard device are checked. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7562 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c | 13 ++----------- MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.h | 1 - MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf | 1 - 3 files changed, 2 insertions(+), 13 deletions(-) (limited to 'MdeModulePkg/Bus/Usb') diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c index 74f19c3278..07fec7c315 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c @@ -293,9 +293,8 @@ USBKeyboardDriverBindingStart ( // Install Simple Text Input Protocol and Simple Text Input Ex Protocol // for the USB keyboard device. // USB keyboard is a hot plug device, and expected to work immediately - // when plugging into system, so a HotPlugDeviceGuid is installed onto - // the usb keyboard device handle, to distinguish it from other conventional - // console devices. + // when plugging into system, other conventional console devices could + // distinguish it by its device path. // Status = gBS->InstallMultipleProtocolInterfaces ( &Controller, @@ -303,8 +302,6 @@ USBKeyboardDriverBindingStart ( &UsbKeyboardDevice->SimpleInput, &gEfiSimpleTextInputExProtocolGuid, &UsbKeyboardDevice->SimpleInputEx, - &gEfiHotPlugDeviceGuid, - NULL, NULL ); if (EFI_ERROR (Status)) { @@ -325,8 +322,6 @@ USBKeyboardDriverBindingStart ( &UsbKeyboardDevice->SimpleInput, &gEfiSimpleTextInputExProtocolGuid, &UsbKeyboardDevice->SimpleInputEx, - &gEfiHotPlugDeviceGuid, - NULL, NULL ); goto ErrorExit; @@ -356,8 +351,6 @@ USBKeyboardDriverBindingStart ( &UsbKeyboardDevice->SimpleInput, &gEfiSimpleTextInputExProtocolGuid, &UsbKeyboardDevice->SimpleInputEx, - &gEfiHotPlugDeviceGuid, - NULL, NULL ); goto ErrorExit; @@ -495,8 +488,6 @@ USBKeyboardDriverBindingStop ( &UsbKeyboardDevice->SimpleInput, &gEfiSimpleTextInputExProtocolGuid, &UsbKeyboardDevice->SimpleInputEx, - &gEfiHotPlugDeviceGuid, - NULL, NULL ); // diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.h b/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.h index 608d45a188..73191e6a27 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.h +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.h @@ -23,7 +23,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include #include -#include #include diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf b/MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf index a724e8955a..b2953fb9cf 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf @@ -79,7 +79,6 @@ gEfiDevicePathProtocolGuid ## TO_START gEfiSimpleTextInProtocolGuid ## BY_START gEfiSimpleTextInputExProtocolGuid ## BY_START - gEfiHotPlugDeviceGuid ## BY_START ## # If HII Database Protocol exists, then keyboard layout from HII database is used. # Otherwise, USB keyboard module tries to use its carried default layout. -- cgit v1.2.3