@@ -841,6 +841,24 @@ def libusb_le16_to_cpu(x):
841841LIBUSB_DT_ENDPOINT_SIZE = 7
842842LIBUSB_DT_ENDPOINT_AUDIO_SIZE = 9 # Audio extension
843843LIBUSB_DT_HUB_NONVAR_SIZE = 7
844+ LIBUSB_DT_SS_ENDPOINT_COMPANION_SIZE = 6
845+ LIBUSB_DT_BOS_SIZE = 5
846+ LIBUSB_DT_DEVICE_CAPABILITY_SIZE = 3
847+ LIBUSB_DT_INTERFACE_ASSOCIATION_SIZE = 8
848+
849+ # BOS descriptor sizes
850+ LIBUSB_BT_USB_2_0_EXTENSION_SIZE = 7
851+ LIBUSB_BT_SS_USB_DEVICE_CAPABILITY_SIZE = 10
852+ LIBUSB_BT_SSPLUS_USB_DEVICE_CAPABILITY_SIZE = 12
853+ LIBUSB_BT_CONTAINER_ID_SIZE = 20
854+ LIBUSB_BT_PLATFORM_DESCRIPTOR_MIN_SIZE = 20
855+
856+ LIBUSB_DT_BOS_MAX_SIZE = (
857+ LIBUSB_DT_BOS_SIZE +
858+ LIBUSB_BT_USB_2_0_EXTENSION_SIZE +
859+ LIBUSB_BT_SS_USB_DEVICE_CAPABILITY_SIZE +
860+ LIBUSB_BT_CONTAINER_ID_SIZE
861+ )
844862
845863LIBUSB_ENDPOINT_ADDRESS_MASK = 0x0f # in bEndpointAddress
846864LIBUSB_ENDPOINT_DIR_MASK = 0x80
@@ -1151,8 +1169,10 @@ class libusb_init_option(Structure):
11511169 'LIBUSB_SPEED_HIGH' : 3 ,
11521170 # The device is operating at super speed (5000MBit/s).
11531171 'LIBUSB_SPEED_SUPER' : 4 ,
1154- # The device is operating at super speed plus (10000MBit/s)
1172+ # The device is operating at super speed plus (10000MBit/s).
11551173 'LIBUSB_SPEED_SUPER_PLUS' : 5 ,
1174+ # The device is operating at super speed plus x2 (20000MBit/s).
1175+ 'LIBUSB_SPEED_SUPER_PLUS_X2' : 6 ,
11561176})
11571177
11581178libusb_supported_speed = Enum ({
0 commit comments