kill more portability functions that are no longer useful
This commit is contained in:
parent
8ab663f305
commit
b4307a77d2
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user