Author: sam
Date: Fri May  8 00:23:00 2009
New Revision: 191909
URL: http://svn.freebsd.org/changeset/base/191909

Log:
  kill more portability functions that are no longer useful

Modified:
  head/sys/dev/ath/ah_osdep.c
  head/sys/dev/ath/ah_osdep.h
  head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c

Modified: head/sys/dev/ath/ah_osdep.c
==============================================================================
--- head/sys/dev/ath/ah_osdep.c Fri May  8 00:15:27 2009        (r191908)
+++ head/sys/dev/ath/ah_osdep.c Fri May  8 00:23:00 2009        (r191909)
@@ -353,24 +353,3 @@ ath_hal_assert_failed(const char* filena
        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);
-}

Modified: head/sys/dev/ath/ah_osdep.h
==============================================================================
--- head/sys/dev/ath/ah_osdep.h Fri May  8 00:15:27 2009        (r191908)
+++ head/sys/dev/ath/ah_osdep.h Fri May  8 00:23:00 2009        (r191909)
@@ -58,14 +58,11 @@ typedef bus_space_handle_t HAL_BUS_HANDL
 /*
  * 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)
 

Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c      Fri May  8 00:15:27 
2009        (r191908)
+++ head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c      Fri May  8 00:23:00 
2009        (r191909)
@@ -818,7 +818,7 @@ ar5416SetTransmitPower(struct ath_hal *a
     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 *a
     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;
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to