summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhci.c
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2000-11-11 16:23:31 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2000-11-11 16:23:31 +0000
commit2aa302c6f53b39e1c8597d1a9899f8954f164d87 (patch)
treee315ffc865865069d50bb4544b0d623e750655dc /sys/dev/usb/uhci.c
parentec355f7beded997590d66cada850ebf6e678fd66 (diff)
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;