summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhci.c
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2000-11-11 16:23:30 +0000
committerdrahn <drahn@openbsd.org>2000-11-11 16:23:30 +0000
commit4eeb076cdc2d4b1571261de279ad79778c080f12 (patch)
tree27da178366a337a65442ab31eef3a40a50bf898e /sys/dev/usb/uhci.c
parentallow prompt to be specified anywhere on the command line, make it work (diff)
downloadwireguard-openbsd-4eeb076cdc2d4b1571261de279ad79778c080f12.tar.xz
wireguard-openbsd-4eeb076cdc2d4b1571261de279ad79778c080f12.zip
Change the le32toh() le16toh() macros back to the previous defintion.
This change is more portable, redefine the macros to use the host letoh32/letoh16 instead of using possibly less efficient bswap routines.
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r--sys/dev/usb/uhci.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 0e003af212e..12208439d10 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhci.c,v 1.15 2000/11/08 18:10:38 aaron Exp $ */
+/* $OpenBSD: uhci.c,v 1.16 2000/11/11 16:23:30 drahn Exp $ */
/* $NetBSD: uhci.c,v 1.125 2000/09/23 21:00:10 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -110,20 +110,6 @@ int uhcinoloop = 0;
#define DPRINTFN(n,x)
#endif
-/*
- * The UHCI controller is little endian, so on big endian machines
- * the data strored in memory needs to be swapped.
- */
-#if defined(__FreeBSD__) || defined(__OpenBSD__)
-#if BYTE_ORDER == BIG_ENDIAN
-#define htole32(x) (bswap32(x))
-#define le32toh(x) (bswap32(x))
-#else
-#define htole32(x) (x)
-#define le32toh(x) (x)
-#endif
-#endif
-
struct uhci_pipe {
struct usbd_pipe pipe;
int nexttoggle;