From 2aa302c6f53b39e1c8597d1a9899f8954f164d87 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Sat, 11 Nov 2000 16:23:31 +0000 Subject: 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. --- sys/dev/usb/uhci.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'sys/dev/usb/uhci.c') 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; -- cgit v1.2.3