mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Re-add the definitions of htole32(x) and le32toh(x) for OpenBSD.
This commit is contained in:
parent
c82c28223c
commit
192ed2a524
1 changed files with 14 additions and 0 deletions
|
|
@ -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 *);
|
||||
|
|
|
|||
Loading…
Reference in a new issue