aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-prph.h
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2011-06-28 11:01:12 -0400
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2011-07-01 10:58:08 -0400
commitf86af7ba82e3449e6ee957e0407cb6c683fa37db (patch)
treee3d040079505bbf0015a7ced85ce7bc212bda1a0 /drivers/net/wireless/iwlwifi/iwl-prph.h
parent02aca585f58a331288026cf78fd4f4ca404cbe12 (diff)
iwlagn: scd memory boundary
Assign memory boundary for SCD context, tx status and translation table Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-prph.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-prph.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-prph.h b/drivers/net/wireless/iwlwifi/iwl-prph.h
index f00d188b2cfc..1cc0ed1f488c 100644
--- a/drivers/net/wireless/iwlwifi/iwl-prph.h
+++ b/drivers/net/wireless/iwlwifi/iwl-prph.h
@@ -168,6 +168,7 @@
168 * the scheduler (especially for queue #4/#9, the command queue, otherwise 168 * the scheduler (especially for queue #4/#9, the command queue, otherwise
169 * the driver can't issue commands!): 169 * the driver can't issue commands!):
170 */ 170 */
171#define SCD_MEM_LOWER_BOUND (0x0000)
171 172
172/** 173/**
173 * Max Tx window size is the max number of contiguous TFDs that the scheduler 174 * Max Tx window size is the max number of contiguous TFDs that the scheduler
@@ -197,15 +198,23 @@
197#define IWLAGN_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS (16) 198#define IWLAGN_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS (16)
198#define IWLAGN_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK (0x007F0000) 199#define IWLAGN_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK (0x007F0000)
199 200
200#define IWLAGN_SCD_CONTEXT_DATA_OFFSET (0x600) 201/* Context Data */
201#define IWLAGN_SCD_TX_STTS_BITMAP_OFFSET (0x7B1) 202#define IWLAGN_SCD_CONTEXT_MEM_LOWER_BOUND (SCD_MEM_LOWER_BOUND + 0x600)
202#define IWLAGN_SCD_TRANSLATE_TBL_OFFSET (0x7E0) 203#define IWLAGN_SCD_CONTEXT_MEM_UPPER_BOUND (SCD_MEM_LOWER_BOUND + 0x6A0)
204
205/* Tx status */
206#define IWLAGN_SCD_TX_STTS_MEM_LOWER_BOUND (SCD_MEM_LOWER_BOUND + 0x6A0)
207#define IWLAGN_SCD_TX_STTS_MEM_UPPER_BOUND (SCD_MEM_LOWER_BOUND + 0x7E0)
208
209/* Translation Data */
210#define IWLAGN_SCD_TRANS_TBL_MEM_LOWER_BOUND (SCD_MEM_LOWER_BOUND + 0x7E0)
211#define IWLAGN_SCD_TRANS_TBL_MEM_UPPER_BOUND (SCD_MEM_LOWER_BOUND + 0x808)
203 212
204#define IWLAGN_SCD_CONTEXT_QUEUE_OFFSET(x)\ 213#define IWLAGN_SCD_CONTEXT_QUEUE_OFFSET(x)\
205 (IWLAGN_SCD_CONTEXT_DATA_OFFSET + ((x) * 8)) 214 (IWLAGN_SCD_CONTEXT_MEM_LOWER_BOUND + ((x) * 8))
206 215
207#define IWLAGN_SCD_TRANSLATE_TBL_OFFSET_QUEUE(x) \ 216#define IWLAGN_SCD_TRANSLATE_TBL_OFFSET_QUEUE(x) \
208 ((IWLAGN_SCD_TRANSLATE_TBL_OFFSET + ((x) * 2)) & 0xfffc) 217 ((IWLAGN_SCD_TRANS_TBL_MEM_LOWER_BOUND + ((x) * 2)) & 0xfffc)
209 218
210#define IWLAGN_SCD_QUEUECHAIN_SEL_ALL(priv) \ 219#define IWLAGN_SCD_QUEUECHAIN_SEL_ALL(priv) \
211 (((1<<(priv)->hw_params.max_txq_num) - 1) &\ 220 (((1<<(priv)->hw_params.max_txq_num) - 1) &\