summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2011-12-06 08:08:52 +0000
committerhselasky <hselasky@FreeBSD.org>2011-12-06 08:08:52 +0000
commite67c905b19068e6088d547fdfa0695b7a5b23e9b (patch)
treed1177b565364533233259deec444a36fe5bed3ef /sys/dev
parent9d3d8bfa7c7e23a4f50bb7252905484069903ee7 (diff)
downloadFreeBSD-src-e67c905b19068e6088d547fdfa0695b7a5b23e9b.zip
FreeBSD-src-e67c905b19068e6088d547fdfa0695b7a5b23e9b.tar.gz
Correct some bInterval USB template descriptor values.
MFC after: 3 days
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/template/usb_template.c2
-rw-r--r--sys/dev/usb/template/usb_template_kbd.c6
-rw-r--r--sys/dev/usb/template/usb_template_modem.c6
-rw-r--r--sys/dev/usb/template/usb_template_mouse.c6
4 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/usb/template/usb_template.c b/sys/dev/usb/template/usb_template.c
index 209016a..b929665 100644
--- a/sys/dev/usb/template/usb_template.c
+++ b/sys/dev/usb/template/usb_template.c
@@ -260,7 +260,7 @@ usb_make_endpoint_desc(struct usb_temp_setup *temp,
ed->bInterval = 1; /* 1 ms */
break;
default:
- ed->bInterval = 8; /* 8*125 us */
+ ed->bInterval = 4; /* 1 ms */
break;
}
break;
diff --git a/sys/dev/usb/template/usb_template_kbd.c b/sys/dev/usb/template/usb_template_kbd.c
index 8928c06..6295825 100644
--- a/sys/dev/usb/template/usb_template_kbd.c
+++ b/sys/dev/usb/template/usb_template_kbd.c
@@ -89,9 +89,9 @@ static const struct usb_temp_packet_size keyboard_intr_mps = {
};
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. */
diff --git a/sys/dev/usb/template/usb_template_modem.c b/sys/dev/usb/template/usb_template_modem.c
index 6e0f940..abc6f26 100644
--- a/sys/dev/usb/template/usb_template_modem.c
+++ b/sys/dev/usb/template/usb_template_modem.c
@@ -98,9 +98,9 @@ static const struct usb_temp_packet_size modem_intr_mps = {
};
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 = {
diff --git a/sys/dev/usb/template/usb_template_mouse.c b/sys/dev/usb/template/usb_template_mouse.c
index 3ff0fb0..628c9a5 100644
--- a/sys/dev/usb/template/usb_template_mouse.c
+++ b/sys/dev/usb/template/usb_template_mouse.c
@@ -101,9 +101,9 @@ static const struct usb_temp_packet_size mouse_intr_mps = {
};
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 = {
OpenPOWER on IntegriCloud