diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-06-23 02:19:59 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-06-23 02:19:59 +0000 |
commit | 74c6c20b93f0513a453c6544f8b98ad55cbdc741 (patch) | |
tree | ee5c9acfe716a9835136731811e9e1a68751e278 /sys/dev/usb/usb_process.c | |
parent | 52922c0742bc8545734b2903d6407b99664e84ed (diff) | |
download | FreeBSD-src-74c6c20b93f0513a453c6544f8b98ad55cbdc741.zip FreeBSD-src-74c6c20b93f0513a453c6544f8b98ad55cbdc741.tar.gz |
- 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
Diffstat (limited to 'sys/dev/usb/usb_process.c')
-rw-r--r-- | sys/dev/usb/usb_process.c | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_process.c b/sys/dev/usb/usb_process.c index 0732ee05..eb79f16 100644 --- a/sys/dev/usb/usb_process.c +++ b/sys/dev/usb/usb_process.c @@ -26,7 +26,29 @@ #define USB_DEBUG_VAR usb_proc_debug -#include <dev/usb/usb_core.h> +#include <sys/stdint.h> +#include <sys/stddef.h> +#include <sys/param.h> +#include <sys/queue.h> +#include <sys/types.h> +#include <sys/systm.h> +#include <sys/kernel.h> +#include <sys/bus.h> +#include <sys/linker_set.h> +#include <sys/module.h> +#include <sys/lock.h> +#include <sys/mutex.h> +#include <sys/condvar.h> +#include <sys/sysctl.h> +#include <sys/sx.h> +#include <sys/unistd.h> +#include <sys/callout.h> +#include <sys/malloc.h> +#include <sys/priv.h> + +#include <dev/usb/usb.h> +#include <dev/usb/usbdi.h> +#include <dev/usb/usbdi_util.h> #include <dev/usb/usb_process.h> #include <dev/usb/usb_debug.h> #include <dev/usb/usb_util.h> @@ -52,7 +74,7 @@ #define USB_THREAD_EXIT(err) kthread_exit(err) #endif -#if USB_DEBUG +#ifdef USB_DEBUG static int usb_proc_debug; SYSCTL_NODE(_hw_usb, OID_AUTO, proc, CTLFLAG_RW, 0, "USB process"); |