svn commit: r209372 - user/jmallett/octeon/sys/mips/cavium/usb
Juli Mallett
jmallett at FreeBSD.org
Sun Jun 20 22:37:24 UTC 2010
Author: jmallett
Date: Sun Jun 20 22:37:24 2010
New Revision: 209372
URL: http://svn.freebsd.org/changeset/base/209372
Log:
Actually, the maximum number of USB ports is 2. Clamp that down to 1 for now
because we only support the first interrupt.
Modified:
user/jmallett/octeon/sys/mips/cavium/usb/octusb.h
Modified: user/jmallett/octeon/sys/mips/cavium/usb/octusb.h
==============================================================================
--- user/jmallett/octeon/sys/mips/cavium/usb/octusb.h Sun Jun 20 21:33:29 2010 (r209371)
+++ user/jmallett/octeon/sys/mips/cavium/usb/octusb.h Sun Jun 20 22:37:24 2010 (r209372)
@@ -29,7 +29,14 @@
#define _OCTUSB_H_
#define OCTUSB_MAX_DEVICES MIN(USB_MAX_DEVICES, 64)
-#define OCTUSB_MAX_PORTS 7 /* hardcoded */
+/*
+ * The second port is on a different IRQ and so we disable it for now.
+ */
+#if 1
+#define OCTUSB_MAX_PORTS 1 /* hardcoded */
+#else
+#define OCTUSB_MAX_PORTS 2 /* hardcoded */
+#endif
#define OCTUSB_MAX_FIXUP 4096 /* bytes */
#define OCTUSB_INTR_ENDPT 0x01
More information about the svn-src-user
mailing list