Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Dec 2011 08:08:52 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228304 - head/sys/dev/usb/template
Message-ID:  <201112060808.pB688qNq079171@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Tue Dec  6 08:08:52 2011
New Revision: 228304
URL: http://svn.freebsd.org/changeset/base/228304

Log:
  Correct some bInterval USB template descriptor values.
  
  MFC after:	3 days

Modified:
  head/sys/dev/usb/template/usb_template.c
  head/sys/dev/usb/template/usb_template_kbd.c
  head/sys/dev/usb/template/usb_template_modem.c
  head/sys/dev/usb/template/usb_template_mouse.c

Modified: head/sys/dev/usb/template/usb_template.c
==============================================================================
--- head/sys/dev/usb/template/usb_template.c	Tue Dec  6 07:55:25 2011	(r228303)
+++ head/sys/dev/usb/template/usb_template.c	Tue Dec  6 08:08:52 2011	(r228304)
@@ -260,7 +260,7 @@ usb_make_endpoint_desc(struct usb_temp_s
 					ed->bInterval = 1;	/* 1 ms */
 					break;
 				default:
-					ed->bInterval = 8;	/* 8*125 us */
+					ed->bInterval = 4;	/* 1 ms */
 					break;
 				}
 				break;

Modified: head/sys/dev/usb/template/usb_template_kbd.c
==============================================================================
--- head/sys/dev/usb/template/usb_template_kbd.c	Tue Dec  6 07:55:25 2011	(r228303)
+++ head/sys/dev/usb/template/usb_template_kbd.c	Tue Dec  6 08:08:52 2011	(r228304)
@@ -89,9 +89,9 @@ static const struct usb_temp_packet_size
 };
 
 static const struct usb_temp_interval keyboard_intr_interval = {
-	.bInterval[USB_SPEED_LOW] = 2,	/* ms */
-	.bInterval[USB_SPEED_FULL] = 2,
-	.bInterval[USB_SPEED_HIGH] = 2 * 8,
+	.bInterval[USB_SPEED_LOW] = 2,	/* 2 ms */
+	.bInterval[USB_SPEED_FULL] = 2,	/* 2 ms */
+	.bInterval[USB_SPEED_HIGH] = 5,	/* 2 ms */
 };
 
 /* The following HID descriptor was dumped from a HP keyboard. */

Modified: head/sys/dev/usb/template/usb_template_modem.c
==============================================================================
--- head/sys/dev/usb/template/usb_template_modem.c	Tue Dec  6 07:55:25 2011	(r228303)
+++ head/sys/dev/usb/template/usb_template_modem.c	Tue Dec  6 08:08:52 2011	(r228304)
@@ -98,9 +98,9 @@ static const struct usb_temp_packet_size
 };
 
 static const struct usb_temp_interval modem_intr_interval = {
-	.bInterval[USB_SPEED_LOW] = 10,
-	.bInterval[USB_SPEED_FULL] = 10,
-	.bInterval[USB_SPEED_HIGH] = 10 * 8,
+	.bInterval[USB_SPEED_LOW] = 8,	/* 8ms */
+	.bInterval[USB_SPEED_FULL] = 8,	/* 8ms */
+	.bInterval[USB_SPEED_HIGH] = 7,	/* 8ms */
 };
 
 static const struct usb_temp_endpoint_desc modem_ep_0 = {

Modified: head/sys/dev/usb/template/usb_template_mouse.c
==============================================================================
--- head/sys/dev/usb/template/usb_template_mouse.c	Tue Dec  6 07:55:25 2011	(r228303)
+++ head/sys/dev/usb/template/usb_template_mouse.c	Tue Dec  6 08:08:52 2011	(r228304)
@@ -101,9 +101,9 @@ static const struct usb_temp_packet_size
 };
 
 static const struct usb_temp_interval mouse_intr_interval = {
-	.bInterval[USB_SPEED_LOW] = 2,
-	.bInterval[USB_SPEED_FULL] = 2,
-	.bInterval[USB_SPEED_HIGH] = 2 * 8,
+	.bInterval[USB_SPEED_LOW] = 2,		/* 2ms */
+	.bInterval[USB_SPEED_FULL] = 2,		/* 2ms */
+	.bInterval[USB_SPEED_HIGH] = 5,		/* 2ms */
 };
 
 static const struct usb_temp_endpoint_desc mouse_ep_0 = {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112060808.pB688qNq079171>