This patch adds definitions, bit fields, and structs to USB header files that are needed to compile the latest version of usbview from Microsoft on Github. (My previous patches were targeted at an older version of usbview.)
Could someone apply this patch? Thanks! --David
diff --git a/mingw-w64-headers/include/usbioctl.h b/mingw-w64-headers/include/usbioctl.h index 8bbbc2c..57498b5 100644 --- a/mingw-w64-headers/include/usbioctl.h +++ b/mingw-w64-headers/include/usbioctl.h @@ -574,7 +574,9 @@ typedef union _USB_NODE_CONNECTION_INFORMATION_EX_V2_FLAGS { __C89_NAMELESS struct { ULONG DeviceIsOperatingAtSuperSpeedOrHigher :1; ULONG DeviceIsSuperSpeedCapableOrHigher :1; - ULONG ReservedMBZ :30; + ULONG DeviceIsOperatingAtSuperSpeedPlusOrHigher :1; + ULONG DeviceIsSuperSpeedPlusCapableOrHigher :1; + ULONG ReservedMBZ :28; }; } USB_NODE_CONNECTION_INFORMATION_EX_V2_FLAGS,*PUSB_NODE_CONNECTION_INFORMATION_EX_V2_FLAGS; diff --git a/mingw-w64-headers/include/usbspec.h b/mingw-w64-headers/include/usbspec.h index 7ace8a3..86557d8 100644 --- a/mingw-w64-headers/include/usbspec.h +++ b/mingw-w64-headers/include/usbspec.h @@ -213,6 +213,7 @@ typedef struct _USB_BOS_DESCRIPTOR { #define USB_DEVICE_CAPABILITY_USB20_EXTENSION 0x02 #define USB_DEVICE_CAPABILITY_SUPERSPEED_USB 0x03 #define USB_DEVICE_CAPABILITY_CONTAINER_ID 0x04 +#define USB_DEVICE_CAPABILITY_BILLBOARD 0x0D typedef struct _USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR { UCHAR bLength; @@ -399,7 +400,8 @@ typedef struct _USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR { } Bulk; struct { UCHAR Mult:2; - UCHAR Reserved2:6; + UCHAR Reserved2:5; + UCHAR SspCompanion:1; } Isochronous; } bmAttributes; USHORT wBytesPerInterval; @@ -633,6 +635,37 @@ typedef struct _USB_INTERFACE_POWER_DESCRIPTOR { USHORT TransitionTimeFromD3; } USB_INTERFACE_POWER_DESCRIPTOR,*PUSB_INTERFACE_POWER_DESCRIPTOR; +typedef struct _USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + UCHAR bDevCapabilityType; + UCHAR iAddtionalInfoURL; + UCHAR bNumberOfAlternateModes; + UCHAR bPreferredAlternateMode; + union { + USHORT AsUshort; + struct { + USHORT VConnPowerNeededForFullFunctionality:3; + USHORT Reserved:12; + USHORT NoVconnPowerRequired:1; + }; + } VconnPower; + UCHAR bmConfigured[32]; + ULONG bReserved; + struct { + USHORT wSVID; + UCHAR bAlternateMode; + UCHAR iAlternateModeSetting; + } AlternateMode[1]; +} USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR,*PUSB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR; + +typedef struct _USB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR { + UCHAR bLength; + UCHAR bDescriptorType; + USHORT wReserved; + ULONG dwBytesPerInterval; +} USB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR,*PUSB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR; + #include <poppack.h> #endif
------------------------------------------------------------------------------
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public