libertas: sort and categorize entries in decl.h
[safe/jmp/linux-2.6] / drivers / net / wireless / libertas / decl.h
1 /**
2   *  This file contains declaration referring to
3   *  functions defined in other source files
4   */
5
6 #ifndef _LBS_DECL_H_
7 #define _LBS_DECL_H_
8
9 #include <linux/netdevice.h>
10
11
12 struct lbs_private;
13 struct sk_buff;
14 struct net_device;
15
16
17 /* ethtool.c */
18 extern const struct ethtool_ops lbs_ethtool_ops;
19
20
21 /* tx.c */
22 void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count);
23 netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb,
24                                 struct net_device *dev);
25
26 /* rx.c */
27 int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *);
28
29
30 /* persistcfg.c */
31 void lbs_persist_config_init(struct net_device *net);
32 void lbs_persist_config_remove(struct net_device *net);
33
34
35 /* main.c */
36 struct lbs_private *lbs_add_card(void *card, struct device *dmdev);
37 void lbs_remove_card(struct lbs_private *priv);
38 int lbs_start_card(struct lbs_private *priv);
39 void lbs_stop_card(struct lbs_private *priv);
40 void lbs_host_to_card_done(struct lbs_private *priv);
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
54
55 #endif