diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-12-18 21:37:01 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:58:50 -0500 |
commit | bddadf86fb284f237d6e2d3496772c8f5c68370e (patch) | |
tree | f605f0b6c8fd77c73feefe645f31e3f78bd91650 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | 7cbf0ba5193d1f3bb3caaa06668e22bc86776e41 (diff) |
iwlwifi: 3945 extract flow handler definitions into iwl-3945-fh.h
This patch moves 3945 definitions into iwl-3945-fh.h
It renames FH_ to FH39 to help inclusion of 3945 into iwlcore
framework
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 95d01984c80e..fee3e93ca564 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -48,6 +48,7 @@ | |||
48 | 48 | ||
49 | #include "iwl-3945-core.h" | 49 | #include "iwl-3945-core.h" |
50 | #include "iwl-3945.h" | 50 | #include "iwl-3945.h" |
51 | #include "iwl-3945-fh.h" | ||
51 | #include "iwl-helpers.h" | 52 | #include "iwl-helpers.h" |
52 | 53 | ||
53 | #ifdef CONFIG_IWL3945_DEBUG | 54 | #ifdef CONFIG_IWL3945_DEBUG |
@@ -3479,14 +3480,14 @@ int iwl3945_rx_queue_update_write_ptr(struct iwl3945_priv *priv, struct iwl3945_ | |||
3479 | goto exit_unlock; | 3480 | goto exit_unlock; |
3480 | 3481 | ||
3481 | /* Device expects a multiple of 8 */ | 3482 | /* Device expects a multiple of 8 */ |
3482 | iwl3945_write_direct32(priv, FH_RSCSR_CHNL0_WPTR, | 3483 | iwl3945_write_direct32(priv, FH39_RSCSR_CHNL0_WPTR, |
3483 | q->write & ~0x7); | 3484 | q->write & ~0x7); |
3484 | iwl3945_release_nic_access(priv); | 3485 | iwl3945_release_nic_access(priv); |
3485 | 3486 | ||
3486 | /* Else device is assumed to be awake */ | 3487 | /* Else device is assumed to be awake */ |
3487 | } else | 3488 | } else |
3488 | /* Device expects a multiple of 8 */ | 3489 | /* Device expects a multiple of 8 */ |
3489 | iwl3945_write32(priv, FH_RSCSR_CHNL0_WPTR, q->write & ~0x7); | 3490 | iwl3945_write32(priv, FH39_RSCSR_CHNL0_WPTR, q->write & ~0x7); |
3490 | 3491 | ||
3491 | 3492 | ||
3492 | q->need_update = 0; | 3493 | q->need_update = 0; |
@@ -4339,9 +4340,8 @@ static void iwl3945_irq_tasklet(struct iwl3945_priv *priv) | |||
4339 | 4340 | ||
4340 | iwl3945_write32(priv, CSR_FH_INT_STATUS, (1 << 6)); | 4341 | iwl3945_write32(priv, CSR_FH_INT_STATUS, (1 << 6)); |
4341 | if (!iwl3945_grab_nic_access(priv)) { | 4342 | if (!iwl3945_grab_nic_access(priv)) { |
4342 | iwl3945_write_direct32(priv, | 4343 | iwl3945_write_direct32(priv, FH39_TCSR_CREDIT |
4343 | FH_TCSR_CREDIT | 4344 | (FH39_SRVC_CHNL), 0x0); |
4344 | (ALM_FH_SRVC_CHNL), 0x0); | ||
4345 | iwl3945_release_nic_access(priv); | 4345 | iwl3945_release_nic_access(priv); |
4346 | } | 4346 | } |
4347 | handled |= CSR_INT_BIT_FH_TX; | 4347 | handled |= CSR_INT_BIT_FH_TX; |