Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new bcd code #366

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions driver/lib/usb_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 4 additions & 0 deletions driver/stub/stub_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 6 additions & 0 deletions driver/vhci_ude/vhci_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down