aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945.h
diff options
context:
space:
mode:
authorAbhijeet Kolekar <abhijeet.kolekar@intel.com>2008-12-18 21:37:24 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:59:08 -0500
commit6100b58806e6307f959af79334ac553825400242 (patch)
treebed0cda1758c177dc698f148cd74fbda852c31c7 /drivers/net/wireless/iwlwifi/iwl-3945.h
parentd2bf55839ad77486a02ec32f8411f432621da110 (diff)
iwl3945: use iwl_rx_mem_buffer
The patch replaces iwl3945_rx_mem_buffer with iwl_rx_mem_buffer. Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@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/iwl-3945.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.h b/drivers/net/wireless/iwlwifi/iwl-3945.h
index e794cd56f612..410a8bd0d4fb 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.h
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.h
@@ -106,12 +106,6 @@ enum iwl3945_antenna {
106#define DEFAULT_SHORT_RETRY_LIMIT 7U 106#define DEFAULT_SHORT_RETRY_LIMIT 7U
107#define DEFAULT_LONG_RETRY_LIMIT 4U 107#define DEFAULT_LONG_RETRY_LIMIT 4U
108 108
109struct iwl3945_rx_mem_buffer {
110 dma_addr_t dma_addr;
111 struct sk_buff *skb;
112 struct list_head list;
113};
114
115int iwl3945_x2_queue_used(const struct iwl_queue *q, int i); 109int iwl3945_x2_queue_used(const struct iwl_queue *q, int i);
116 110
117#define MAX_NUM_OF_TBS (20) 111#define MAX_NUM_OF_TBS (20)
@@ -229,13 +223,13 @@ struct iwl3945_host_cmd {
229 * @rx_used: List of Rx buffers with no SKB 223 * @rx_used: List of Rx buffers with no SKB
230 * @need_update: flag to indicate we need to update read/write index 224 * @need_update: flag to indicate we need to update read/write index
231 * 225 *
232 * NOTE: rx_free and rx_used are used as a FIFO for iwl3945_rx_mem_buffers 226 * NOTE: rx_free and rx_used are used as a FIFO for iwl_rx_mem_buffers
233 */ 227 */
234struct iwl3945_rx_queue { 228struct iwl3945_rx_queue {
235 __le32 *bd; 229 __le32 *bd;
236 dma_addr_t dma_addr; 230 dma_addr_t dma_addr;
237 struct iwl3945_rx_mem_buffer pool[RX_QUEUE_SIZE + RX_FREE_BUFFERS]; 231 struct iwl_rx_mem_buffer pool[RX_QUEUE_SIZE + RX_FREE_BUFFERS];
238 struct iwl3945_rx_mem_buffer *queue[RX_QUEUE_SIZE]; 232 struct iwl_rx_mem_buffer *queue[RX_QUEUE_SIZE];
239 u32 processed; 233 u32 processed;
240 u32 read; 234 u32 read;
241 u32 write; 235 u32 write;
@@ -409,7 +403,7 @@ extern void iwl3945_hw_build_tx_cmd_rate(struct iwl3945_priv *priv,
409extern int iwl3945_hw_reg_send_txpower(struct iwl3945_priv *priv); 403extern int iwl3945_hw_reg_send_txpower(struct iwl3945_priv *priv);
410extern int iwl3945_hw_reg_set_txpower(struct iwl3945_priv *priv, s8 power); 404extern int iwl3945_hw_reg_set_txpower(struct iwl3945_priv *priv, s8 power);
411extern void iwl3945_hw_rx_statistics(struct iwl3945_priv *priv, 405extern void iwl3945_hw_rx_statistics(struct iwl3945_priv *priv,
412 struct iwl3945_rx_mem_buffer *rxb); 406 struct iwl_rx_mem_buffer *rxb);
413extern void iwl3945_disable_events(struct iwl3945_priv *priv); 407extern void iwl3945_disable_events(struct iwl3945_priv *priv);
414extern int iwl4965_get_temperature(const struct iwl3945_priv *priv); 408extern int iwl4965_get_temperature(const struct iwl3945_priv *priv);
415 409
@@ -464,7 +458,7 @@ struct iwl3945_priv {
464 int alloc_rxb_skb; 458 int alloc_rxb_skb;
465 459
466 void (*rx_handlers[REPLY_MAX])(struct iwl3945_priv *priv, 460 void (*rx_handlers[REPLY_MAX])(struct iwl3945_priv *priv,
467 struct iwl3945_rx_mem_buffer *rxb); 461 struct iwl_rx_mem_buffer *rxb);
468 462
469 struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS]; 463 struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS];
470 464