summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2011-01-22 13:52:23 +0000
committerhselasky <hselasky@FreeBSD.org>2011-01-22 13:52:23 +0000
commit72eed4db056096fe911b4ea08baba8879b723f82 (patch)
treedb48292301939573c5fb0dac3f101cb6de297b02 /sys/dev
parent9800a0b6c05143282874e4f1698f133e0984bc3a (diff)
downloadFreeBSD-src-72eed4db056096fe911b4ea08baba8879b723f82.zip
FreeBSD-src-72eed4db056096fe911b4ea08baba8879b723f82.tar.gz
Allow USB_HOST_ALIGN to be configured at compile time. This patch is
necessary for MIPS based RouterStation Pro board and maybe other MIPS based boards as well. Submitted by: Milan Obuch Approved by: thompsa (mentor)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/usb_freebsd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_freebsd.h b/sys/dev/usb/usb_freebsd.h
index 49aa471..70dd383 100644
--- a/sys/dev/usb/usb_freebsd.h
+++ b/sys/dev/usb/usb_freebsd.h
@@ -46,7 +46,12 @@
#define USB_TD_GET_PROC(td) (td)->td_proc
#define USB_PROC_GET_GID(td) (td)->p_pgid
+#if defined(USB_HOST_ALIGN) && (USB_HOST_ALIGN != 0)
+/* USB_HOST_ALIGN is already defined and valid */
+#else
+#undef USB_HOST_ALIGN
#define USB_HOST_ALIGN 8 /* bytes, must be power of two */
+#endif
#define USB_FS_ISOC_UFRAME_MAX 4 /* exclusive unit */
#define USB_BUS_MAX 256 /* units */
#define USB_MAX_DEVICES 128 /* units */
OpenPOWER on IntegriCloud