summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbdi.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/usbdi.h')
-rw-r--r--sys/dev/usb/usbdi.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h
index f1adbcf11a5..1fcc956c560 100644
--- a/sys/dev/usb/usbdi.h
+++ b/sys/dev/usb/usbdi.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdi.h,v 1.31 2009/08/30 19:15:40 miod Exp $ */
+/* $OpenBSD: usbdi.h,v 1.32 2009/09/23 19:59:08 miod Exp $ */
/* $NetBSD: usbdi.h,v 1.62 2002/07/11 21:14:35 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi.h,v 1.18 1999/11/17 22:33:49 n_hibma Exp $ */
@@ -242,10 +242,18 @@ struct usb_attach_arg {
/* XXX Perhaps USB should have its own levels? */
#ifdef __HAVE_GENERIC_SOFT_INTERRUPTS
#define splusb splsoftnet
+#if 0
#define SPLUSBCHECK splsoftassert(IPL_SOFTNET)
#else
+#define SPLUSBCHECK do { /* nothing */ } while (0)
+#endif
+#else
#define splusb splbio
+#if 0
#define SPLUSBCHECK splassert(IPL_BIO)
+#else
+#define SPLUSBCHECK do { /* nothing */ } while (0)
+#endif
#endif /* __HAVE_GENERIC_SOFT_INTERRUPTS */
#define splhardusb splbio
#define IPL_USB IPL_BIO