Skip to content

Commit 6925692

Browse files
henrikbrixandersenaescolar
authored andcommitted
usb: msosv2: add additional MSOSv2 descriptors
Add additional Microsoft OS 2.0 USB descriptor structures. These are documented in the Microsoft OS 2.0 Descriptors Specification. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 9014bb6 commit 6925692

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

include/zephyr/usb/msos_desc.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,33 @@ struct msosv2_guids_property {
9999
'a', 0x00, 'c', 0x00, 'e', 0x00, 'G', 0x00, 'U', 0x00, 'I', 0x00, \
100100
'D', 0x00, 's', 0x00, 0x00, 0x00
101101

102+
/* Microsoft OS 2.0 minimum USB resume time descriptor */
103+
struct msosv2_resume_time {
104+
uint16_t wLength;
105+
uint16_t wDescriptorType;
106+
uint8_t bResumeRecoveryTime;
107+
uint8_t bResumeSignalingTime;
108+
} __packed;
109+
110+
/* Microsoft OS 2.0 model ID descriptor */
111+
struct msosv2_model_id {
112+
uint16_t wLength;
113+
uint16_t wDescriptorType;
114+
uint8_t ModelID[16];
115+
} __packed;
116+
117+
/* Microsoft OS 2.0 CCGP device descriptor */
118+
struct msosv2_ccgp_device {
119+
uint16_t wLength;
120+
uint16_t wDescriptorType;
121+
} __packed;
122+
123+
/* Microsoft OS 2.0 vendor revision descriptor */
124+
struct msosv2_vendor_revision {
125+
uint16_t wLength;
126+
uint16_t wDescriptorType;
127+
uint16_t VendorRevision;
128+
} __packed;
129+
130+
102131
#endif /* ZEPHYR_INCLUDE_USB_MSOS_DESC_H */

0 commit comments

Comments
 (0)