From b2511836c77e9e8b2b99c95184f74c3690102652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=9C=88=E7=A7=8B=E8=A7=81=E5=BF=83?= <10618381+NullYing@users.noreply.github.com> Date: Fri, 19 Apr 2024 14:34:36 +0800 Subject: [PATCH 1/3] add new usb speed --- driver/lib/usb_util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/driver/lib/usb_util.c b/driver/lib/usb_util.c index 0e831ce9..fe24d4e9 100644 --- a/driver/lib/usb_util.c +++ b/driver/lib/usb_util.c @@ -12,10 +12,14 @@ get_usb_speed(USHORT bcdUSB) return USB_SPEED_FULL; case 0x0200: return USB_SPEED_HIGH; + case 0x0210: + return USB_SPEED_HIGH; case 0x0300: return USB_SPEED_SUPER; case 0x0310: return USB_SPEED_SUPER_PLUS; + case 0x0320: + return USB_SPEED_SUPER_PLUS; default: return USB_SPEED_LOW; } From a66f88fb7ebac4489ad97a88dfea270f0e937cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=9C=88=E7=A7=8B=E8=A7=81=E5=BF=83?= <10618381+NullYing@users.noreply.github.com> Date: Fri, 19 Apr 2024 14:37:13 +0800 Subject: [PATCH 2/3] Update device speed --- driver/vhci_ude/vhci_plugin.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/driver/vhci_ude/vhci_plugin.c b/driver/vhci_ude/vhci_plugin.c index 384ec941..056a4cb2 100644 --- a/driver/vhci_ude/vhci_plugin.c +++ b/driver/vhci_ude/vhci_plugin.c @@ -260,8 +260,14 @@ get_device_speed(pvhci_pluginfo_t pluginfo) return UdecxUsbFullSpeed; case 0x0200: return UdecxUsbHighSpeed; + case 0x0210: + return UdecxUsbHighSpeed; case 0x0300: return UdecxUsbSuperSpeed; + case 0x0310: + return UdecxUsbSuperSpeed; + case 0x0320: + return UdecxUsbSuperSpeed; default: TRE(PLUGIN, "unknown bcdUSB:%x", (ULONG)bcdUSB); return UdecxUsbLowSpeed; From 3e3c269d1cee1473daa0de185790d9fbdad491f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=9C=88=E7=A7=8B=E8=A7=81=E5=BF=83?= <10618381+NullYing@users.noreply.github.com> Date: Fri, 19 Apr 2024 14:39:51 +0800 Subject: [PATCH 3/3] stub add bcd --- driver/stub/stub_ioctl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/driver/stub/stub_ioctl.c b/driver/stub/stub_ioctl.c index 64da80df..f930b7eb 100644 --- a/driver/stub/stub_ioctl.c +++ b/driver/stub/stub_ioctl.c @@ -36,12 +36,16 @@ get_speed_from_bcdUSB(USHORT bcdUSB) return USB_SPEED_FULL; case 0x0200: return USB_SPEED_HIGH; + case 0x0210: + return USB_SPEED_HIGH; case 0x0250: return USB_SPEED_WIRELESS; case 0x0300: return USB_SPEED_SUPER; case 0x0310: return USB_SPEED_SUPER_PLUS; + case 0x0320: + return USB_SPEED_SUPER_PLUS; default: return USB_SPEED_UNKNOWN; }