diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-03-12 19:58:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-25 16:41:47 -0400 |
commit | c79dd5b5bc5a65822cdc9d571032c469ad7577d5 (patch) | |
tree | 9056b3470264641eb6d4f25fedef5cde5f1c069d /drivers/net/wireless/iwlwifi/iwl-4965.h | |
parent | 0a6857e70d577237bb1cd1c991e68e7d3b6f7c90 (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.h | 128 |
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 | ||
317 | struct iwl4965_cmd; | 317 | struct iwl4965_cmd; |
318 | struct iwl4965_priv; | 318 | struct iwl_priv; |
319 | 319 | ||
320 | struct iwl4965_cmd_meta { | 320 | struct 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 | *****************************************************************************/ |
636 | struct iwl4965_addsta_cmd; | 636 | struct iwl4965_addsta_cmd; |
637 | extern int iwl4965_send_add_station(struct iwl4965_priv *priv, | 637 | extern 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); |
639 | extern u8 iwl4965_add_station_flags(struct iwl4965_priv *priv, const u8 *addr, | 639 | extern 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); |
641 | extern int iwl4965_is_network_packet(struct iwl4965_priv *priv, | 641 | extern int iwl4965_is_network_packet(struct iwl_priv *priv, |
642 | struct ieee80211_hdr *header); | 642 | struct ieee80211_hdr *header); |
643 | extern int iwl4965_power_init_handle(struct iwl4965_priv *priv); | 643 | extern int iwl4965_power_init_handle(struct iwl_priv *priv); |
644 | extern void iwl4965_handle_data_packet_monitor(struct iwl4965_priv *priv, | 644 | extern 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); |
649 | extern int iwl4965_is_duplicate_packet(struct iwl4965_priv *priv, | 649 | extern int iwl4965_is_duplicate_packet(struct iwl_priv *priv, |
650 | struct ieee80211_hdr *header); | 650 | struct ieee80211_hdr *header); |
651 | extern int iwl4965_rx_queue_alloc(struct iwl4965_priv *priv); | 651 | extern int iwl4965_rx_queue_alloc(struct iwl_priv *priv); |
652 | extern void iwl4965_rx_queue_reset(struct iwl4965_priv *priv, | 652 | extern void iwl4965_rx_queue_reset(struct iwl_priv *priv, |
653 | struct iwl4965_rx_queue *rxq); | 653 | struct iwl4965_rx_queue *rxq); |
654 | extern int iwl4965_calc_db_from_ratio(int sig_ratio); | 654 | extern int iwl4965_calc_db_from_ratio(int sig_ratio); |
655 | extern int iwl4965_calc_sig_qual(int rssi_dbm, int noise_dbm); | 655 | extern int iwl4965_calc_sig_qual(int rssi_dbm, int noise_dbm); |
656 | extern int iwl4965_tx_queue_init(struct iwl4965_priv *priv, | 656 | extern 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); |
658 | extern void iwl4965_rx_replenish(void *data); | 658 | extern void iwl4965_rx_replenish(void *data); |
659 | extern void iwl4965_tx_queue_free(struct iwl4965_priv *priv, struct iwl4965_tx_queue *txq); | 659 | extern void iwl4965_tx_queue_free(struct iwl_priv *priv, struct iwl4965_tx_queue *txq); |
660 | extern int iwl4965_send_cmd_pdu(struct iwl4965_priv *priv, u8 id, u16 len, | 660 | extern int iwl4965_send_cmd_pdu(struct iwl_priv *priv, u8 id, u16 len, |
661 | const void *data); | 661 | const void *data); |
662 | extern int __must_check iwl4965_send_cmd(struct iwl4965_priv *priv, | 662 | extern int __must_check iwl4965_send_cmd(struct iwl_priv *priv, |
663 | struct iwl4965_host_cmd *cmd); | 663 | struct iwl4965_host_cmd *cmd); |
664 | extern unsigned int iwl4965_fill_beacon_frame(struct iwl4965_priv *priv, | 664 | extern 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); |
667 | extern int iwl4965_rx_queue_update_write_ptr(struct iwl4965_priv *priv, | 667 | extern int iwl4965_rx_queue_update_write_ptr(struct iwl_priv *priv, |
668 | struct iwl4965_rx_queue *q); | 668 | struct iwl4965_rx_queue *q); |
669 | extern int iwl4965_send_statistics_request(struct iwl4965_priv *priv); | 669 | extern int iwl4965_send_statistics_request(struct iwl_priv *priv); |
670 | extern void iwl4965_set_decrypted_flag(struct iwl4965_priv *priv, struct sk_buff *skb, | 670 | extern 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); |
673 | extern __le16 *ieee80211_get_qos_ctrl(struct ieee80211_hdr *hdr); | 673 | extern __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 | */ |
681 | extern u8 iwl4965_sync_station(struct iwl4965_priv *priv, int sta_id, | 681 | extern 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 | ****************************************************************************/ |
700 | extern void iwl4965_hw_rx_handler_setup(struct iwl4965_priv *priv); | 700 | extern void iwl4965_hw_rx_handler_setup(struct iwl_priv *priv); |
701 | extern void iwl4965_hw_setup_deferred_work(struct iwl4965_priv *priv); | 701 | extern void iwl4965_hw_setup_deferred_work(struct iwl_priv *priv); |
702 | extern void iwl4965_hw_cancel_deferred_work(struct iwl4965_priv *priv); | 702 | extern void iwl4965_hw_cancel_deferred_work(struct iwl_priv *priv); |
703 | extern int iwl4965_hw_rxq_stop(struct iwl4965_priv *priv); | 703 | extern int iwl4965_hw_rxq_stop(struct iwl_priv *priv); |
704 | extern int iwl4965_hw_set_hw_setting(struct iwl4965_priv *priv); | 704 | extern int iwl4965_hw_set_hw_setting(struct iwl_priv *priv); |
705 | extern int iwl4965_hw_nic_init(struct iwl4965_priv *priv); | 705 | extern int iwl4965_hw_nic_init(struct iwl_priv *priv); |
706 | extern int iwl4965_hw_nic_stop_master(struct iwl4965_priv *priv); | 706 | extern int iwl4965_hw_nic_stop_master(struct iwl_priv *priv); |
707 | extern void iwl4965_hw_txq_ctx_free(struct iwl4965_priv *priv); | 707 | extern void iwl4965_hw_txq_ctx_free(struct iwl_priv *priv); |
708 | extern void iwl4965_hw_txq_ctx_stop(struct iwl4965_priv *priv); | 708 | extern void iwl4965_hw_txq_ctx_stop(struct iwl_priv *priv); |
709 | extern int iwl4965_hw_nic_reset(struct iwl4965_priv *priv); | 709 | extern int iwl4965_hw_nic_reset(struct iwl_priv *priv); |
710 | extern int iwl4965_hw_txq_attach_buf_to_tfd(struct iwl4965_priv *priv, void *tfd, | 710 | extern 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); |
712 | extern int iwl4965_hw_txq_free_tfd(struct iwl4965_priv *priv, struct iwl4965_tx_queue *txq); | 712 | extern int iwl4965_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl4965_tx_queue *txq); |
713 | extern int iwl4965_hw_get_temperature(struct iwl4965_priv *priv); | 713 | extern int iwl4965_hw_get_temperature(struct iwl_priv *priv); |
714 | extern int iwl4965_hw_tx_queue_init(struct iwl4965_priv *priv, | 714 | extern int iwl4965_hw_tx_queue_init(struct iwl_priv *priv, |
715 | struct iwl4965_tx_queue *txq); | 715 | struct iwl4965_tx_queue *txq); |
716 | extern unsigned int iwl4965_hw_get_beacon_cmd(struct iwl4965_priv *priv, | 716 | extern 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); |
718 | extern int iwl4965_hw_get_rx_read(struct iwl4965_priv *priv); | 718 | extern int iwl4965_hw_get_rx_read(struct iwl_priv *priv); |
719 | extern void iwl4965_hw_build_tx_cmd_rate(struct iwl4965_priv *priv, | 719 | extern 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); |
724 | extern int iwl4965_hw_reg_send_txpower(struct iwl4965_priv *priv); | 724 | extern int iwl4965_hw_reg_send_txpower(struct iwl_priv *priv); |
725 | extern int iwl4965_hw_reg_set_txpower(struct iwl4965_priv *priv, s8 power); | 725 | extern int iwl4965_hw_reg_set_txpower(struct iwl_priv *priv, s8 power); |
726 | extern void iwl4965_hw_rx_statistics(struct iwl4965_priv *priv, | 726 | extern void iwl4965_hw_rx_statistics(struct iwl_priv *priv, |
727 | struct iwl4965_rx_mem_buffer *rxb); | 727 | struct iwl4965_rx_mem_buffer *rxb); |
728 | extern void iwl4965_disable_events(struct iwl4965_priv *priv); | 728 | extern void iwl4965_disable_events(struct iwl_priv *priv); |
729 | extern int iwl4965_get_temperature(const struct iwl4965_priv *priv); | 729 | extern 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 | */ |
739 | extern u8 iwl4965_hw_find_station(struct iwl4965_priv *priv, const u8 *bssid); | 739 | extern u8 iwl4965_hw_find_station(struct iwl_priv *priv, const u8 *bssid); |
740 | 740 | ||
741 | extern int iwl4965_hw_channel_switch(struct iwl4965_priv *priv, u16 channel); | 741 | extern int iwl4965_hw_channel_switch(struct iwl_priv *priv, u16 channel); |
742 | extern int iwl4965_tx_queue_reclaim(struct iwl4965_priv *priv, int txq_id, int index); | 742 | extern int iwl4965_tx_queue_reclaim(struct iwl_priv *priv, int txq_id, int index); |
743 | extern int iwl4965_queue_space(const struct iwl4965_queue *q); | 743 | extern int iwl4965_queue_space(const struct iwl4965_queue *q); |
744 | struct iwl4965_priv; | 744 | struct 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 | */ |
749 | extern int iwl4965_tx_queue_update_wr_ptr(struct iwl4965_priv *priv, | 749 | extern 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); |
752 | extern void iwl4965_add_station(struct iwl4965_priv *priv, const u8 *addr, | 752 | extern void iwl4965_add_station(struct iwl_priv *priv, const u8 *addr, |
753 | int is_ap); | 753 | int is_ap); |
754 | extern void iwl4965_set_rxon_chain(struct iwl4965_priv *priv); | 754 | extern void iwl4965_set_rxon_chain(struct iwl_priv *priv); |
755 | extern int iwl4965_alive_notify(struct iwl4965_priv *priv); | 755 | extern int iwl4965_alive_notify(struct iwl_priv *priv); |
756 | extern void iwl4965_update_rate_scaling(struct iwl4965_priv *priv, u8 mode); | 756 | extern void iwl4965_update_rate_scaling(struct iwl_priv *priv, u8 mode); |
757 | extern void iwl4965_chain_noise_reset(struct iwl4965_priv *priv); | 757 | extern void iwl4965_chain_noise_reset(struct iwl_priv *priv); |
758 | extern void iwl4965_init_sensitivity(struct iwl4965_priv *priv, u8 flags, | 758 | extern void iwl4965_init_sensitivity(struct iwl_priv *priv, u8 flags, |
759 | u8 force); | 759 | u8 force); |
760 | extern int iwl4965_set_fat_chan_info(struct iwl4965_priv *priv, | 760 | extern 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); |
765 | extern void iwl4965_rf_kill_ct_config(struct iwl4965_priv *priv); | 765 | extern void iwl4965_rf_kill_ct_config(struct iwl_priv *priv); |
766 | extern void iwl4965_hwrate_to_tx_control(struct iwl4965_priv *priv, | 766 | extern 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 |
771 | void iwl4965_init_ht_hw_capab(struct ieee80211_ht_info *ht_info, | 771 | void iwl4965_init_ht_hw_capab(struct ieee80211_ht_info *ht_info, |
772 | enum ieee80211_band band); | 772 | enum ieee80211_band band); |
773 | void iwl4965_set_rxon_ht(struct iwl4965_priv *priv, | 773 | void iwl4965_set_rxon_ht(struct iwl_priv *priv, |
774 | struct iwl_ht_info *ht_info); | 774 | struct iwl_ht_info *ht_info); |
775 | void iwl4965_set_ht_add_station(struct iwl4965_priv *priv, u8 index, | 775 | void 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); |
777 | int iwl4965_mac_ampdu_action(struct ieee80211_hw *hw, | 777 | int 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); |
780 | int iwl4965_check_empty_hw_queue(struct iwl4965_priv *priv, int sta_id, | 780 | int 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 |
783 | static inline void iwl4965_init_ht_hw_capab(struct ieee80211_ht_info *ht_info, | 783 | static 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 | ||
969 | struct iwl4965_priv { | 969 | struct 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 | ||
1219 | static inline int iwl4965_is_associated(struct iwl4965_priv *priv) | 1219 | static 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 | ||
1261 | extern const struct iwl4965_channel_info *iwl4965_get_channel_info( | 1261 | extern 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__ */ |