From 72eed4db056096fe911b4ea08baba8879b723f82 Mon Sep 17 00:00:00 2001 From: hselasky Date: Sat, 22 Jan 2011 13:52:23 +0000 Subject: 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) --- sys/dev/usb/usb_freebsd.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/dev') 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 */ -- cgit v1.1