diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-prph.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-prph.h | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-prph.h b/drivers/net/wireless/iwlwifi/iwl-prph.h index b21fcf042b77..6221e4dfc64f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-prph.h +++ b/drivers/net/wireless/iwlwifi/iwl-prph.h | |||
@@ -252,6 +252,7 @@ | |||
252 | #define SCD_QUEUE_CTX_REG2_WIN_SIZE_MSK (0x0000007F) | 252 | #define SCD_QUEUE_CTX_REG2_WIN_SIZE_MSK (0x0000007F) |
253 | #define SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS (16) | 253 | #define SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS (16) |
254 | #define SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK (0x007F0000) | 254 | #define SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK (0x007F0000) |
255 | #define SCD_GP_CTRL_ENABLE_31_QUEUES BIT(0) | ||
255 | 256 | ||
256 | /* Context Data */ | 257 | /* Context Data */ |
257 | #define SCD_CONTEXT_MEM_LOWER_BOUND (SCD_MEM_LOWER_BOUND + 0x600) | 258 | #define SCD_CONTEXT_MEM_LOWER_BOUND (SCD_MEM_LOWER_BOUND + 0x600) |
@@ -285,32 +286,9 @@ | |||
285 | #define SCD_CHAINEXT_EN (SCD_BASE + 0x244) | 286 | #define SCD_CHAINEXT_EN (SCD_BASE + 0x244) |
286 | #define SCD_AGGR_SEL (SCD_BASE + 0x248) | 287 | #define SCD_AGGR_SEL (SCD_BASE + 0x248) |
287 | #define SCD_INTERRUPT_MASK (SCD_BASE + 0x108) | 288 | #define SCD_INTERRUPT_MASK (SCD_BASE + 0x108) |
289 | #define SCD_GP_CTRL (SCD_BASE + 0x1a8) | ||
288 | #define SCD_EN_CTRL (SCD_BASE + 0x254) | 290 | #define SCD_EN_CTRL (SCD_BASE + 0x254) |
289 | 291 | ||
290 | static inline unsigned int SCD_QUEUE_WRPTR(unsigned int chnl) | ||
291 | { | ||
292 | if (chnl < 20) | ||
293 | return SCD_BASE + 0x18 + chnl * 4; | ||
294 | WARN_ON_ONCE(chnl >= 32); | ||
295 | return SCD_BASE + 0x284 + (chnl - 20) * 4; | ||
296 | } | ||
297 | |||
298 | static inline unsigned int SCD_QUEUE_RDPTR(unsigned int chnl) | ||
299 | { | ||
300 | if (chnl < 20) | ||
301 | return SCD_BASE + 0x68 + chnl * 4; | ||
302 | WARN_ON_ONCE(chnl >= 32); | ||
303 | return SCD_BASE + 0x2B4 + (chnl - 20) * 4; | ||
304 | } | ||
305 | |||
306 | static inline unsigned int SCD_QUEUE_STATUS_BITS(unsigned int chnl) | ||
307 | { | ||
308 | if (chnl < 20) | ||
309 | return SCD_BASE + 0x10c + chnl * 4; | ||
310 | WARN_ON_ONCE(chnl >= 32); | ||
311 | return SCD_BASE + 0x384 + (chnl - 20) * 4; | ||
312 | } | ||
313 | |||
314 | /*********************** END TX SCHEDULER *************************************/ | 292 | /*********************** END TX SCHEDULER *************************************/ |
315 | 293 | ||
316 | /* Oscillator clock */ | 294 | /* Oscillator clock */ |