summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhci.c
diff options
context:
space:
mode:
authorrahnds <rahnds@openbsd.org>2000-09-06 22:42:10 +0000
committerrahnds <rahnds@openbsd.org>2000-09-06 22:42:10 +0000
commit06975d0ad3ba83cecf2491e7dd09f72f59ec4550 (patch)
treeeb58195d088e617f45d95897f219f47d99b89ff7 /sys/dev/usb/uhci.c
parentUpdate to tzdata2000f (diff)
downloadwireguard-openbsd-06975d0ad3ba83cecf2491e7dd09f72f59ec4550.tar.xz
wireguard-openbsd-06975d0ad3ba83cecf2491e7dd09f72f59ec4550.zip
Match Free/Net macros for le32toh/letoh32, define in terms of the other.
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 aae1039dcee..daeeac9e198 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhci.c,v 1.13 2000/07/04 11:44:23 fgsch Exp $ */
+/* $OpenBSD: uhci.c,v 1.14 2000/09/06 22:42:10 rahnds Exp $ */
/* $NetBSD: uhci.c,v 1.110 2000/04/14 14:11:36 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -103,20 +103,6 @@ int uhcidebug = 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;