From 74c6c20b93f0513a453c6544f8b98ad55cbdc741 Mon Sep 17 00:00:00 2001 From: thompsa Date: Tue, 23 Jun 2009 02:19:59 +0000 Subject: - Make struct usb_xfer opaque so that drivers can not access the internals - Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h --- sys/dev/usb/controller/uhci.c | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'sys/dev/usb/controller/uhci.c') diff --git a/sys/dev/usb/controller/uhci.c b/sys/dev/usb/controller/uhci.c index 6d6a67e..77e95d3 100644 --- a/sys/dev/usb/controller/uhci.c +++ b/sys/dev/usb/controller/uhci.c @@ -38,9 +38,28 @@ __FBSDID("$FreeBSD$"); * ftp://download.intel.com/design/intarch/datashts/29056201.pdf */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include -#include -#include +#include #define USB_DEBUG_VAR uhcidebug @@ -1103,7 +1122,7 @@ uhci_non_isoc_done_sub(struct usb_xfer *xfer) td_alt_next = td->alt_next; if (xfer->aframes != xfer->nframes) { - xfer->frlengths[xfer->aframes] = 0; + usbd_xfer_set_frame_len(xfer, xfer->aframes, 0); } while (1) { -- cgit v1.1