Date: Fri, 4 Nov 2011 22:58:34 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r227097 - user/adrian/if_ath_tx/sys/dev/ath/ath_hal Message-ID: <201111042258.pA4MwYr9038097@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111042258.pA4MwYr9038097>