diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2007-10-25 05:15:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:03:19 -0500 |
commit | 7088310908268eb043b66811b1bb255f3b0cb8fc (patch) | |
tree | 37e4f30fbace8f11940e39361c96d447d964bdba /drivers/net/wireless/iwlwifi | |
parent | 67dc320d4719501a0a10d222a670f5a59660505b (diff) |
iwlwifi: move 3945 SCD registers to iwl-prph.h
This patch moves 3945 SCD registers to iwl-prph.h. These registers
are assigned from the periphery bus
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 16 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-prph.h | 12 |
2 files changed, 20 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 154f2a258db2..aec564d976a5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -805,18 +805,18 @@ static int iwl3945_tx_reset(struct iwl_priv *priv) | |||
805 | } | 805 | } |
806 | 806 | ||
807 | /* bypass mode */ | 807 | /* bypass mode */ |
808 | iwl_write_prph(priv, SCD_MODE_REG, 0x2); | 808 | iwl_write_prph(priv, ALM_SCD_MODE_REG, 0x2); |
809 | 809 | ||
810 | /* RA 0 is active */ | 810 | /* RA 0 is active */ |
811 | iwl_write_prph(priv, SCD_ARASTAT_REG, 0x01); | 811 | iwl_write_prph(priv, ALM_SCD_ARASTAT_REG, 0x01); |
812 | 812 | ||
813 | /* all 6 fifo are active */ | 813 | /* all 6 fifo are active */ |
814 | iwl_write_prph(priv, SCD_TXFACT_REG, 0x3f); | 814 | iwl_write_prph(priv, ALM_SCD_TXFACT_REG, 0x3f); |
815 | 815 | ||
816 | iwl_write_prph(priv, SCD_SBYP_MODE_1_REG, 0x010000); | 816 | iwl_write_prph(priv, ALM_SCD_SBYP_MODE_1_REG, 0x010000); |
817 | iwl_write_prph(priv, SCD_SBYP_MODE_2_REG, 0x030002); | 817 | iwl_write_prph(priv, ALM_SCD_SBYP_MODE_2_REG, 0x030002); |
818 | iwl_write_prph(priv, SCD_TXF4MF_REG, 0x000004); | 818 | iwl_write_prph(priv, ALM_SCD_TXF4MF_REG, 0x000004); |
819 | iwl_write_prph(priv, SCD_TXF5MF_REG, 0x000005); | 819 | iwl_write_prph(priv, ALM_SCD_TXF5MF_REG, 0x000005); |
820 | 820 | ||
821 | iwl_write_direct32(priv, FH_TSSR_CBB_BASE, | 821 | iwl_write_direct32(priv, FH_TSSR_CBB_BASE, |
822 | priv->hw_setting.shared_phys); | 822 | priv->hw_setting.shared_phys); |
@@ -1044,7 +1044,7 @@ void iwl_hw_txq_ctx_stop(struct iwl_priv *priv) | |||
1044 | } | 1044 | } |
1045 | 1045 | ||
1046 | /* stop SCD */ | 1046 | /* stop SCD */ |
1047 | iwl_write_prph(priv, SCD_MODE_REG, 0); | 1047 | iwl_write_prph(priv, ALM_SCD_MODE_REG, 0); |
1048 | 1048 | ||
1049 | /* reset TFD queues */ | 1049 | /* reset TFD queues */ |
1050 | for (queue = TFD_QUEUE_MIN; queue < TFD_QUEUE_MAX; queue++) { | 1050 | for (queue = TFD_QUEUE_MIN; queue < TFD_QUEUE_MAX; queue++) { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-prph.h b/drivers/net/wireless/iwlwifi/iwl-prph.h index 9639832ad0ff..ee4af3f04db3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-prph.h +++ b/drivers/net/wireless/iwlwifi/iwl-prph.h | |||
@@ -225,6 +225,18 @@ | |||
225 | #define BSM_SRAM_LOWER_BOUND (PRPH_BASE + 0x3800) | 225 | #define BSM_SRAM_LOWER_BOUND (PRPH_BASE + 0x3800) |
226 | #define BSM_SRAM_SIZE (1024) /* bytes */ | 226 | #define BSM_SRAM_SIZE (1024) /* bytes */ |
227 | 227 | ||
228 | /* ALM SCD */ | ||
229 | /* SCD (Scheduler) */ | ||
230 | #define ALM_SCD_BASE (PRPH_BASE + 0x2E00) | ||
231 | #define ALM_SCD_MODE_REG (ALM_SCD_BASE + 0x000) | ||
232 | #define ALM_SCD_ARASTAT_REG (ALM_SCD_BASE + 0x004) | ||
233 | #define ALM_SCD_TXFACT_REG (ALM_SCD_BASE + 0x010) | ||
234 | #define ALM_SCD_TXF4MF_REG (ALM_SCD_BASE + 0x014) | ||
235 | #define ALM_SCD_TXF5MF_REG (ALM_SCD_BASE + 0x020) | ||
236 | #define ALM_SCD_SBYP_MODE_1_REG (ALM_SCD_BASE + 0x02C) | ||
237 | #define ALM_SCD_SBYP_MODE_2_REG (ALM_SCD_BASE + 0x030) | ||
238 | |||
239 | |||
228 | /* 4965 SCD memory mapped registers */ | 240 | /* 4965 SCD memory mapped registers */ |
229 | #define KDR_SCD_BASE (PRPH_BASE + 0xa02c00) | 241 | #define KDR_SCD_BASE (PRPH_BASE + 0xa02c00) |
230 | 242 | ||