Browse Source

Plan 9 from Bell Labs 2009-11-16

David du Colombier 14 years ago
parent
commit
4f809d6c53
3 changed files with 6 additions and 6 deletions
  1. 1 1
      sys/src/9/kw/usb.h
  2. 1 1
      sys/src/9/pc/usb.h
  3. 4 4
      sys/src/cmd/usb/lib/dev.c

+ 1 - 1
sys/src/9/kw/usb.h

@@ -14,7 +14,7 @@ enum
 	/* tunable parameters */
 	Nhcis	= 16,		/* max nb. of HCIs */
 	Neps	= 64,		/* max nb. of endpoints */
-	Maxctllen = 16*1024,	/* max allowed sized for ctl. xfers */
+	Maxctllen = 32*1024, /* max allowed sized for ctl. xfers; see Maxdevconf */
 	Xfertmout = 2000,	/* default request time out (ms) */
 
 	/* transfer types. keep this order */

+ 1 - 1
sys/src/9/pc/usb.h

@@ -14,7 +14,7 @@ enum
 	/* tunable parameters */
 	Nhcis	= 16,		/* max nb. of HCIs */
 	Neps	= 64,		/* max nb. of endpoints */
-	Maxctllen = 32*1024,	/* max allowed sized for ctl. xfers */
+	Maxctllen = 32*1024, /* max allowed sized for ctl. xfers; see Maxdevconf */
 	Xfertmout = 2000,	/* default request time out (ms) */
 
 	/* transfer types. keep this order */

+ 4 - 4
sys/src/cmd/usb/lib/dev.c

@@ -137,11 +137,11 @@ opendevdata(Dev *d, int mode)
 
 enum
 {
-	/* Max device conf is also limited by max control request size
-	 * as limited by the kernel usb.h.
-	 * (both limits are arbitrary).
+	/*
+	 * Max device conf is also limited by max control request size as
+	 * limited by Maxctllen in the kernel usb.h (both limits are arbitrary).
 	 */
-	Maxdevconf = 16 * 1024
+	Maxdevconf = 32 * 1024,
 };
 
 int