diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2009-10-22 09:30:58 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:49:58 -0400 |
commit | e93156e7c4c3e2be355cac27c58664e4385c58fd (patch) | |
tree | 2408d6096b2b478cf877a52422464cd045b36a0c /drivers | |
parent | 560c63383f060b5ea68834e4720ab7bfb4303ff7 (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.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/decl.h | 40 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/scan.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/wext.h | 5 |
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 | |||
18 | static struct cmd_ctrl_node *lbs_get_cmd_ctrl_node(struct lbs_private *priv); | 20 | static 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 | |||
14 | extern const struct ethtool_ops lbs_ethtool_ops; | ||
15 | |||
16 | /** Function Prototype Declaration */ | ||
17 | struct lbs_private; | 12 | struct lbs_private; |
18 | struct sk_buff; | 13 | struct sk_buff; |
19 | struct net_device; | 14 | struct net_device; |
20 | struct cmd_ctrl_node; | ||
21 | struct cmd_ds_command; | ||
22 | 15 | ||
23 | int lbs_suspend(struct lbs_private *priv); | ||
24 | void lbs_resume(struct lbs_private *priv); | ||
25 | |||
26 | void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count); | ||
27 | 16 | ||
28 | void lbs_queue_event(struct lbs_private *priv, u32 event); | 17 | /* ethtool.c */ |
29 | void lbs_notify_command_response(struct lbs_private *priv, u8 resp_idx); | 18 | extern const struct ethtool_ops lbs_ethtool_ops; |
30 | int lbs_enter_auto_deep_sleep(struct lbs_private *priv); | ||
31 | int lbs_exit_auto_deep_sleep(struct lbs_private *priv); | ||
32 | 19 | ||
33 | u32 lbs_fw_index_to_data_rate(u8 index); | ||
34 | u8 lbs_data_rate_to_fw_index(u32 rate); | ||
35 | 20 | ||
36 | /** The proc fs interface */ | 21 | /* tx.c */ |
22 | void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count); | ||
37 | netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb, | 23 | netdev_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 */ | ||
40 | int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *); | 27 | int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *); |
41 | 28 | ||
42 | struct 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 */ |
48 | void lbs_persist_config_init(struct net_device *net); | 31 | void lbs_persist_config_init(struct net_device *net); |
49 | void lbs_persist_config_remove(struct net_device *net); | 32 | void lbs_persist_config_remove(struct net_device *net); |
50 | 33 | ||
34 | |||
51 | /* main.c */ | 35 | /* main.c */ |
52 | struct lbs_private *lbs_add_card(void *card, struct device *dmdev); | 36 | struct lbs_private *lbs_add_card(void *card, struct device *dmdev); |
53 | void lbs_remove_card(struct lbs_private *priv); | 37 | void lbs_remove_card(struct lbs_private *priv); |
@@ -55,5 +39,17 @@ int lbs_start_card(struct lbs_private *priv); | |||
55 | void lbs_stop_card(struct lbs_private *priv); | 39 | void lbs_stop_card(struct lbs_private *priv); |
56 | void lbs_host_to_card_done(struct lbs_private *priv); | 40 | void lbs_host_to_card_done(struct lbs_private *priv); |
57 | 41 | ||
42 | int lbs_suspend(struct lbs_private *priv); | ||
43 | void lbs_resume(struct lbs_private *priv); | ||
44 | |||
45 | void lbs_queue_event(struct lbs_private *priv, u32 event); | ||
46 | void lbs_notify_command_response(struct lbs_private *priv, u8 resp_idx); | ||
47 | |||
48 | int lbs_enter_auto_deep_sleep(struct lbs_private *priv); | ||
49 | int lbs_exit_auto_deep_sleep(struct lbs_private *priv); | ||
50 | |||
51 | u32 lbs_fw_index_to_data_rate(u8 index); | ||
52 | u8 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); | |||
10 | extern struct iw_handler_def lbs_handler_def; | 10 | extern struct iw_handler_def lbs_handler_def; |
11 | extern struct iw_handler_def mesh_handler_def; | 11 | extern struct iw_handler_def mesh_handler_def; |
12 | 12 | ||
13 | struct 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 |