Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Update from t-hash with some changes from me.



details:   https://anonhg.NetBSD.org/src/rev/4aa1d9096229
branches:  trunk
changeset: 817955:4aa1d9096229
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Sep 17 06:29:50 2016 +0000

description:
Update from t-hash with some changes from me.

diffstat:

 sys/dev/usb/usb.h |  23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diffs (51 lines):

diff -r 39f54dc276fb -r 4aa1d9096229 sys/dev/usb/usb.h
--- a/sys/dev/usb/usb.h Sat Sep 17 06:06:15 2016 +0000
+++ b/sys/dev/usb/usb.h Sat Sep 17 06:29:50 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb.h,v 1.113 2016/04/23 10:15:32 skrll Exp $  */
+/*     $NetBSD: usb.h,v 1.114 2016/09/17 06:29:50 skrll Exp $  */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -306,9 +306,12 @@
        uByte           bDescriptorType;
        uByte           bMaxBurst;
        uByte           bmAttributes;
-#define UE_SSC_MAXSTREAMS(x)   __SHIFTOUT(x, __BITS(4,0))      /* bulk */
-#define UE_SSC_MULT(x)         __SHIFTOUT(x, __BITS(1,0))      /* isoch */
-#define UE_SSC_SSP_ISO(x)      __SHIFTOUT(x, __BIT(7))         /* isoch */
+#define UE_GET_BULK_STREAMS_MASK       __BITS(4,0)
+#define UE_GET_BULK_STREAMS(x)         __SHIFTOUT(x, UE_GET_BULK_STREAMS_MASK)
+#define UE_GET_SS_ISO_MULT_MASK                __BITS(1,0)
+#define UE_GET_SS_ISO_MULT(x)          __SHIFTOUT(x, UE_GET_SS_ISO_MULT_MASK)
+#define UE_GET_SS_ISO_SSP_MASK         __BIT(7)
+#define UE_GET_SS_ISO_SSP(x)           __SHIFTOUT(x, UE_GET_SS_ISO_SSP_MASK)
        /* The fields below are only valid for periodic endpoints */
        uWord           wBytesPerInterval;
 } UPACKED usb_endpoint_ss_comp_descriptor_t;
@@ -352,7 +355,14 @@
        uByte           bDescriptorType;
        uByte           bDevCapabilityType;
        uDWord          bmAttributes;
-#define USB_DEVCAP_USB2EXT_LPM __BIT(1)
+#define USB_DEVCAP_V2EXT_LPM                   __BIT(1)
+#define USB_DEVCAP_V2EXT_BESL_SUPPORTED                __BIT(2)
+#define USB_DEVCAP_V2EXT_BESL_BASELINE_VALID   __BIT(3)
+#define USB_DEVCAP_V2EXT_BESL_DEEP_VALID       __BIT(4)
+#define USB_DEVCAP_V2EXT_BESL_BASELINE_MASK    __BITS(11, 8)
+#define USB_DEVCAP_V2EXT_BESL_BASELINE_GET(x)  __SHIFTOUT(x, USB_V2EXT_BESL_BASELINE_MASK)
+#define USB_DEVCAP_V2EXT_BESL_DEEP_MASK                __BITS(15, 12)
+#define USB_DEVCAP_V2EXT_BESL_DEEP_GET(x)      __SHIFTOUT(x, USB_V2EXT_BESL_DEEP_MASK)
 } UPACKED usb_devcap_usb2ext_descriptor_t;
 #define USB_DEVCAP_USB2EXT_DESCRIPTOR_SIZE 7
 
@@ -432,7 +442,8 @@
 #define UR_RESET_TT            0x09
 #define UR_GET_TT_STATE                0x0a
 #define UR_STOP_TT             0x0b
-#define UR_SET_HUB_DEPTH       0x0c
+#define UR_SET_AND_TEST                0x0c    /* USB 2.0 only */
+#define UR_SET_HUB_DEPTH       0x0c    /* USB 3.0 only */
 #define UR_GET_PORT_ERR_COUNT  0x0d
 /* Port Status Type for GET_STATUS,  USB 3.1 10.16.2.6 and Table 10-12 */
 #define  UR_PST_PORT_STATUS    0



Home | Main Index | Thread Index | Old Index