summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/uhci.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-03-20 19:04:31 +0000
committerthompsa <thompsa@FreeBSD.org>2009-03-20 19:04:31 +0000
commit5dee97ce8610e3adf8c9f937bd5fe961ca124c90 (patch)
treee55d0e93018150bfd685df16415679e20939dc96 /sys/dev/usb/controller/uhci.c
parentd76fe3af70ccca92ac7cc0f189dd01beca3aef5e (diff)
downloadFreeBSD-src-5dee97ce8610e3adf8c9f937bd5fe961ca124c90.zip
FreeBSD-src-5dee97ce8610e3adf8c9f937bd5fe961ca124c90.tar.gz
MFp4 //depot/projects/usb @159430
- Move tunable defines into usb_core.h and dependancy towards usb_defs.h - Leave hardcoded defines in "usb_defs.h". - Allow overriding all tunable defines. - Add more customisable typedefs. - Correct maximum device number. Submitted by: Hans Petter Selasky
Diffstat (limited to 'sys/dev/usb/controller/uhci.c')
-rw-r--r--sys/dev/usb/controller/uhci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/controller/uhci.c b/sys/dev/usb/controller/uhci.c
index 82a9623..de4026d 100644
--- a/sys/dev/usb/controller/uhci.c
+++ b/sys/dev/usb/controller/uhci.c
@@ -41,7 +41,6 @@ __FBSDID("$FreeBSD$");
#include <dev/usb/usb.h>
#include <dev/usb/usb_mfunc.h>
#include <dev/usb/usb_error.h>
-#include <dev/usb/usb_defs.h>
#define USB_DEBUG_VAR uhcidebug
@@ -2626,7 +2625,7 @@ uhci_root_ctrl_done(struct usb2_xfer *xfer,
USETW(sc->sc_hub_desc.stat.wStatus, 0);
break;
case C(UR_SET_ADDRESS, UT_WRITE_DEVICE):
- if (value >= USB_MAX_DEVICES) {
+ if (value >= UHCI_MAX_DEVICES) {
std->err = USB_ERR_IOERROR;
goto done;
}
OpenPOWER on IntegriCloud