diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-06-29 10:52:41 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-06-29 10:52:41 +0000 |
commit | 20a7c7ac3d9230ce2dc00d9c1391310e5a58a353 (patch) | |
tree | 2bf2533ac735fa57342a8d5bb9f3f0be529a73a6 | |
parent | 0cda890c55e557559455e589a0c81132442f9065 (diff) |
Add missing definition of "usb_interface_assoc_descriptor" needed to for
a tool parsing device descriptors.
Use the same name as DragonFly/FreeBSD since they export it to userland.
From Ludovic Coues.
-rw-r--r-- | sys/dev/usb/usb.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/dev/usb/usb.h b/sys/dev/usb/usb.h index a68c831776e..9a75c43ed57 100644 --- a/sys/dev/usb/usb.h +++ b/sys/dev/usb/usb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: usb.h,v 1.51 2015/06/22 10:29:18 mpi Exp $ */ +/* $OpenBSD: usb.h,v 1.52 2015/06/29 10:52:40 mpi Exp $ */ /* $NetBSD: usb.h,v 1.69 2002/09/22 23:20:50 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/usb.h,v 1.14 1999/11/17 22:33:46 n_hibma Exp $ */ @@ -221,6 +221,18 @@ typedef struct { } __packed usb_interface_descriptor_t; #define USB_INTERFACE_DESCRIPTOR_SIZE 9 +struct usb_interface_assoc_descriptor { + uByte bLength; + uByte bDescriptorType; + uByte bFirstInterface; + uByte bInterfaceCount; + uByte bFunctionClass; + uByte bFunctionSubClass; + uByte bFunctionProtocol; + uByte iFunction; +} __packed; +typedef struct usb_interface_assoc_descriptor usb_interface_assoc_descriptor_t; + typedef struct { uByte bLength; uByte bDescriptorType; |