diff options
author | Winkler, Tomas <tomas.winkler@intel.com> | 2008-11-07 12:58:39 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-21 11:07:22 -0500 |
commit | 8d86422a83d79e3d3241cf0f269fca0c2640bcee (patch) | |
tree | b9791deaa104a7254891d962dceb551864235ee0 /drivers/net/wireless/iwlwifi/iwl-5000.c | |
parent | 5c5aa3f13a50881b8f6e529e321bbefb5faec37b (diff) |
iwlwifi: move rx queue read pointer into rxq
This patch moves rx status/read registers into
iwl_rx_queue structures. This solution is more memory
hungry but is more structured and provides needed RX/TX
separation
Signed-off-by: Tomas Winkler <tomas.winkler@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/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 31e62a838ad4..e81000cdcbc5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -863,8 +863,6 @@ static int iwl5000_alloc_shared_mem(struct iwl_priv *priv) | |||
863 | 863 | ||
864 | memset(priv->shared_virt, 0, sizeof(struct iwl5000_shared)); | 864 | memset(priv->shared_virt, 0, sizeof(struct iwl5000_shared)); |
865 | 865 | ||
866 | priv->rb_closed_offset = offsetof(struct iwl5000_shared, rb_closed); | ||
867 | |||
868 | return 0; | 866 | return 0; |
869 | } | 867 | } |
870 | 868 | ||
@@ -877,12 +875,6 @@ static void iwl5000_free_shared_mem(struct iwl_priv *priv) | |||
877 | priv->shared_phys); | 875 | priv->shared_phys); |
878 | } | 876 | } |
879 | 877 | ||
880 | static int iwl5000_shared_mem_rx_idx(struct iwl_priv *priv) | ||
881 | { | ||
882 | struct iwl5000_shared *s = priv->shared_virt; | ||
883 | return le32_to_cpu(s->rb_closed) & 0xFFF; | ||
884 | } | ||
885 | |||
886 | /** | 878 | /** |
887 | * iwl5000_txq_update_byte_cnt_tbl - Set up entry in Tx byte-count array | 879 | * iwl5000_txq_update_byte_cnt_tbl - Set up entry in Tx byte-count array |
888 | */ | 880 | */ |
@@ -1460,7 +1452,6 @@ static struct iwl_lib_ops iwl5000_lib = { | |||
1460 | .set_hw_params = iwl5000_hw_set_hw_params, | 1452 | .set_hw_params = iwl5000_hw_set_hw_params, |
1461 | .alloc_shared_mem = iwl5000_alloc_shared_mem, | 1453 | .alloc_shared_mem = iwl5000_alloc_shared_mem, |
1462 | .free_shared_mem = iwl5000_free_shared_mem, | 1454 | .free_shared_mem = iwl5000_free_shared_mem, |
1463 | .shared_mem_rx_idx = iwl5000_shared_mem_rx_idx, | ||
1464 | .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl, | 1455 | .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl, |
1465 | .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl, | 1456 | .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl, |
1466 | .txq_set_sched = iwl5000_txq_set_sched, | 1457 | .txq_set_sched = iwl5000_txq_set_sched, |