diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2017-09-01 16:38:15 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2017-09-01 16:38:15 +0000 |
commit | ac8265d2920c4d46285a136d6791d20eae204c45 (patch) | |
tree | b78397055c5b73c185223b82a502c06d63bb0db7 /sys/dev/usb | |
parent | 30f9742d615f1ee7aa35f7fe3c4cfa5d29783ffa (diff) |
Add macros for reading the bmAttributes field of the USB super speed
endpoint companion descriptor.
ok mpi@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/usb.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/usb.h b/sys/dev/usb/usb.h index cc859d3b80d..8194db9d73b 100644 --- a/sys/dev/usb/usb.h +++ b/sys/dev/usb/usb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: usb.h,v 1.58 2017/03/29 00:18:51 jsg Exp $ */ +/* $OpenBSD: usb.h,v 1.59 2017/09/01 16:38:14 stsp 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 $ */ @@ -274,6 +274,9 @@ struct usb_endpoint_ss_comp_descriptor { uByte bDescriptorType; uByte bMaxBurst; uByte bmAttributes; +#define UCE_BULK_MAX_STREAMS(a) ((a) & 0xff) +#define UCE_ISOC_MULT(a) ((a) & 0x0c) +#define UCE_ISOC_SSP_ISO(a) ((a) & 0x80) uWord wBytesPerInterval; } __packed; typedef struct usb_endpoint_ss_comp_descriptor |