summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-05-08 00:23:00 +0000
committersam <sam@FreeBSD.org>2009-05-08 00:23:00 +0000
commita51a65fed4c9f5062b1713275072bf2d9f2b63e5 (patch)
treec0cff35a70f51f933e56723fcb8d107c6489a517 /sys
parent5d9a8a010d786ffa9c861454cfb7a1214a5a6719 (diff)
downloadFreeBSD-src-a51a65fed4c9f5062b1713275072bf2d9f2b63e5.zip
FreeBSD-src-a51a65fed4c9f5062b1713275072bf2d9f2b63e5.tar.gz
kill more portability functions that are no longer useful
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ath/ah_osdep.c21
-rw-r--r--sys/dev/ath/ah_osdep.h9
-rw-r--r--sys/dev/ath/ath_hal/ar5416/ar5416_reset.c4
3 files changed, 5 insertions, 29 deletions
diff --git a/sys/dev/ath/ah_osdep.c b/sys/dev/ath/ah_osdep.c
index ee9cd34..7d4239b 100644
--- a/sys/dev/ath/ah_osdep.c
+++ b/sys/dev/ath/ah_osdep.c
@@ -353,24 +353,3 @@ ath_hal_assert_failed(const char* filename, int lineno, const char *msg)
panic("ath_hal_assert");
}
#endif /* AH_ASSERT */
-
-/*
- * Delay n microseconds.
- */
-void
-ath_hal_delay(int n)
-{
- DELAY(n);
-}
-
-void
-ath_hal_memzero(void *dst, size_t n)
-{
- bzero(dst, n);
-}
-
-void *
-ath_hal_memcpy(void *dst, const void *src, size_t n)
-{
- return memcpy(dst, src, n);
-}
diff --git a/sys/dev/ath/ah_osdep.h b/sys/dev/ath/ah_osdep.h
index 05cccff..69d13e0 100644
--- a/sys/dev/ath/ah_osdep.h
+++ b/sys/dev/ath/ah_osdep.h
@@ -58,14 +58,11 @@ typedef bus_space_handle_t HAL_BUS_HANDLE;
/*
* Delay n microseconds.
*/
-extern void ath_hal_delay(int);
-#define OS_DELAY(_n) ath_hal_delay(_n)
+#define OS_DELAY(_n) DELAY(_n)
#define OS_INLINE __inline
-#define OS_MEMZERO(_a, _n) ath_hal_memzero((_a), (_n))
-extern void ath_hal_memzero(void *, size_t);
-#define OS_MEMCPY(_d, _s, _n) ath_hal_memcpy(_d,_s,_n)
-extern void *ath_hal_memcpy(void *, const void *, size_t);
+#define OS_MEMZERO(_a, _n) bzero((_a), (_n))
+#define OS_MEMCPY(_d, _s, _n) memcpy(_d,_s,_n)
#define abs(_a) __builtin_abs(_a)
diff --git a/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c b/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c
index ac3d84a..4593588 100644
--- a/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c
+++ b/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c
@@ -818,7 +818,7 @@ ar5416SetTransmitPower(struct ath_hal *ah,
HALASSERT(AH_PRIVATE(ah)->ah_eeversion >= AR_EEPROM_VER14_1);
/* Setup info for the actual eeprom */
- ath_hal_memzero(ratesArray, sizeof(ratesArray));
+ OS_MEMZERO(ratesArray, sizeof(ratesArray));
cfgCtl = ath_hal_getctl(ah, chan);
powerLimit = chan->ic_maxregpower * 2;
twiceAntennaReduction = chan->ic_maxantgain;
@@ -1759,7 +1759,7 @@ ar5416SetPowerCalTable(struct ath_hal *ah, struct ar5416eeprom *pEepData,
uint16_t xpdGainValues[AR5416_NUM_PD_GAINS];
uint32_t reg32, regOffset, regChainOffset;
- ath_hal_memzero(xpdGainValues, sizeof(xpdGainValues));
+ OS_MEMZERO(xpdGainValues, sizeof(xpdGainValues));
xpdMask = pEepData->modalHeader[IEEE80211_IS_CHAN_2GHZ(chan)].xpdGain;
OpenPOWER on IntegriCloud