diff options
author | 2002-06-26 21:34:01 +0000 | |
---|---|---|
committer | 2002-06-26 21:34:01 +0000 | |
commit | 08eff2ef8a17ab330f15a8e1d24d9b53089f47f2 (patch) | |
tree | 52355b9aecbe3e4fadabaf9f065e2bcb5680d341 | |
parent | Missing .Xr's from Margarida Sequeira <niness@devilness.org>. (diff) | |
download | wireguard-openbsd-08eff2ef8a17ab330f15a8e1d24d9b53089f47f2.tar.xz wireguard-openbsd-08eff2ef8a17ab330f15a8e1d24d9b53089f47f2.zip |
stp at sparc will map this card always as big-endian.
-rw-r--r-- | sys/dev/ic/if_wireg.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ic/if_wireg.h b/sys/dev/ic/if_wireg.h index 283ff8b4463..326b52fa4f8 100644 --- a/sys/dev/ic/if_wireg.h +++ b/sys/dev/ic/if_wireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wireg.h,v 1.22 2002/06/23 10:33:21 deraadt Exp $ */ +/* $OpenBSD: if_wireg.h,v 1.23 2002/06/26 21:34:01 fgsch Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -82,8 +82,10 @@ * register space access macros */ -#if defined(__sparc__) +#if defined(__sparc64__) #define WI_BIG_ENDIAN_POSSIBLE (sc->wi_flags & WI_FLAGS_BUS_PCMCIA) +#elif defined(__sparc__) +#define WI_BIG_ENDIAN_POSSIBLE 1 #else #define WI_BIG_ENDIAN_POSSIBLE 0 #endif |