Re-add the definitions of htole32(x) and le32toh(x) for OpenBSD.

This commit is contained in:
Josef Karthauser 2002-04-07 15:41:45 +00:00
parent c82c28223c
commit 192ed2a524
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94120

View File

@ -99,6 +99,20 @@ int ohcidebug = 1;
#define DPRINTFN(n,x)
#endif
/*
* The OHCI controller is little endian, so on big endian machines
* the data strored in memory needs to be swapped.
*/
#if 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 ohci_pipe;
Static ohci_soft_ed_t *ohci_alloc_sed(ohci_softc_t *);