diff options
author | Christoph Hellwig <hch@lst.de> | 2007-10-25 05:15:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:03:23 -0500 |
commit | 416e1438d5a921046fda6fc5673d5f2c69841c06 (patch) | |
tree | d4fe655e8a4fc0ea0a01427b030e231795484d78 | |
parent | 80f3e024dcc14f30bff58179ad610f941642901b (diff) |
iwlwifi: mark more functions/variables static
mark more functions/variables static
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 17 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 29 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 25 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwlwifi.h | 20 |
6 files changed, 38 insertions, 58 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index aec564d976a5..faaba2927177 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -699,21 +699,6 @@ u8 iwl3945_sync_sta(struct iwl_priv *priv, int sta_id, u16 tx_rate, u8 flags) | |||
699 | return sta_id; | 699 | return sta_id; |
700 | } | 700 | } |
701 | 701 | ||
702 | void iwl_hw_card_show_info(struct iwl_priv *priv) | ||
703 | { | ||
704 | IWL_DEBUG_INFO("3945ABG HW Version %u.%u.%u\n", | ||
705 | ((priv->eeprom.board_revision >> 8) & 0x0F), | ||
706 | ((priv->eeprom.board_revision >> 8) >> 4), | ||
707 | (priv->eeprom.board_revision & 0x00FF)); | ||
708 | |||
709 | IWL_DEBUG_INFO("3945ABG PBA Number %.*s\n", | ||
710 | (int)sizeof(priv->eeprom.board_pba_number), | ||
711 | priv->eeprom.board_pba_number); | ||
712 | |||
713 | IWL_DEBUG_INFO("EEPROM_ANTENNA_SWITCH_TYPE is 0x%02X\n", | ||
714 | priv->eeprom.antenna_switch_type); | ||
715 | } | ||
716 | |||
717 | static int iwl3945_nic_set_pwr_src(struct iwl_priv *priv, int pwr_max) | 702 | static int iwl3945_nic_set_pwr_src(struct iwl_priv *priv, int pwr_max) |
718 | { | 703 | { |
719 | int rc; | 704 | int rc; |
@@ -1780,7 +1765,7 @@ void iwl3945_reg_txpower_periodic(struct iwl_priv *priv) | |||
1780 | &priv->thermal_periodic, REG_RECALIB_PERIOD * HZ); | 1765 | &priv->thermal_periodic, REG_RECALIB_PERIOD * HZ); |
1781 | } | 1766 | } |
1782 | 1767 | ||
1783 | void iwl3945_bg_reg_txpower_periodic(struct work_struct *work) | 1768 | static void iwl3945_bg_reg_txpower_periodic(struct work_struct *work) |
1784 | { | 1769 | { |
1785 | struct iwl_priv *priv = container_of(work, struct iwl_priv, | 1770 | struct iwl_priv *priv = container_of(work, struct iwl_priv, |
1786 | thermal_periodic.work); | 1771 | thermal_periodic.work); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.h b/drivers/net/wireless/iwlwifi/iwl-3945.h index 2bc5e9a79be5..adb5d672e711 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.h +++ b/drivers/net/wireless/iwlwifi/iwl-3945.h | |||
@@ -34,7 +34,6 @@ extern int iwl_eeprom_acquire_semaphore(struct iwl_priv *priv); | |||
34 | extern __le32 iwl3945_get_antenna_flags(const struct iwl_priv *priv); | 34 | extern __le32 iwl3945_get_antenna_flags(const struct iwl_priv *priv); |
35 | extern int iwl3945_init_hw_rate_table(struct iwl_priv *priv); | 35 | extern int iwl3945_init_hw_rate_table(struct iwl_priv *priv); |
36 | extern void iwl3945_reg_txpower_periodic(struct iwl_priv *priv); | 36 | extern void iwl3945_reg_txpower_periodic(struct iwl_priv *priv); |
37 | extern void iwl3945_bg_reg_txpower_periodic(struct work_struct *work); | ||
38 | extern int iwl3945_txpower_set_from_eeprom(struct iwl_priv *priv); | 37 | extern int iwl3945_txpower_set_from_eeprom(struct iwl_priv *priv); |
39 | extern u8 iwl3945_sync_sta(struct iwl_priv *priv, int sta_id, | 38 | extern u8 iwl3945_sync_sta(struct iwl_priv *priv, int sta_id, |
40 | u16 tx_rate, u8 flags); | 39 | u16 tx_rate, u8 flags); |
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index f4113058188a..28f7aa802fde 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -43,6 +43,8 @@ | |||
43 | #include "iwl-4965.h" | 43 | #include "iwl-4965.h" |
44 | #include "iwl-helpers.h" | 44 | #include "iwl-helpers.h" |
45 | 45 | ||
46 | static void iwl_hw_card_show_info(struct iwl_priv *priv); | ||
47 | |||
46 | #define IWL_DECLARE_RATE_INFO(r, s, ip, in, rp, rn, pp, np) \ | 48 | #define IWL_DECLARE_RATE_INFO(r, s, ip, in, rp, rn, pp, np) \ |
47 | [IWL_RATE_##r##M_INDEX] = { IWL_RATE_##r##M_PLCP, \ | 49 | [IWL_RATE_##r##M_INDEX] = { IWL_RATE_##r##M_PLCP, \ |
48 | IWL_RATE_SISO_##s##M_PLCP, \ | 50 | IWL_RATE_SISO_##s##M_PLCP, \ |
@@ -2744,7 +2746,7 @@ int iwl_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, void *ptr, | |||
2744 | return 0; | 2746 | return 0; |
2745 | } | 2747 | } |
2746 | 2748 | ||
2747 | void iwl_hw_card_show_info(struct iwl_priv *priv) | 2749 | static void iwl_hw_card_show_info(struct iwl_priv *priv) |
2748 | { | 2750 | { |
2749 | u16 hw_version = priv->eeprom.board_revision_4965; | 2751 | u16 hw_version = priv->eeprom.board_revision_4965; |
2750 | 2752 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 68f6b8bc4dd9..3cccb3db6ff7 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -66,6 +66,9 @@ | |||
66 | u32 iwl_debug_level; | 66 | u32 iwl_debug_level; |
67 | #endif | 67 | #endif |
68 | 68 | ||
69 | static int iwl_tx_queue_update_write_ptr(struct iwl_priv *priv, | ||
70 | struct iwl_tx_queue *txq); | ||
71 | |||
69 | /****************************************************************************** | 72 | /****************************************************************************** |
70 | * | 73 | * |
71 | * module boiler plate | 74 | * module boiler plate |
@@ -73,12 +76,12 @@ u32 iwl_debug_level; | |||
73 | ******************************************************************************/ | 76 | ******************************************************************************/ |
74 | 77 | ||
75 | /* module parameters */ | 78 | /* module parameters */ |
76 | int iwl_param_disable_hw_scan; | 79 | static int iwl_param_disable_hw_scan; |
77 | int iwl_param_debug; | 80 | static int iwl_param_debug; |
78 | int iwl_param_disable; /* def: enable radio */ | 81 | static int iwl_param_disable; /* def: enable radio */ |
79 | int iwl_param_antenna; /* def: 0 = both antennas (use diversity) */ | 82 | static int iwl_param_antenna; /* def: 0 = both antennas (use diversity) */ |
80 | int iwl_param_hwcrypto; /* def: using software encryption */ | 83 | int iwl_param_hwcrypto; /* def: using software encryption */ |
81 | int iwl_param_qos_enable = 1; | 84 | static int iwl_param_qos_enable = 1; |
82 | int iwl_param_queues_num = IWL_MAX_NUM_QUEUES; | 85 | int iwl_param_queues_num = IWL_MAX_NUM_QUEUES; |
83 | 86 | ||
84 | /* | 87 | /* |
@@ -116,7 +119,7 @@ MODULE_VERSION(DRV_VERSION); | |||
116 | MODULE_AUTHOR(DRV_COPYRIGHT); | 119 | MODULE_AUTHOR(DRV_COPYRIGHT); |
117 | MODULE_LICENSE("GPL"); | 120 | MODULE_LICENSE("GPL"); |
118 | 121 | ||
119 | __le16 *ieee80211_get_qos_ctrl(struct ieee80211_hdr *hdr) | 122 | static __le16 *ieee80211_get_qos_ctrl(struct ieee80211_hdr *hdr) |
120 | { | 123 | { |
121 | u16 fc = le16_to_cpu(hdr->frame_control); | 124 | u16 fc = le16_to_cpu(hdr->frame_control); |
122 | int hdr_len = ieee80211_get_hdrlen(fc); | 125 | int hdr_len = ieee80211_get_hdrlen(fc); |
@@ -694,7 +697,7 @@ static int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | |||
694 | return ret ? ret : idx; | 697 | return ret ? ret : idx; |
695 | } | 698 | } |
696 | 699 | ||
697 | int iwl_send_cmd_async(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | 700 | static int iwl_send_cmd_async(struct iwl_priv *priv, struct iwl_host_cmd *cmd) |
698 | { | 701 | { |
699 | int ret; | 702 | int ret; |
700 | 703 | ||
@@ -718,7 +721,7 @@ int iwl_send_cmd_async(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | |||
718 | return 0; | 721 | return 0; |
719 | } | 722 | } |
720 | 723 | ||
721 | int iwl_send_cmd_sync(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | 724 | static int iwl_send_cmd_sync(struct iwl_priv *priv, struct iwl_host_cmd *cmd) |
722 | { | 725 | { |
723 | int cmd_idx; | 726 | int cmd_idx; |
724 | int ret; | 727 | int ret; |
@@ -2200,7 +2203,7 @@ int iwl_is_network_packet(struct iwl_priv *priv, struct ieee80211_hdr *header) | |||
2200 | 2203 | ||
2201 | #define TX_STATUS_ENTRY(x) case TX_STATUS_FAIL_ ## x: return #x | 2204 | #define TX_STATUS_ENTRY(x) case TX_STATUS_FAIL_ ## x: return #x |
2202 | 2205 | ||
2203 | const char *iwl_get_tx_fail_reason(u32 status) | 2206 | static const char *iwl_get_tx_fail_reason(u32 status) |
2204 | { | 2207 | { |
2205 | switch (status & TX_STATUS_MSK) { | 2208 | switch (status & TX_STATUS_MSK) { |
2206 | case TX_STATUS_SUCCESS: | 2209 | case TX_STATUS_SUCCESS: |
@@ -3354,7 +3357,7 @@ static void iwl_txstatus_to_ieee(struct iwl_priv *priv, | |||
3354 | * new 'R' index need to be reclaimed. As result, some free space | 3357 | * new 'R' index need to be reclaimed. As result, some free space |
3355 | * forms. If there is enough free space (> low mark), wake Tx queue. | 3358 | * forms. If there is enough free space (> low mark), wake Tx queue. |
3356 | */ | 3359 | */ |
3357 | int iwl_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index) | 3360 | static int iwl_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index) |
3358 | { | 3361 | { |
3359 | struct iwl_tx_queue *txq = &priv->txq[txq_id]; | 3362 | struct iwl_tx_queue *txq = &priv->txq[txq_id]; |
3360 | struct iwl_queue *q = &txq->q; | 3363 | struct iwl_queue *q = &txq->q; |
@@ -3994,7 +3997,7 @@ static inline __le32 iwl_dma_addr2rbd_ptr(struct iwl_priv *priv, | |||
3994 | * also updates the memory address in the firmware to reference the new | 3997 | * also updates the memory address in the firmware to reference the new |
3995 | * target buffer. | 3998 | * target buffer. |
3996 | */ | 3999 | */ |
3997 | int iwl_rx_queue_restock(struct iwl_priv *priv) | 4000 | static int iwl_rx_queue_restock(struct iwl_priv *priv) |
3998 | { | 4001 | { |
3999 | struct iwl_rx_queue *rxq = &priv->rxq; | 4002 | struct iwl_rx_queue *rxq = &priv->rxq; |
4000 | struct list_head *element; | 4003 | struct list_head *element; |
@@ -4084,7 +4087,7 @@ void iwl_rx_replenish(void *data) | |||
4084 | * This free routine walks the list of POOL entries and if SKB is set to | 4087 | * This free routine walks the list of POOL entries and if SKB is set to |
4085 | * non NULL it is unmapped and freed | 4088 | * non NULL it is unmapped and freed |
4086 | */ | 4089 | */ |
4087 | void iwl_rx_queue_free(struct iwl_priv *priv, struct iwl_rx_queue *rxq) | 4090 | static void iwl_rx_queue_free(struct iwl_priv *priv, struct iwl_rx_queue *rxq) |
4088 | { | 4091 | { |
4089 | int i; | 4092 | int i; |
4090 | for (i = 0; i < RX_QUEUE_SIZE + RX_FREE_BUFFERS; i++) { | 4093 | for (i = 0; i < RX_QUEUE_SIZE + RX_FREE_BUFFERS; i++) { |
@@ -4327,7 +4330,7 @@ static void iwl_rx_handle(struct iwl_priv *priv) | |||
4327 | iwl_rx_queue_restock(priv); | 4330 | iwl_rx_queue_restock(priv); |
4328 | } | 4331 | } |
4329 | 4332 | ||
4330 | int iwl_tx_queue_update_write_ptr(struct iwl_priv *priv, | 4333 | static int iwl_tx_queue_update_write_ptr(struct iwl_priv *priv, |
4331 | struct iwl_tx_queue *txq) | 4334 | struct iwl_tx_queue *txq) |
4332 | { | 4335 | { |
4333 | u32 reg = 0; | 4336 | u32 reg = 0; |
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index aa45ebabe84b..0e46ffde22a7 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -66,6 +66,9 @@ | |||
66 | u32 iwl_debug_level; | 66 | u32 iwl_debug_level; |
67 | #endif | 67 | #endif |
68 | 68 | ||
69 | static int iwl_tx_queue_update_write_ptr(struct iwl_priv *priv, | ||
70 | struct iwl_tx_queue *txq); | ||
71 | |||
69 | /****************************************************************************** | 72 | /****************************************************************************** |
70 | * | 73 | * |
71 | * module boiler plate | 74 | * module boiler plate |
@@ -73,12 +76,12 @@ u32 iwl_debug_level; | |||
73 | ******************************************************************************/ | 76 | ******************************************************************************/ |
74 | 77 | ||
75 | /* module parameters */ | 78 | /* module parameters */ |
76 | int iwl_param_disable_hw_scan; | 79 | static int iwl_param_disable_hw_scan; |
77 | int iwl_param_debug; | 80 | static int iwl_param_debug; |
78 | int iwl_param_disable; /* def: enable radio */ | 81 | static int iwl_param_disable; /* def: enable radio */ |
79 | int iwl_param_antenna; /* def: 0 = both antennas (use diversity) */ | 82 | static int iwl_param_antenna; /* def: 0 = both antennas (use diversity) */ |
80 | int iwl_param_hwcrypto; /* def: using software encryption */ | 83 | int iwl_param_hwcrypto; /* def: using software encryption */ |
81 | int iwl_param_qos_enable = 1; | 84 | static int iwl_param_qos_enable = 1; |
82 | int iwl_param_queues_num = IWL_MAX_NUM_QUEUES; | 85 | int iwl_param_queues_num = IWL_MAX_NUM_QUEUES; |
83 | 86 | ||
84 | /* | 87 | /* |
@@ -692,7 +695,7 @@ static int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | |||
692 | return ret ? ret : idx; | 695 | return ret ? ret : idx; |
693 | } | 696 | } |
694 | 697 | ||
695 | int iwl_send_cmd_async(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | 698 | static int iwl_send_cmd_async(struct iwl_priv *priv, struct iwl_host_cmd *cmd) |
696 | { | 699 | { |
697 | int ret; | 700 | int ret; |
698 | 701 | ||
@@ -716,7 +719,7 @@ int iwl_send_cmd_async(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | |||
716 | return 0; | 719 | return 0; |
717 | } | 720 | } |
718 | 721 | ||
719 | int iwl_send_cmd_sync(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | 722 | static int iwl_send_cmd_sync(struct iwl_priv *priv, struct iwl_host_cmd *cmd) |
720 | { | 723 | { |
721 | int cmd_idx; | 724 | int cmd_idx; |
722 | int ret; | 725 | int ret; |
@@ -2281,7 +2284,7 @@ int iwl_is_network_packet(struct iwl_priv *priv, struct ieee80211_hdr *header) | |||
2281 | 2284 | ||
2282 | #define TX_STATUS_ENTRY(x) case TX_STATUS_FAIL_ ## x: return #x | 2285 | #define TX_STATUS_ENTRY(x) case TX_STATUS_FAIL_ ## x: return #x |
2283 | 2286 | ||
2284 | const char *iwl_get_tx_fail_reason(u32 status) | 2287 | static const char *iwl_get_tx_fail_reason(u32 status) |
2285 | { | 2288 | { |
2286 | switch (status & TX_STATUS_MSK) { | 2289 | switch (status & TX_STATUS_MSK) { |
2287 | case TX_STATUS_SUCCESS: | 2290 | case TX_STATUS_SUCCESS: |
@@ -4321,7 +4324,7 @@ static inline __le32 iwl_dma_addr2rbd_ptr(struct iwl_priv *priv, | |||
4321 | * also updates the memory address in the firmware to reference the new | 4324 | * also updates the memory address in the firmware to reference the new |
4322 | * target buffer. | 4325 | * target buffer. |
4323 | */ | 4326 | */ |
4324 | int iwl_rx_queue_restock(struct iwl_priv *priv) | 4327 | static int iwl_rx_queue_restock(struct iwl_priv *priv) |
4325 | { | 4328 | { |
4326 | struct iwl_rx_queue *rxq = &priv->rxq; | 4329 | struct iwl_rx_queue *rxq = &priv->rxq; |
4327 | struct list_head *element; | 4330 | struct list_head *element; |
@@ -4411,7 +4414,7 @@ void iwl_rx_replenish(void *data) | |||
4411 | * This free routine walks the list of POOL entries and if SKB is set to | 4414 | * This free routine walks the list of POOL entries and if SKB is set to |
4412 | * non NULL it is unmapped and freed | 4415 | * non NULL it is unmapped and freed |
4413 | */ | 4416 | */ |
4414 | void iwl_rx_queue_free(struct iwl_priv *priv, struct iwl_rx_queue *rxq) | 4417 | static void iwl_rx_queue_free(struct iwl_priv *priv, struct iwl_rx_queue *rxq) |
4415 | { | 4418 | { |
4416 | int i; | 4419 | int i; |
4417 | for (i = 0; i < RX_QUEUE_SIZE + RX_FREE_BUFFERS; i++) { | 4420 | for (i = 0; i < RX_QUEUE_SIZE + RX_FREE_BUFFERS; i++) { |
@@ -4657,7 +4660,7 @@ static void iwl_rx_handle(struct iwl_priv *priv) | |||
4657 | iwl_rx_queue_restock(priv); | 4660 | iwl_rx_queue_restock(priv); |
4658 | } | 4661 | } |
4659 | 4662 | ||
4660 | int iwl_tx_queue_update_write_ptr(struct iwl_priv *priv, | 4663 | static int iwl_tx_queue_update_write_ptr(struct iwl_priv *priv, |
4661 | struct iwl_tx_queue *txq) | 4664 | struct iwl_tx_queue *txq) |
4662 | { | 4665 | { |
4663 | u32 reg = 0; | 4666 | u32 reg = 0; |
diff --git a/drivers/net/wireless/iwlwifi/iwlwifi.h b/drivers/net/wireless/iwlwifi/iwlwifi.h index 90716006beac..96558cc60ae6 100644 --- a/drivers/net/wireless/iwlwifi/iwlwifi.h +++ b/drivers/net/wireless/iwlwifi/iwlwifi.h | |||
@@ -76,13 +76,7 @@ extern struct pci_device_id iwl_hw_card_ids[]; | |||
76 | #define IWL_NOISE_MEAS_NOT_AVAILABLE (-127) | 76 | #define IWL_NOISE_MEAS_NOT_AVAILABLE (-127) |
77 | 77 | ||
78 | /* Module parameters accessible from iwl-*.c */ | 78 | /* Module parameters accessible from iwl-*.c */ |
79 | extern int iwl_param_disable_hw_scan; | ||
80 | extern int iwl_param_debug; | ||
81 | extern int iwl_param_mode; | ||
82 | extern int iwl_param_disable; | ||
83 | extern int iwl_param_antenna; | ||
84 | extern int iwl_param_hwcrypto; | 79 | extern int iwl_param_hwcrypto; |
85 | extern int iwl_param_qos_enable; | ||
86 | extern int iwl_param_queues_num; | 80 | extern int iwl_param_queues_num; |
87 | 81 | ||
88 | enum iwl_antenna { | 82 | enum iwl_antenna { |
@@ -574,7 +568,6 @@ struct iwl_driver_hw_info { | |||
574 | struct iwl_addsta_cmd; | 568 | struct iwl_addsta_cmd; |
575 | extern int iwl_send_add_station(struct iwl_priv *priv, | 569 | extern int iwl_send_add_station(struct iwl_priv *priv, |
576 | struct iwl_addsta_cmd *sta, u8 flags); | 570 | struct iwl_addsta_cmd *sta, u8 flags); |
577 | extern const char *iwl_get_tx_fail_reason(u32 status); | ||
578 | extern u8 iwl_add_station(struct iwl_priv *priv, const u8 *bssid, | 571 | extern u8 iwl_add_station(struct iwl_priv *priv, const u8 *bssid, |
579 | int is_ap, u8 flags); | 572 | int is_ap, u8 flags); |
580 | extern int iwl_is_network_packet(struct iwl_priv *priv, | 573 | extern int iwl_is_network_packet(struct iwl_priv *priv, |
@@ -591,8 +584,6 @@ static inline void iwl_report_frame(struct iwl_priv *priv, | |||
591 | struct ieee80211_hdr *header, | 584 | struct ieee80211_hdr *header, |
592 | int group100) {} | 585 | int group100) {} |
593 | #endif | 586 | #endif |
594 | extern int iwl_tx_queue_update_write_ptr(struct iwl_priv *priv, | ||
595 | struct iwl_tx_queue *txq); | ||
596 | extern void iwl_handle_data_packet_monitor(struct iwl_priv *priv, | 587 | extern void iwl_handle_data_packet_monitor(struct iwl_priv *priv, |
597 | struct iwl_rx_mem_buffer *rxb, | 588 | struct iwl_rx_mem_buffer *rxb, |
598 | void *data, short len, | 589 | void *data, short len, |
@@ -600,7 +591,6 @@ extern void iwl_handle_data_packet_monitor(struct iwl_priv *priv, | |||
600 | u16 phy_flags); | 591 | u16 phy_flags); |
601 | extern int is_duplicate_packet(struct iwl_priv *priv, struct ieee80211_hdr | 592 | extern int is_duplicate_packet(struct iwl_priv *priv, struct ieee80211_hdr |
602 | *header); | 593 | *header); |
603 | extern void iwl_rx_queue_free(struct iwl_priv *priv, struct iwl_rx_queue *rxq); | ||
604 | extern int iwl_rx_queue_alloc(struct iwl_priv *priv); | 594 | extern int iwl_rx_queue_alloc(struct iwl_priv *priv); |
605 | extern void iwl_rx_queue_reset(struct iwl_priv *priv, | 595 | extern void iwl_rx_queue_reset(struct iwl_priv *priv, |
606 | struct iwl_rx_queue *rxq); | 596 | struct iwl_rx_queue *rxq); |
@@ -608,15 +598,10 @@ extern int iwl_calc_db_from_ratio(int sig_ratio); | |||
608 | extern int iwl_calc_sig_qual(int rssi_dbm, int noise_dbm); | 598 | extern int iwl_calc_sig_qual(int rssi_dbm, int noise_dbm); |
609 | extern int iwl_tx_queue_init(struct iwl_priv *priv, | 599 | extern int iwl_tx_queue_init(struct iwl_priv *priv, |
610 | struct iwl_tx_queue *txq, int count, u32 id); | 600 | struct iwl_tx_queue *txq, int count, u32 id); |
611 | extern int iwl_rx_queue_restock(struct iwl_priv *priv); | ||
612 | extern void iwl_rx_replenish(void *data); | 601 | extern void iwl_rx_replenish(void *data); |
613 | extern void iwl_tx_queue_free(struct iwl_priv *priv, struct iwl_tx_queue *txq); | 602 | extern void iwl_tx_queue_free(struct iwl_priv *priv, struct iwl_tx_queue *txq); |
614 | extern int iwl_send_cmd_pdu(struct iwl_priv *priv, u8 id, u16 len, | 603 | extern int iwl_send_cmd_pdu(struct iwl_priv *priv, u8 id, u16 len, |
615 | const void *data); | 604 | const void *data); |
616 | extern int __must_check iwl_send_cmd_async(struct iwl_priv *priv, | ||
617 | struct iwl_host_cmd *cmd); | ||
618 | extern int __must_check iwl_send_cmd_sync(struct iwl_priv *priv, | ||
619 | struct iwl_host_cmd *cmd); | ||
620 | extern int __must_check iwl_send_cmd(struct iwl_priv *priv, | 605 | extern int __must_check iwl_send_cmd(struct iwl_priv *priv, |
621 | struct iwl_host_cmd *cmd); | 606 | struct iwl_host_cmd *cmd); |
622 | extern unsigned int iwl_fill_beacon_frame(struct iwl_priv *priv, | 607 | extern unsigned int iwl_fill_beacon_frame(struct iwl_priv *priv, |
@@ -628,7 +613,9 @@ extern int iwl_send_statistics_request(struct iwl_priv *priv); | |||
628 | extern void iwl_set_decrypted_flag(struct iwl_priv *priv, struct sk_buff *skb, | 613 | extern void iwl_set_decrypted_flag(struct iwl_priv *priv, struct sk_buff *skb, |
629 | u32 decrypt_res, | 614 | u32 decrypt_res, |
630 | struct ieee80211_rx_status *stats); | 615 | struct ieee80211_rx_status *stats); |
616 | #if IWL == 4965 | ||
631 | extern __le16 *ieee80211_get_qos_ctrl(struct ieee80211_hdr *hdr); | 617 | extern __le16 *ieee80211_get_qos_ctrl(struct ieee80211_hdr *hdr); |
618 | #endif | ||
632 | 619 | ||
633 | extern const u8 BROADCAST_ADDR[ETH_ALEN]; | 620 | extern const u8 BROADCAST_ADDR[ETH_ALEN]; |
634 | 621 | ||
@@ -666,7 +653,6 @@ extern void iwl_hw_cancel_deferred_work(struct iwl_priv *priv); | |||
666 | extern int iwl_hw_rxq_stop(struct iwl_priv *priv); | 653 | extern int iwl_hw_rxq_stop(struct iwl_priv *priv); |
667 | extern int iwl_hw_set_hw_setting(struct iwl_priv *priv); | 654 | extern int iwl_hw_set_hw_setting(struct iwl_priv *priv); |
668 | extern int iwl_hw_nic_init(struct iwl_priv *priv); | 655 | extern int iwl_hw_nic_init(struct iwl_priv *priv); |
669 | extern void iwl_hw_card_show_info(struct iwl_priv *priv); | ||
670 | extern int iwl_hw_nic_stop_master(struct iwl_priv *priv); | 656 | extern int iwl_hw_nic_stop_master(struct iwl_priv *priv); |
671 | extern void iwl_hw_txq_ctx_free(struct iwl_priv *priv); | 657 | extern void iwl_hw_txq_ctx_free(struct iwl_priv *priv); |
672 | extern void iwl_hw_txq_ctx_stop(struct iwl_priv *priv); | 658 | extern void iwl_hw_txq_ctx_stop(struct iwl_priv *priv); |
@@ -703,5 +689,7 @@ extern int iwl4965_get_temperature(const struct iwl_priv *priv); | |||
703 | extern u8 iwl_hw_find_station(struct iwl_priv *priv, const u8 *bssid); | 689 | extern u8 iwl_hw_find_station(struct iwl_priv *priv, const u8 *bssid); |
704 | 690 | ||
705 | extern int iwl_hw_channel_switch(struct iwl_priv *priv, u16 channel); | 691 | extern int iwl_hw_channel_switch(struct iwl_priv *priv, u16 channel); |
692 | #if IWL == 4965 | ||
706 | extern int iwl_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index); | 693 | extern int iwl_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index); |
707 | #endif | 694 | #endif |
695 | #endif | ||