diff options
author | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-09-06 22:42:11 +0000 |
---|---|---|
committer | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-09-06 22:42:11 +0000 |
commit | 1de4d8ac400250145d45d2ac2b352d862a15d517 (patch) | |
tree | ca03203620ee2b2056cc3b953edc6584a90459c9 /sys/dev/usb/usb_port.h | |
parent | d72144bcf0c1f0a1e10695c7d5bb09516a41d45e (diff) |
Match Free/Net macros for le32toh/letoh32, define in terms of the other.
Diffstat (limited to 'sys/dev/usb/usb_port.h')
-rw-r--r-- | sys/dev/usb/usb_port.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h index 4b288daf577..31ec8c211e2 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.17 2000/08/26 20:08:39 nate Exp $ */ +/* $OpenBSD: usb_port.h,v 1.18 2000/09/06 22:42:10 rahnds 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 $ */ @@ -221,6 +221,17 @@ __CONCAT(dname,_detach)(self, flags) \ #define memset(d, v, l) bzero((d),(l)) #define bswap32(x) swap32(x) #define bswap16(x) swap16(x) + +/* + * The UHCI/OHCI controllers are little endian, so on big endian machines + * the data strored in memory needs to be swapped. + */ + +#if defined(letoh32) +#define le32toh(x) letoh32(x) +#define le16toh(x) letoh16(x) +#endif + #define usb_kthread_create1 kthread_create #define usb_kthread_create kthread_create_deferred |