aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-03-12 19:58:50 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-03-25 16:41:47 -0400
commitc79dd5b5bc5a65822cdc9d571032c469ad7577d5 (patch)
tree9056b3470264641eb6d4f25fedef5cde5f1c069d /drivers/net/wireless/iwlwifi/iwl-4965.h
parent0a6857e70d577237bb1cd1c991e68e7d3b6f7c90 (diff)
iwlwifi: rename struct iwl4965_priv to struct iwl_priv
This patch renames iwl4965_priv to iwl_priv. iwl_priv will be shared by more hw. 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-4965.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.h128
1 files changed, 64 insertions, 64 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.h b/drivers/net/wireless/iwlwifi/iwl-4965.h
index 4426d0f85564..60353b2645d4 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.h
@@ -315,13 +315,13 @@ enum {
315}; 315};
316 316
317struct iwl4965_cmd; 317struct iwl4965_cmd;
318struct iwl4965_priv; 318struct iwl_priv;
319 319
320struct iwl4965_cmd_meta { 320struct iwl4965_cmd_meta {
321 struct iwl4965_cmd_meta *source; 321 struct iwl4965_cmd_meta *source;
322 union { 322 union {
323 struct sk_buff *skb; 323 struct sk_buff *skb;
324 int (*callback)(struct iwl4965_priv *priv, 324 int (*callback)(struct iwl_priv *priv,
325 struct iwl4965_cmd *cmd, struct sk_buff *skb); 325 struct iwl4965_cmd *cmd, struct sk_buff *skb);
326 } __attribute__ ((packed)) u; 326 } __attribute__ ((packed)) u;
327 327
@@ -634,40 +634,40 @@ struct iwl4965_driver_hw_info {
634 * 634 *
635 *****************************************************************************/ 635 *****************************************************************************/
636struct iwl4965_addsta_cmd; 636struct iwl4965_addsta_cmd;
637extern int iwl4965_send_add_station(struct iwl4965_priv *priv, 637extern int iwl4965_send_add_station(struct iwl_priv *priv,
638 struct iwl4965_addsta_cmd *sta, u8 flags); 638 struct iwl4965_addsta_cmd *sta, u8 flags);
639extern u8 iwl4965_add_station_flags(struct iwl4965_priv *priv, const u8 *addr, 639extern u8 iwl4965_add_station_flags(struct iwl_priv *priv, const u8 *addr,
640 int is_ap, u8 flags, void *ht_data); 640 int is_ap, u8 flags, void *ht_data);
641extern int iwl4965_is_network_packet(struct iwl4965_priv *priv, 641extern int iwl4965_is_network_packet(struct iwl_priv *priv,
642 struct ieee80211_hdr *header); 642 struct ieee80211_hdr *header);
643extern int iwl4965_power_init_handle(struct iwl4965_priv *priv); 643extern int iwl4965_power_init_handle(struct iwl_priv *priv);
644extern void iwl4965_handle_data_packet_monitor(struct iwl4965_priv *priv, 644extern void iwl4965_handle_data_packet_monitor(struct iwl_priv *priv,
645 struct iwl4965_rx_mem_buffer *rxb, 645 struct iwl4965_rx_mem_buffer *rxb,
646 void *data, short len, 646 void *data, short len,
647 struct ieee80211_rx_status *stats, 647 struct ieee80211_rx_status *stats,
648 u16 phy_flags); 648 u16 phy_flags);
649extern int iwl4965_is_duplicate_packet(struct iwl4965_priv *priv, 649extern int iwl4965_is_duplicate_packet(struct iwl_priv *priv,
650 struct ieee80211_hdr *header); 650 struct ieee80211_hdr *header);
651extern int iwl4965_rx_queue_alloc(struct iwl4965_priv *priv); 651extern int iwl4965_rx_queue_alloc(struct iwl_priv *priv);
652extern void iwl4965_rx_queue_reset(struct iwl4965_priv *priv, 652extern void iwl4965_rx_queue_reset(struct iwl_priv *priv,
653 struct iwl4965_rx_queue *rxq); 653 struct iwl4965_rx_queue *rxq);
654extern int iwl4965_calc_db_from_ratio(int sig_ratio); 654extern int iwl4965_calc_db_from_ratio(int sig_ratio);
655extern int iwl4965_calc_sig_qual(int rssi_dbm, int noise_dbm); 655extern int iwl4965_calc_sig_qual(int rssi_dbm, int noise_dbm);
656extern int iwl4965_tx_queue_init(struct iwl4965_priv *priv, 656extern int iwl4965_tx_queue_init(struct iwl_priv *priv,
657 struct iwl4965_tx_queue *txq, int count, u32 id); 657 struct iwl4965_tx_queue *txq, int count, u32 id);
658extern void iwl4965_rx_replenish(void *data); 658extern void iwl4965_rx_replenish(void *data);
659extern void iwl4965_tx_queue_free(struct iwl4965_priv *priv, struct iwl4965_tx_queue *txq); 659extern void iwl4965_tx_queue_free(struct iwl_priv *priv, struct iwl4965_tx_queue *txq);
660extern int iwl4965_send_cmd_pdu(struct iwl4965_priv *priv, u8 id, u16 len, 660extern int iwl4965_send_cmd_pdu(struct iwl_priv *priv, u8 id, u16 len,
661 const void *data); 661 const void *data);
662extern int __must_check iwl4965_send_cmd(struct iwl4965_priv *priv, 662extern int __must_check iwl4965_send_cmd(struct iwl_priv *priv,
663 struct iwl4965_host_cmd *cmd); 663 struct iwl4965_host_cmd *cmd);
664extern unsigned int iwl4965_fill_beacon_frame(struct iwl4965_priv *priv, 664extern unsigned int iwl4965_fill_beacon_frame(struct iwl_priv *priv,
665 struct ieee80211_hdr *hdr, 665 struct ieee80211_hdr *hdr,
666 const u8 *dest, int left); 666 const u8 *dest, int left);
667extern int iwl4965_rx_queue_update_write_ptr(struct iwl4965_priv *priv, 667extern int iwl4965_rx_queue_update_write_ptr(struct iwl_priv *priv,
668 struct iwl4965_rx_queue *q); 668 struct iwl4965_rx_queue *q);
669extern int iwl4965_send_statistics_request(struct iwl4965_priv *priv); 669extern int iwl4965_send_statistics_request(struct iwl_priv *priv);
670extern void iwl4965_set_decrypted_flag(struct iwl4965_priv *priv, struct sk_buff *skb, 670extern void iwl4965_set_decrypted_flag(struct iwl_priv *priv, struct sk_buff *skb,
671 u32 decrypt_res, 671 u32 decrypt_res,
672 struct ieee80211_rx_status *stats); 672 struct ieee80211_rx_status *stats);
673extern __le16 *ieee80211_get_qos_ctrl(struct ieee80211_hdr *hdr); 673extern __le16 *ieee80211_get_qos_ctrl(struct ieee80211_hdr *hdr);
@@ -678,7 +678,7 @@ extern const u8 iwl4965_broadcast_addr[ETH_ALEN];
678 * Currently used by iwl-3945-rs... look at restructuring so that it doesn't 678 * Currently used by iwl-3945-rs... look at restructuring so that it doesn't
679 * call this... todo... fix that. 679 * call this... todo... fix that.
680*/ 680*/
681extern u8 iwl4965_sync_station(struct iwl4965_priv *priv, int sta_id, 681extern u8 iwl4965_sync_station(struct iwl_priv *priv, int sta_id,
682 u16 tx_rate, u8 flags); 682 u16 tx_rate, u8 flags);
683 683
684/****************************************************************************** 684/******************************************************************************
@@ -697,36 +697,36 @@ extern u8 iwl4965_sync_station(struct iwl4965_priv *priv, int sta_id,
697 * iwl4965_mac_ <-- mac80211 callback 697 * iwl4965_mac_ <-- mac80211 callback
698 * 698 *
699 ****************************************************************************/ 699 ****************************************************************************/
700extern void iwl4965_hw_rx_handler_setup(struct iwl4965_priv *priv); 700extern void iwl4965_hw_rx_handler_setup(struct iwl_priv *priv);
701extern void iwl4965_hw_setup_deferred_work(struct iwl4965_priv *priv); 701extern void iwl4965_hw_setup_deferred_work(struct iwl_priv *priv);
702extern void iwl4965_hw_cancel_deferred_work(struct iwl4965_priv *priv); 702extern void iwl4965_hw_cancel_deferred_work(struct iwl_priv *priv);
703extern int iwl4965_hw_rxq_stop(struct iwl4965_priv *priv); 703extern int iwl4965_hw_rxq_stop(struct iwl_priv *priv);
704extern int iwl4965_hw_set_hw_setting(struct iwl4965_priv *priv); 704extern int iwl4965_hw_set_hw_setting(struct iwl_priv *priv);
705extern int iwl4965_hw_nic_init(struct iwl4965_priv *priv); 705extern int iwl4965_hw_nic_init(struct iwl_priv *priv);
706extern int iwl4965_hw_nic_stop_master(struct iwl4965_priv *priv); 706extern int iwl4965_hw_nic_stop_master(struct iwl_priv *priv);
707extern void iwl4965_hw_txq_ctx_free(struct iwl4965_priv *priv); 707extern void iwl4965_hw_txq_ctx_free(struct iwl_priv *priv);
708extern void iwl4965_hw_txq_ctx_stop(struct iwl4965_priv *priv); 708extern void iwl4965_hw_txq_ctx_stop(struct iwl_priv *priv);
709extern int iwl4965_hw_nic_reset(struct iwl4965_priv *priv); 709extern int iwl4965_hw_nic_reset(struct iwl_priv *priv);
710extern int iwl4965_hw_txq_attach_buf_to_tfd(struct iwl4965_priv *priv, void *tfd, 710extern int iwl4965_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, void *tfd,
711 dma_addr_t addr, u16 len); 711 dma_addr_t addr, u16 len);
712extern int iwl4965_hw_txq_free_tfd(struct iwl4965_priv *priv, struct iwl4965_tx_queue *txq); 712extern int iwl4965_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl4965_tx_queue *txq);
713extern int iwl4965_hw_get_temperature(struct iwl4965_priv *priv); 713extern int iwl4965_hw_get_temperature(struct iwl_priv *priv);
714extern int iwl4965_hw_tx_queue_init(struct iwl4965_priv *priv, 714extern int iwl4965_hw_tx_queue_init(struct iwl_priv *priv,
715 struct iwl4965_tx_queue *txq); 715 struct iwl4965_tx_queue *txq);
716extern unsigned int iwl4965_hw_get_beacon_cmd(struct iwl4965_priv *priv, 716extern unsigned int iwl4965_hw_get_beacon_cmd(struct iwl_priv *priv,
717 struct iwl4965_frame *frame, u8 rate); 717 struct iwl4965_frame *frame, u8 rate);
718extern int iwl4965_hw_get_rx_read(struct iwl4965_priv *priv); 718extern int iwl4965_hw_get_rx_read(struct iwl_priv *priv);
719extern void iwl4965_hw_build_tx_cmd_rate(struct iwl4965_priv *priv, 719extern void iwl4965_hw_build_tx_cmd_rate(struct iwl_priv *priv,
720 struct iwl4965_cmd *cmd, 720 struct iwl4965_cmd *cmd,
721 struct ieee80211_tx_control *ctrl, 721 struct ieee80211_tx_control *ctrl,
722 struct ieee80211_hdr *hdr, 722 struct ieee80211_hdr *hdr,
723 int sta_id, int tx_id); 723 int sta_id, int tx_id);
724extern int iwl4965_hw_reg_send_txpower(struct iwl4965_priv *priv); 724extern int iwl4965_hw_reg_send_txpower(struct iwl_priv *priv);
725extern int iwl4965_hw_reg_set_txpower(struct iwl4965_priv *priv, s8 power); 725extern int iwl4965_hw_reg_set_txpower(struct iwl_priv *priv, s8 power);
726extern void iwl4965_hw_rx_statistics(struct iwl4965_priv *priv, 726extern void iwl4965_hw_rx_statistics(struct iwl_priv *priv,
727 struct iwl4965_rx_mem_buffer *rxb); 727 struct iwl4965_rx_mem_buffer *rxb);
728extern void iwl4965_disable_events(struct iwl4965_priv *priv); 728extern void iwl4965_disable_events(struct iwl_priv *priv);
729extern int iwl4965_get_temperature(const struct iwl4965_priv *priv); 729extern int iwl4965_get_temperature(const struct iwl_priv *priv);
730 730
731/** 731/**
732 * iwl4965_hw_find_station - Find station id for a given BSSID 732 * iwl4965_hw_find_station - Find station id for a given BSSID
@@ -736,48 +736,48 @@ extern int iwl4965_get_temperature(const struct iwl4965_priv *priv);
736 * not yet been merged into a single common layer for managing the 736 * not yet been merged into a single common layer for managing the
737 * station tables. 737 * station tables.
738 */ 738 */
739extern u8 iwl4965_hw_find_station(struct iwl4965_priv *priv, const u8 *bssid); 739extern u8 iwl4965_hw_find_station(struct iwl_priv *priv, const u8 *bssid);
740 740
741extern int iwl4965_hw_channel_switch(struct iwl4965_priv *priv, u16 channel); 741extern int iwl4965_hw_channel_switch(struct iwl_priv *priv, u16 channel);
742extern int iwl4965_tx_queue_reclaim(struct iwl4965_priv *priv, int txq_id, int index); 742extern int iwl4965_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index);
743extern int iwl4965_queue_space(const struct iwl4965_queue *q); 743extern int iwl4965_queue_space(const struct iwl4965_queue *q);
744struct iwl4965_priv; 744struct iwl_priv;
745 745
746/* 746/*
747 * Forward declare iwl-4965.c functions for iwl-base.c 747 * Forward declare iwl-4965.c functions for iwl-base.c
748 */ 748 */
749extern int iwl4965_tx_queue_update_wr_ptr(struct iwl4965_priv *priv, 749extern int iwl4965_tx_queue_update_wr_ptr(struct iwl_priv *priv,
750 struct iwl4965_tx_queue *txq, 750 struct iwl4965_tx_queue *txq,
751 u16 byte_cnt); 751 u16 byte_cnt);
752extern void iwl4965_add_station(struct iwl4965_priv *priv, const u8 *addr, 752extern void iwl4965_add_station(struct iwl_priv *priv, const u8 *addr,
753 int is_ap); 753 int is_ap);
754extern void iwl4965_set_rxon_chain(struct iwl4965_priv *priv); 754extern void iwl4965_set_rxon_chain(struct iwl_priv *priv);
755extern int iwl4965_alive_notify(struct iwl4965_priv *priv); 755extern int iwl4965_alive_notify(struct iwl_priv *priv);
756extern void iwl4965_update_rate_scaling(struct iwl4965_priv *priv, u8 mode); 756extern void iwl4965_update_rate_scaling(struct iwl_priv *priv, u8 mode);
757extern void iwl4965_chain_noise_reset(struct iwl4965_priv *priv); 757extern void iwl4965_chain_noise_reset(struct iwl_priv *priv);
758extern void iwl4965_init_sensitivity(struct iwl4965_priv *priv, u8 flags, 758extern void iwl4965_init_sensitivity(struct iwl_priv *priv, u8 flags,
759 u8 force); 759 u8 force);
760extern int iwl4965_set_fat_chan_info(struct iwl4965_priv *priv, 760extern int iwl4965_set_fat_chan_info(struct iwl_priv *priv,
761 enum ieee80211_band band, 761 enum ieee80211_band band,
762 u16 channel, 762 u16 channel,
763 const struct iwl4965_eeprom_channel *eeprom_ch, 763 const struct iwl4965_eeprom_channel *eeprom_ch,
764 u8 fat_extension_channel); 764 u8 fat_extension_channel);
765extern void iwl4965_rf_kill_ct_config(struct iwl4965_priv *priv); 765extern void iwl4965_rf_kill_ct_config(struct iwl_priv *priv);
766extern void iwl4965_hwrate_to_tx_control(struct iwl4965_priv *priv, 766extern void iwl4965_hwrate_to_tx_control(struct iwl_priv *priv,
767 u32 rate_n_flags, 767 u32 rate_n_flags,
768 struct ieee80211_tx_control *control); 768 struct ieee80211_tx_control *control);
769 769
770#ifdef CONFIG_IWL4965_HT 770#ifdef CONFIG_IWL4965_HT
771void iwl4965_init_ht_hw_capab(struct ieee80211_ht_info *ht_info, 771void iwl4965_init_ht_hw_capab(struct ieee80211_ht_info *ht_info,
772 enum ieee80211_band band); 772 enum ieee80211_band band);
773void iwl4965_set_rxon_ht(struct iwl4965_priv *priv, 773void iwl4965_set_rxon_ht(struct iwl_priv *priv,
774 struct iwl_ht_info *ht_info); 774 struct iwl_ht_info *ht_info);
775void iwl4965_set_ht_add_station(struct iwl4965_priv *priv, u8 index, 775void iwl4965_set_ht_add_station(struct iwl_priv *priv, u8 index,
776 struct ieee80211_ht_info *sta_ht_inf); 776 struct ieee80211_ht_info *sta_ht_inf);
777int iwl4965_mac_ampdu_action(struct ieee80211_hw *hw, 777int iwl4965_mac_ampdu_action(struct ieee80211_hw *hw,
778 enum ieee80211_ampdu_mlme_action action, 778 enum ieee80211_ampdu_mlme_action action,
779 const u8 *addr, u16 tid, u16 *ssn); 779 const u8 *addr, u16 tid, u16 *ssn);
780int iwl4965_check_empty_hw_queue(struct iwl4965_priv *priv, int sta_id, 780int iwl4965_check_empty_hw_queue(struct iwl_priv *priv, int sta_id,
781 u8 tid, int txq_id); 781 u8 tid, int txq_id);
782#else 782#else
783static inline void iwl4965_init_ht_hw_capab(struct ieee80211_ht_info *ht_info, 783static inline void iwl4965_init_ht_hw_capab(struct ieee80211_ht_info *ht_info,
@@ -966,7 +966,7 @@ enum {
966 966
967#endif 967#endif
968 968
969struct iwl4965_priv { 969struct iwl_priv {
970 970
971 /* ieee device used by generic ieee processing code */ 971 /* ieee device used by generic ieee processing code */
972 struct ieee80211_hw *hw; 972 struct ieee80211_hw *hw;
@@ -982,7 +982,7 @@ struct iwl4965_priv {
982 int alloc_rxb_skb; 982 int alloc_rxb_skb;
983 bool add_radiotap; 983 bool add_radiotap;
984 984
985 void (*rx_handlers[REPLY_MAX])(struct iwl4965_priv *priv, 985 void (*rx_handlers[REPLY_MAX])(struct iwl_priv *priv,
986 struct iwl4965_rx_mem_buffer *rxb); 986 struct iwl4965_rx_mem_buffer *rxb);
987 987
988 struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS]; 988 struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS];
@@ -1214,9 +1214,9 @@ struct iwl4965_priv {
1214#endif 1214#endif
1215 struct work_struct statistics_work; 1215 struct work_struct statistics_work;
1216 struct timer_list statistics_periodic; 1216 struct timer_list statistics_periodic;
1217}; /*iwl4965_priv */ 1217}; /*iwl_priv */
1218 1218
1219static inline int iwl4965_is_associated(struct iwl4965_priv *priv) 1219static inline int iwl4965_is_associated(struct iwl_priv *priv)
1220{ 1220{
1221 return (priv->active_rxon.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0; 1221 return (priv->active_rxon.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0;
1222} 1222}
@@ -1259,9 +1259,9 @@ static inline int is_channel_ibss(const struct iwl4965_channel_info *ch)
1259} 1259}
1260 1260
1261extern const struct iwl4965_channel_info *iwl4965_get_channel_info( 1261extern const struct iwl4965_channel_info *iwl4965_get_channel_info(
1262 const struct iwl4965_priv *priv, enum ieee80211_band band, u16 channel); 1262 const struct iwl_priv *priv, enum ieee80211_band band, u16 channel);
1263 1263
1264/* Requires full declaration of iwl4965_priv before including */ 1264/* Requires full declaration of iwl_priv before including */
1265#include "iwl-4965-io.h" 1265#include "iwl-4965-io.h"
1266 1266
1267#endif /* __iwl4965_4965_h__ */ 1267#endif /* __iwl4965_4965_h__ */