summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2000-06-29 13:48:31 +0000
committeraaron <aaron@openbsd.org>2000-06-29 13:48:31 +0000
commit133b2762f6fd4caa0699dfcd0341b3eda37e9ba5 (patch)
tree558a7611e9fc5fe671c0bccf0f605a3a99fdcd07
parent.Nm -> .Xr; from deraadt@ (diff)
downloadwireguard-openbsd-133b2762f6fd4caa0699dfcd0341b3eda37e9ba5.tar.xz
wireguard-openbsd-133b2762f6fd4caa0699dfcd0341b3eda37e9ba5.zip
Allow USB to compile with USB_DEBUG defined; binkertn@umich.edu
-rw-r--r--sys/dev/usb/ohci.c6
-rw-r--r--sys/dev/usb/usb_port.h3
2 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c
index 8367d6b9d9e..549f3fc6bf1 100644
--- a/sys/dev/usb/ohci.c
+++ b/sys/dev/usb/ohci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ohci.c,v 1.11 2000/04/01 19:11:35 aaron Exp $ */
+/* $OpenBSD: ohci.c,v 1.12 2000/06/29 13:48:31 aaron Exp $ */
/* $NetBSD: ohci.c,v 1.85 2000/04/01 09:27:35 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */
@@ -106,9 +106,13 @@ int ohcidebug = 0;
#if BYTE_ORDER == BIG_ENDIAN
#define htole32(x) (bswap32(x))
#define le32toh(x) (bswap32(x))
+#define htole16(x) (bswap16(x))
+#define le16toh(x) (bswap16(x))
#else
#define htole32(x) (x)
#define le32toh(x) (x)
+#define htole16(x) (x)
+#define le16toh(x) (x)
#endif
#endif
diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h
index 6915c3711b1..1d21a7544a1 100644
--- a/sys/dev/usb/usb_port.h
+++ b/sys/dev/usb/usb_port.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb_port.h,v 1.14 2000/04/15 17:36:28 jakob Exp $ */
+/* $OpenBSD: usb_port.h,v 1.15 2000/06/29 13:48:31 aaron Exp $ */
/* $NetBSD: usb_port.h,v 1.28 2000/03/30 08:53:31 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_port.h,v 1.21 1999/11/17 22:33:47 n_hibma Exp $ */
@@ -211,6 +211,7 @@ __CONCAT(dname,_detach)(self, flags) \
#define memcpy(d, s, l) bcopy((s),(d),(l))
#define memset(d, v, l) bzero((d),(l))
#define bswap32(x) swap32(x)
+#define bswap16(x) swap16(x)
#define usb_kthread_create1 kthread_create
#define usb_kthread_create kthread_create_deferred