aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2009-10-22 09:30:58 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-27 16:49:58 -0400
commite93156e7c4c3e2be355cac27c58664e4385c58fd (patch)
tree2408d6096b2b478cf877a52422464cd045b36a0c /drivers
parent560c63383f060b5ea68834e4720ab7bfb4303ff7 (diff)
libertas: sort and categorize entries in decl.h
This now makes decl.h only contain declarations for functions that don't have their own *.h file. No function change. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/libertas/cmd.c4
-rw-r--r--drivers/net/wireless/libertas/decl.h40
-rw-r--r--drivers/net/wireless/libertas/scan.c2
-rw-r--r--drivers/net/wireless/libertas/wext.h5
4 files changed, 27 insertions, 24 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c
index 5326483b50d2..65fd50d31764 100644
--- a/drivers/net/wireless/libertas/cmd.c
+++ b/drivers/net/wireless/libertas/cmd.c
@@ -3,9 +3,10 @@
3 * It prepares command and sends it to firmware when it is ready. 3 * It prepares command and sends it to firmware when it is ready.
4 */ 4 */
5 5
6#include <net/iw_handler.h>
7#include <net/lib80211.h> 6#include <net/lib80211.h>
8#include <linux/kfifo.h> 7#include <linux/kfifo.h>
8#include <linux/sched.h>
9
9#include "host.h" 10#include "host.h"
10#include "decl.h" 11#include "decl.h"
11#include "defs.h" 12#include "defs.h"
@@ -15,6 +16,7 @@
15#include "scan.h" 16#include "scan.h"
16#include "cmd.h" 17#include "cmd.h"
17 18
19
18static struct cmd_ctrl_node *lbs_get_cmd_ctrl_node(struct lbs_private *priv); 20static struct cmd_ctrl_node *lbs_get_cmd_ctrl_node(struct lbs_private *priv);
19 21
20/** 22/**
diff --git a/drivers/net/wireless/libertas/decl.h b/drivers/net/wireless/libertas/decl.h
index d609a57750de..678f7c9f7503 100644
--- a/drivers/net/wireless/libertas/decl.h
+++ b/drivers/net/wireless/libertas/decl.h
@@ -8,46 +8,30 @@
8 8
9#include <linux/netdevice.h> 9#include <linux/netdevice.h>
10 10
11#include "defs.h"
12 11
13
14extern const struct ethtool_ops lbs_ethtool_ops;
15
16/** Function Prototype Declaration */
17struct lbs_private; 12struct lbs_private;
18struct sk_buff; 13struct sk_buff;
19struct net_device; 14struct net_device;
20struct cmd_ctrl_node;
21struct cmd_ds_command;
22 15
23int lbs_suspend(struct lbs_private *priv);
24void lbs_resume(struct lbs_private *priv);
25
26void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count);
27 16
28void lbs_queue_event(struct lbs_private *priv, u32 event); 17/* ethtool.c */
29void lbs_notify_command_response(struct lbs_private *priv, u8 resp_idx); 18extern const struct ethtool_ops lbs_ethtool_ops;
30int lbs_enter_auto_deep_sleep(struct lbs_private *priv);
31int lbs_exit_auto_deep_sleep(struct lbs_private *priv);
32 19
33u32 lbs_fw_index_to_data_rate(u8 index);
34u8 lbs_data_rate_to_fw_index(u32 rate);
35 20
36/** The proc fs interface */ 21/* tx.c */
22void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count);
37netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb, 23netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb,
38 struct net_device *dev); 24 struct net_device *dev);
39 25
26/* rx.c */
40int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *); 27int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *);
41 28
42struct chan_freq_power *lbs_find_cfp_by_band_and_channel(
43 struct lbs_private *priv,
44 u8 band,
45 u16 channel);
46 29
47/* persistcfg.c */ 30/* persistcfg.c */
48void lbs_persist_config_init(struct net_device *net); 31void lbs_persist_config_init(struct net_device *net);
49void lbs_persist_config_remove(struct net_device *net); 32void lbs_persist_config_remove(struct net_device *net);
50 33
34
51/* main.c */ 35/* main.c */
52struct lbs_private *lbs_add_card(void *card, struct device *dmdev); 36struct lbs_private *lbs_add_card(void *card, struct device *dmdev);
53void lbs_remove_card(struct lbs_private *priv); 37void lbs_remove_card(struct lbs_private *priv);
@@ -55,5 +39,17 @@ int lbs_start_card(struct lbs_private *priv);
55void lbs_stop_card(struct lbs_private *priv); 39void lbs_stop_card(struct lbs_private *priv);
56void lbs_host_to_card_done(struct lbs_private *priv); 40void lbs_host_to_card_done(struct lbs_private *priv);
57 41
42int lbs_suspend(struct lbs_private *priv);
43void lbs_resume(struct lbs_private *priv);
44
45void lbs_queue_event(struct lbs_private *priv, u32 event);
46void lbs_notify_command_response(struct lbs_private *priv, u8 resp_idx);
47
48int lbs_enter_auto_deep_sleep(struct lbs_private *priv);
49int lbs_exit_auto_deep_sleep(struct lbs_private *priv);
50
51u32 lbs_fw_index_to_data_rate(u8 index);
52u8 lbs_data_rate_to_fw_index(u32 rate);
53
58 54
59#endif 55#endif
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c
index 5f0a598a3b50..c6a6c042b82f 100644
--- a/drivers/net/wireless/libertas/scan.c
+++ b/drivers/net/wireless/libertas/scan.c
@@ -12,10 +12,10 @@
12#include <net/lib80211.h> 12#include <net/lib80211.h>
13 13
14#include "host.h" 14#include "host.h"
15#include "decl.h"
16#include "dev.h" 15#include "dev.h"
17#include "scan.h" 16#include "scan.h"
18#include "assoc.h" 17#include "assoc.h"
18#include "wext.h"
19#include "cmd.h" 19#include "cmd.h"
20 20
21//! Approximate amount of data needed to pass a scan result back to iwlist 21//! Approximate amount of data needed to pass a scan result back to iwlist
diff --git a/drivers/net/wireless/libertas/wext.h b/drivers/net/wireless/libertas/wext.h
index 5e041e64ecfe..7863baf7d234 100644
--- a/drivers/net/wireless/libertas/wext.h
+++ b/drivers/net/wireless/libertas/wext.h
@@ -10,4 +10,9 @@ void lbs_send_mic_failureevent(struct lbs_private *priv, u32 event);
10extern struct iw_handler_def lbs_handler_def; 10extern struct iw_handler_def lbs_handler_def;
11extern struct iw_handler_def mesh_handler_def; 11extern struct iw_handler_def mesh_handler_def;
12 12
13struct chan_freq_power *lbs_find_cfp_by_band_and_channel(
14 struct lbs_private *priv,
15 u8 band,
16 u16 channel);
17
13#endif 18#endif