diff options
author | 2015-06-29 10:52:40 +0000 | |
---|---|---|
committer | 2015-06-29 10:52:40 +0000 | |
commit | e42343b0ecc8bc07aa92074dd638937d2a8fe048 (patch) | |
tree | ab8ff89e41406cc20c4ff08ee52a8bf0fe0dee1d | |
parent | count if_ibytes in if_input like we do for if_ipackets. (diff) | |
download | wireguard-openbsd-e42343b0ecc8bc07aa92074dd638937d2a8fe048.tar.xz wireguard-openbsd-e42343b0ecc8bc07aa92074dd638937d2a8fe048.zip |
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; |