summaryrefslogtreecommitdiffstats
path: root/sys/boot/usb
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2013-02-10 10:56:13 +0000
committerhselasky <hselasky@FreeBSD.org>2013-02-10 10:56:13 +0000
commit07c18e4e92170f42c04651098b0a5e506e8f1efe (patch)
tree98239bf65cd74264d2ba911ccbce4a4b729fa56b /sys/boot/usb
parent34ac6c9a18f820e4a7bbf72e956f09cf5c153a8b (diff)
downloadFreeBSD-src-07c18e4e92170f42c04651098b0a5e506e8f1efe.zip
FreeBSD-src-07c18e4e92170f42c04651098b0a5e506e8f1efe.tar.gz
- Move scratch data from the USB bus structure to the USB device structure
so that simultaneous access cannot happen. Protect scratch area using the enumeration lock. Also reduce stack usage in usbd_transfer_setup() by moving some big stack members to the scratch area. This saves around 200 bytes of stack. - Fix a whitespace. MFC after: 1 week
Diffstat (limited to 'sys/boot/usb')
-rw-r--r--sys/boot/usb/bsd_global.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/usb/bsd_global.h b/sys/boot/usb/bsd_global.h
index 80cbd63..2fb0dcc 100644
--- a/sys/boot/usb/bsd_global.h
+++ b/sys/boot/usb/bsd_global.h
@@ -39,6 +39,7 @@
#include <dev/usb/usb_process.h>
#include <dev/usb/usb_busdma.h>
#include <dev/usb/usb_dynamic.h>
+#include <dev/usb/usb_transfer.h>
#include <dev/usb/usb_device.h>
#include <dev/usb/usb_hub.h>
#include <dev/usb/usb_controller.h>
@@ -52,7 +53,6 @@
#include <dev/usb/usb_pf.h>
#include <dev/usb/usb_request.h>
#include <dev/usb/usb_util.h>
-#include <dev/usb/usb_transfer.h>
#include <dev/usb/usb_compat_linux.h>
#include <dev/usb/usbhid.h>
#include <dev/usb/usb_ioctl.h>
OpenPOWER on IntegriCloud