USB 3.1 devices that support precision time measurement have an additional PTM cabaility descriptor as part of the full BOS descriptor Look for this descriptor while parsing the BOS descriptor, and store it in struct usb_hub_bos if it exists.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -912,6 +912,16 @@ struct usb_ssp_cap_descriptor { · 911 unmodified lines | |||
| 912 | #define USB_SSP_SUBLINK_SPEED_LSM (0xff << 16) /* Lanespeed mantissa */ | 912 | #define USB_SSP_SUBLINK_SPEED_LSM (0xff << 16) /* Lanespeed mantissa */ |
| 913 | } __attribute__((packed)); | 913 | } __attribute__((packed)); |
| 914 | 914 | ||
| 915 | /* | ||
| 916 | * Precision time measurement capability descriptor: advertised by devices and | ||
| 917 | * hubs that support PTM | ||
| 918 | */ | ||
| 919 | #define USB_PTM_CAP_TYPE 0xb | ||
| 920 | struct usb_ptm_cap_descriptor { | ||
| 921 | __u8 bLength; | ||
| 922 | __u8 bDescriptorType; | ||
| 923 | __u8 bDevCapabilityType; | ||
| 924 | } __attribute__((packed)); | ||
| 915 | 925 | ||
| 916 | /*-------------------------------------------------------------------------*/ | 926 | /*-------------------------------------------------------------------------*/ |
| 917 | 927 | ||