svn commit: r227097 - user/adrian/if_ath_tx/sys/dev/ath/ath_hal
Adrian Chadd
adrian at FreeBSD.org
Fri Nov 4 22:58:34 UTC 2011
Author: adrian
Date: Fri Nov 4 22:58:34 2011
New Revision: 227097
URL: http://svn.freebsd.org/changeset/base/227097
Log:
Implement an analog register write, which Merlin requires a delay for.
Modified:
user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ah_internal.h
Modified: user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ah_internal.h
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ah_internal.h Fri Nov 4 22:56:48 2011 (r227096)
+++ user/adrian/if_ath_tx/sys/dev/ath/ath_hal/ah_internal.h Fri Nov 4 22:58:34 2011 (r227097)
@@ -485,6 +485,8 @@ isBigEndian(void)
/* Analog register writes may require a delay between each one (eg Merlin?) */
#define OS_A_REG_RMW_FIELD(_a, _r, _f, _v) \
do { OS_REG_WRITE(_a, _r, (OS_REG_READ(_a, _r) &~ (_f)) | (((_v) << _f##_S) & (_f))) ; OS_DELAY(100); } while (0)
+#define OS_A_REG_WRITE(_a, _r, _v) \
+ do { OS_REG_WRITE(_a, _r, _v) ; OS_DELAY(100); } while (0)
/* wait for the register contents to have the specified value */
extern HAL_BOOL ath_hal_wait(struct ath_hal *, u_int reg,
More information about the svn-src-user
mailing list