diff options
author | Ron Rindjunsky <ron.rindjunsky@intel.com> | 2008-05-15 01:54:13 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-21 21:48:04 -0400 |
commit | 99da1b48fc77484aa8da85a45d9c3c1e00243659 (patch) | |
tree | 68e6f85319532e4eeaf0ad01b26751fc7336094d /drivers/net/wireless/iwlwifi/iwl-prph.h | |
parent | dbb983b70a4696666112591572ed49c48c58da26 (diff) |
iwlwifi: add ucode init flow handling for iwl5000
This patch adds all the handlers and functions needed for ucode
initialization flow.
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-prph.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-prph.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-prph.h b/drivers/net/wireless/iwlwifi/iwl-prph.h index acac629386e0..d6a04f65f359 100644 --- a/drivers/net/wireless/iwlwifi/iwl-prph.h +++ b/drivers/net/wireless/iwlwifi/iwl-prph.h | |||
@@ -517,6 +517,34 @@ | |||
517 | #define IWL49_SCD_QUEUE_RA_TID_MAP_RATID_MSK (0x01FF) | 517 | #define IWL49_SCD_QUEUE_RA_TID_MAP_RATID_MSK (0x01FF) |
518 | 518 | ||
519 | /* 5000 SCD */ | 519 | /* 5000 SCD */ |
520 | #define IWL50_SCD_QUEUE_STTS_REG_POS_TXF (0) | ||
521 | #define IWL50_SCD_QUEUE_STTS_REG_POS_ACTIVE (3) | ||
522 | #define IWL50_SCD_QUEUE_STTS_REG_POS_WSL (4) | ||
523 | #define IWL50_SCD_QUEUE_STTS_REG_POS_SCD_ACT_EN (19) | ||
524 | #define IWL50_SCD_QUEUE_STTS_REG_MSK (0x00FF0000) | ||
525 | |||
526 | #define IWL50_SCD_QUEUE_CTX_REG1_CREDIT_POS (8) | ||
527 | #define IWL50_SCD_QUEUE_CTX_REG1_CREDIT_MSK (0x00FFFF00) | ||
528 | #define IWL50_SCD_QUEUE_CTX_REG1_SUPER_CREDIT_POS (24) | ||
529 | #define IWL50_SCD_QUEUE_CTX_REG1_SUPER_CREDIT_MSK (0xFF000000) | ||
530 | #define IWL50_SCD_QUEUE_CTX_REG2_WIN_SIZE_POS (0) | ||
531 | #define IWL50_SCD_QUEUE_CTX_REG2_WIN_SIZE_MSK (0x0000007F) | ||
532 | #define IWL50_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_POS (16) | ||
533 | #define IWL50_SCD_QUEUE_CTX_REG2_FRAME_LIMIT_MSK (0x007F0000) | ||
534 | |||
535 | #define IWL50_SCD_CONTEXT_DATA_OFFSET (0x600) | ||
536 | #define IWL50_SCD_TX_STTS_BITMAP_OFFSET (0x7B1) | ||
537 | #define IWL50_SCD_TRANSLATE_TBL_OFFSET (0x7E0) | ||
538 | |||
539 | #define IWL50_SCD_CONTEXT_QUEUE_OFFSET(x)\ | ||
540 | (IWL50_SCD_CONTEXT_DATA_OFFSET + ((x) * 8)) | ||
541 | |||
542 | #define IWL50_SCD_TRANSLATE_TBL_OFFSET_QUEUE(x) \ | ||
543 | ((IWL50_SCD_TRANSLATE_TBL_OFFSET + ((x) * 2)) & 0xfffc) | ||
544 | |||
545 | #define IWL50_SCD_QUEUECHAIN_SEL_ALL(x) (((1<<(x)) - 1) &\ | ||
546 | (~(1<<IWL_CMD_QUEUE_NUM))) | ||
547 | |||
520 | #define IWL50_SCD_BASE (PRPH_BASE + 0xa02c00) | 548 | #define IWL50_SCD_BASE (PRPH_BASE + 0xa02c00) |
521 | 549 | ||
522 | #define IWL50_SCD_SRAM_BASE_ADDR (IWL50_SCD_BASE + 0x0) | 550 | #define IWL50_SCD_SRAM_BASE_ADDR (IWL50_SCD_BASE + 0x0) |