diff options
author | sam <sam@FreeBSD.org> | 2006-12-11 00:32:15 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2006-12-11 00:32:15 +0000 |
commit | 02d21702b760c4e2ac09dc97d6fcc5298c51ce51 (patch) | |
tree | 180d01fc47dcbdbebe13b275c235c707e659e355 /sys/dev/wi/if_wivar.h | |
parent | ea902a65dc6a6f1f2dfb9b9c8fccfccaf4f5a335 (diff) | |
download | FreeBSD-src-02d21702b760c4e2ac09dc97d6fcc5298c51ce51.zip FreeBSD-src-02d21702b760c4e2ac09dc97d6fcc5298c51ce51.tar.gz |
nuke compatibility cruft
MFC after: 1 month
Diffstat (limited to 'sys/dev/wi/if_wivar.h')
-rw-r--r-- | sys/dev/wi/if_wivar.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/sys/dev/wi/if_wivar.h b/sys/dev/wi/if_wivar.h index a00dd33..a1dc803 100644 --- a/sys/dev/wi/if_wivar.h +++ b/sys/dev/wi/if_wivar.h @@ -70,9 +70,7 @@ struct wi_softc { const struct ieee80211_key *, ieee80211_keyix *, ieee80211_keyix *); device_t sc_dev; -#if __FreeBSD_version >= 500000 struct mtx sc_mtx; -#endif int sc_unit; int wi_gone; int sc_enabled; @@ -220,21 +218,8 @@ struct wi_card_ident { #define WI_RSSI_TO_DBM(sc, rssi) (MIN((sc)->sc_max_rssi, \ MAX((sc)->sc_min_rssi, (rssi))) - (sc)->sc_dbm_offset) -#if __FreeBSD_version < 500000 -/* - * Various compat hacks/kludges - */ -#define le16toh(x) (x) -#define htole16(x) (x) -#define ifaddr_byindex(idx) ifnet_addrs[(idx) - 1]; -#define WI_LOCK_DECL() int s -#define WI_LOCK(_sc) s = splimp() -#define WI_UNLOCK(_sc) splx(s) -#else -#define WI_LOCK_DECL() #define WI_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) #define WI_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) -#endif int wi_attach(device_t); int wi_detach(device_t); |