From 08d6e2ff72edf2c4979e0002d29f51cb24d27e0c Mon Sep 17 00:00:00 2001 From: erictian Date: Mon, 25 Jun 2012 02:37:38 +0000 Subject: [PATCH] MdeMdeModulePkg/Usb: Eliminated the use of Set_Idle request on usb modules. Signed-off-by: Feng Tian Reviewed-by: Elvin Li git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13468 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c | 19 ------------------- .../UsbMouseAbsolutePointer.c | 19 ------------------- MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c | 19 ------------------- 3 files changed, 57 deletions(-) diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c index ee774ff35f..beff3431cc 100644 --- a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c +++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c @@ -808,8 +808,6 @@ InitUSBKeyboard ( { UINT16 ConfigValue; UINT8 Protocol; - UINT8 ReportId; - UINT8 Duration; EFI_STATUS Status; UINT32 TransferResult; @@ -874,23 +872,6 @@ InitUSBKeyboard ( ); } - // - // ReportId is zero, which means the idle rate applies to all input reports. - // - ReportId = 0; - // - // Duration is zero, which means the duration is infinite. - // so the endpoint will inhibit reporting forever, - // and only reporting when a change is detected in the report data. - // - Duration = 0; - UsbSetIdleRequest ( - UsbKeyboardDevice->UsbIo, - UsbKeyboardDevice->InterfaceDescriptor.InterfaceNumber, - ReportId, - Duration - ); - UsbKeyboardDevice->CtrlOn = FALSE; UsbKeyboardDevice->AltOn = FALSE; UsbKeyboardDevice->ShiftOn = FALSE; diff --git a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c index c5aae8b52a..9fc971c4fc 100644 --- a/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c +++ b/MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointer.c @@ -526,8 +526,6 @@ InitializeUsbMouseDevice ( EFI_STATUS Status; EFI_USB_HID_DESCRIPTOR *MouseHidDesc; UINT8 *ReportDesc; - UINT8 ReportId; - UINT8 Duration; EFI_USB_CONFIG_DESCRIPTOR ConfigDesc; VOID *Buf; UINT32 TransferResult; @@ -673,23 +671,6 @@ InitializeUsbMouseDevice ( } } - // - // ReportId is zero, which means the idle rate applies to all input reports. - // - ReportId = 0; - // - // Duration is zero, which means the duration is infinite. - // so the endpoint will inhibit reporting forever, - // and only reporting when a change is detected in the report data. - // - Duration = 0; - UsbSetIdleRequest ( - UsbIo, - UsbMouseAbsolutePointerDev->InterfaceDescriptor.InterfaceNumber, - ReportId, - Duration - ); - FreePool (Buf); FreePool (ReportDesc); diff --git a/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c b/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c index 205e92b2cb..db5fe8ebfb 100644 --- a/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c +++ b/MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouse.c @@ -526,8 +526,6 @@ InitializeUsbMouseDevice ( EFI_STATUS Status; EFI_USB_HID_DESCRIPTOR *MouseHidDesc; UINT8 *ReportDesc; - UINT8 ReportId; - UINT8 Duration; EFI_USB_CONFIG_DESCRIPTOR ConfigDesc; VOID *Buf; UINT32 TransferResult; @@ -679,23 +677,6 @@ InitializeUsbMouseDevice ( } } - // - // ReportId is zero, which means the idle rate applies to all input reports. - // - ReportId = 0; - // - // Duration is zero, which means the duration is infinite. - // so the endpoint will inhibit reporting forever, - // and only reporting when a change is detected in the report data. - // - Duration = 0; - UsbSetIdleRequest ( - UsbIo, - UsbMouseDev->InterfaceDescriptor.InterfaceNumber, - ReportId, - Duration - ); - FreePool (Buf); FreePool (ReportDesc);