mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
MdeMdeModulePkg/Usb: Eliminated the use of Set_Idle request on usb modules.
Signed-off-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Elvin Li <elvin.li@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13468 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1c8ade8999
commit
08d6e2ff72
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user