Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Use a 255 ms interrupt interval even if the desc...
details: https://anonhg.NetBSD.org/src/rev/cc07e7c0e439
branches: trunk
changeset: 485197:cc07e7c0e439
user: augustss <augustss%NetBSD.org@localhost>
date: Fri Apr 21 19:51:43 2000 +0000
description:
Use a 255 ms interrupt interval even if the descriptor in the hub asks
for something else, because the spec says that it should be 255.
diffstat:
sys/dev/usb/uhub.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 1a22ec29fdc8 -r cc07e7c0e439 sys/dev/usb/uhub.c
--- a/sys/dev/usb/uhub.c Fri Apr 21 19:49:59 2000 +0000
+++ b/sys/dev/usb/uhub.c Fri Apr 21 19:51:43 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uhub.c,v 1.42 2000/04/21 16:05:50 augustss Exp $ */
+/* $NetBSD: uhub.c,v 1.43 2000/04/21 19:51:43 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */
/*
@@ -62,6 +62,8 @@
#include <dev/usb/usbdi_util.h>
#include <dev/usb/usbdivar.h>
+#define UHUB_INTR_INTERVAL 255 /* ms */
+
#ifdef UHUB_DEBUG
#define DPRINTF(x) if (uhubdebug) logprintf x
#define DPRINTFN(n,x) if (uhubdebug>(n)) logprintf x
@@ -236,7 +238,7 @@
err = usbd_open_pipe_intr(iface, ed->bEndpointAddress,
USBD_SHORT_XFER_OK, &sc->sc_ipipe, sc, sc->sc_status,
- sizeof(sc->sc_status), uhub_intr, USBD_DEFAULT_INTERVAL);
+ sizeof(sc->sc_status), uhub_intr, UHUB_INTR_INTERVAL);
if (err) {
printf("%s: cannot open interrupt pipe\n",
USBDEVNAME(sc->sc_dev));
Home |
Main Index |
Thread Index |
Old Index