jonasblixt / punchboot

Punchboot
Other
87 stars 9 forks source link

drivers/usb/usbd: Add Microsoft OS Descriptors #32

Closed jonasblixt closed 8 months ago

jonasblixt commented 8 months ago

When a new USB device enumerates on Windows the system will ask for string descriptor 0xEE, Which is Windows specific, if the string descriptor contains 'MSFT100' it will issue a vendor specific request for a 'Microsoft Compatible ID Feature Descriptor'.

With these two in place Windows will automatically bind the device to WinUSB and in turn we can use libusb directly.

Historically this was handled by the windows binary installer that bundeled libwdi.

It's explained in greater detail here: https://github.com/pbatard/libwdi/wiki/WCID-Devices

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (519b308) 66.16% compared to head (506d3bf) 66.16%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #32 +/- ## ======================================= Coverage 66.16% 66.16% ======================================= Files 54 54 Lines 2787 2787 ======================================= Hits 1844 1844 Misses 943 943 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.