aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/ath5k.h
diff options
context:
space:
mode:
authorNick Kossifidis <mickflemm@gmail.com>2010-11-23 14:00:37 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-11-30 13:52:33 -0500
commitc297560206adf0cda8ce38ef9b20b0a025754c4d (patch)
tree1e4cb7213a112bba110cdd4bf28519c4d1d30a34 /drivers/net/wireless/ath/ath5k/ath5k.h
parentfa3d2feeff4723cce8d4722902492d60b7f75fcc (diff)
ath5k: Put core clock initialization on a new function
* Handle all usec parameters in one function. It's much cleaner this way. Signed-off-by: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/ath5k.h')
-rw-r--r--drivers/net/wireless/ath/ath5k/ath5k.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h
index b1429da41a80..c9535447a8ab 100644
--- a/drivers/net/wireless/ath/ath5k/ath5k.h
+++ b/drivers/net/wireless/ath/ath5k/ath5k.h
@@ -242,14 +242,6 @@
242#define AR5K_INIT_SLG_RETRY AR5K_INIT_SSH_RETRY 242#define AR5K_INIT_SLG_RETRY AR5K_INIT_SSH_RETRY
243#define AR5K_INIT_TX_RETRY 10 243#define AR5K_INIT_TX_RETRY 10
244 244
245#define AR5K_INIT_TRANSMIT_LATENCY ( \
246 (AR5K_INIT_TX_LATENCY << 14) | (AR5K_INIT_USEC_32 << 7) | \
247 (AR5K_INIT_USEC) \
248)
249#define AR5K_INIT_TRANSMIT_LATENCY_TURBO ( \
250 (AR5K_INIT_TX_LATENCY << 14) | (AR5K_INIT_USEC_32 << 7) | \
251 (AR5K_INIT_USEC_TURBO) \
252)
253#define AR5K_INIT_PROTO_TIME_CNTRL ( \ 245#define AR5K_INIT_PROTO_TIME_CNTRL ( \
254 (AR5K_INIT_CARR_SENSE_EN << 26) | (AR5K_INIT_EIFS << 12) | \ 246 (AR5K_INIT_CARR_SENSE_EN << 26) | (AR5K_INIT_EIFS << 12) | \
255 (AR5K_INIT_PROG_IFS) \ 247 (AR5K_INIT_PROG_IFS) \
@@ -259,6 +251,24 @@
259 (AR5K_INIT_PROG_IFS_TURBO) \ 251 (AR5K_INIT_PROG_IFS_TURBO) \
260) 252)
261 253
254/* Rx latency for 5 and 10MHz operation (max ?) */
255#define AR5K_INIT_RX_LAT_MAX 63
256/* Tx latencies from initvals (5212 only but no problem
257 * because we only tweak them on 5212) */
258#define AR5K_INIT_TX_LAT_A 54
259#define AR5K_INIT_TX_LAT_BG 384
260/* Tx latency for 40MHz (turbo) operation (min ?) */
261#define AR5K_INIT_TX_LAT_MIN 32
262
263/* Tx frame to Tx data start delay */
264#define AR5K_INIT_TXF2TXD_START_DEFAULT 14
265#define AR5K_INIT_TXF2TXD_START_DELAY_10MHZ 12
266#define AR5K_INIT_TXF2TXD_START_DELAY_5MHZ 13
267
268/* Default Tx/Rx latencies (same for 5211)*/
269#define AR5K_INIT_TX_LATENCY_5210 54
270#define AR5K_INIT_RX_LATENCY_5210 29
271
262 272
263/* GENERIC CHIPSET DEFINITIONS */ 273/* GENERIC CHIPSET DEFINITIONS */
264 274