aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-dev.h
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2008-09-02 23:26:56 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-09-11 15:53:31 -0400
commita33c2f47bd4618b0483d5ec4c5bc793e6d02c1f7 (patch)
tree20806f4dca919ca77c9b674d3f0ac43c4da46291 /drivers/net/wireless/iwlwifi/iwl-dev.h
parent04816448d8b77551834c9ea01e407ef5f0042f0f (diff)
iwlwifi: remove uneeded declarations
This patch cleans up iwlwifi by removing uneeded declarations and removing uneeded symbol export reducing the namespace pollution. It also fixes some typos in comments. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@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-dev.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h45
1 files changed, 13 insertions, 32 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 6e150f678c68..1823687e5820 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -565,50 +565,31 @@ struct iwl_hw_params {
565#define IWL_RX_STATS(x) (&x->u.rx_frame.stats) 565#define IWL_RX_STATS(x) (&x->u.rx_frame.stats)
566#define IWL_RX_DATA(x) (IWL_RX_HDR(x)->payload) 566#define IWL_RX_DATA(x) (IWL_RX_HDR(x)->payload)
567 567
568
569/******************************************************************************
570 *
571 * Functions implemented in iwl-base.c which are forward declared here
572 * for use by iwl-*.c
573 *
574 *****************************************************************************/
575struct iwl_addsta_cmd;
576extern int iwl_send_add_sta(struct iwl_priv *priv,
577 struct iwl_addsta_cmd *sta, u8 flags);
578u8 iwl_add_station_flags(struct iwl_priv *priv, const u8 *addr, int is_ap,
579 u8 flags, struct ieee80211_ht_info *ht_info);
580extern unsigned int iwl4965_fill_beacon_frame(struct iwl_priv *priv,
581 struct ieee80211_hdr *hdr,
582 const u8 *dest, int left);
583extern void iwl4965_update_chain_flags(struct iwl_priv *priv);
584int iwl4965_set_pwr_src(struct iwl_priv *priv, enum iwl_pwr_src src);
585extern int iwl4965_set_power(struct iwl_priv *priv, void *cmd);
586
587extern const u8 iwl_bcast_addr[ETH_ALEN];
588
589/****************************************************************************** 568/******************************************************************************
590 * 569 *
591 * Functions implemented in iwl-[34]*.c which are forward declared here 570 * Functions implemented in core module which are forward declared here
592 * for use by iwl-base.c 571 * for use by iwl-[4-5].c
593 * 572 *
594 * NOTE: The implementation of these functions are hardware specific 573 * NOTE: The implementation of these functions are not hardware specific
595 * which is why they are in the hardware specific files (vs. iwl-base.c) 574 * which is why they are in the core module files.
596 * 575 *
597 * Naming convention -- 576 * Naming convention --
598 * iwl4965_ <-- Its part of iwlwifi (should be changed to iwl4965_) 577 * iwl_ <-- Is part of iwlwifi
599 * iwl4965_hw_ <-- Hardware specific (implemented in iwl-XXXX.c by all HW)
600 * iwlXXXX_ <-- Hardware specific (implemented in iwl-XXXX.c for XXXX) 578 * iwlXXXX_ <-- Hardware specific (implemented in iwl-XXXX.c for XXXX)
601 * iwl4965_bg_ <-- Called from work queue context 579 * iwl4965_bg_ <-- Called from work queue context
602 * iwl4965_mac_ <-- mac80211 callback 580 * iwl4965_mac_ <-- mac80211 callback
603 * 581 *
604 ****************************************************************************/ 582 ****************************************************************************/
583struct iwl_addsta_cmd;
584extern int iwl_send_add_sta(struct iwl_priv *priv,
585 struct iwl_addsta_cmd *sta, u8 flags);
586extern u8 iwl_add_station_flags(struct iwl_priv *priv, const u8 *addr,
587 int is_ap, u8 flags, struct ieee80211_ht_info *ht_info);
588extern void iwl4965_update_chain_flags(struct iwl_priv *priv);
589extern int iwl4965_set_pwr_src(struct iwl_priv *priv, enum iwl_pwr_src src);
590extern const u8 iwl_bcast_addr[ETH_ALEN];
605extern int iwl_rxq_stop(struct iwl_priv *priv); 591extern int iwl_rxq_stop(struct iwl_priv *priv);
606extern void iwl_txq_ctx_stop(struct iwl_priv *priv); 592extern void iwl_txq_ctx_stop(struct iwl_priv *priv);
607extern unsigned int iwl4965_hw_get_beacon_cmd(struct iwl_priv *priv,
608 struct iwl_frame *frame, u8 rate);
609extern void iwl4965_disable_events(struct iwl_priv *priv);
610
611extern int iwl4965_hw_channel_switch(struct iwl_priv *priv, u16 channel);
612extern int iwl_queue_space(const struct iwl_queue *q); 593extern int iwl_queue_space(const struct iwl_queue *q);
613static inline int iwl_queue_used(const struct iwl_queue *q, int i) 594static inline int iwl_queue_used(const struct iwl_queue *q, int i)
614{ 595{