]> Pileus Git - ~andy/linux/blob - drivers/net/wireless/libertas/decl.h
85c97d3ed88dd7d4dfedec0e2251fd1e2760bdd1
[~andy/linux] / drivers / net / wireless / libertas / decl.h
1
2 /**
3   *  This file contains declaration referring to
4   *  functions defined in other source files
5   */
6
7 #ifndef _LBS_DECL_H_
8 #define _LBS_DECL_H_
9
10 #include <linux/netdevice.h>
11
12
13 struct lbs_private;
14 struct sk_buff;
15 struct net_device;
16
17
18 /* ethtool.c */
19 extern const struct ethtool_ops lbs_ethtool_ops;
20
21
22 /* tx.c */
23 void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count);
24 netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb,
25                                 struct net_device *dev);
26
27 /* rx.c */
28 int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *);
29
30
31 /* main.c */
32 struct lbs_private *lbs_add_card(void *card, struct device *dmdev);
33 void lbs_remove_card(struct lbs_private *priv);
34 int lbs_start_card(struct lbs_private *priv);
35 void lbs_stop_card(struct lbs_private *priv);
36 void lbs_host_to_card_done(struct lbs_private *priv);
37
38 int lbs_rtap_supported(struct lbs_private *priv);
39
40 int lbs_set_mac_address(struct net_device *dev, void *addr);
41 void lbs_set_multicast_list(struct net_device *dev);
42
43 int lbs_suspend(struct lbs_private *priv);
44 int lbs_resume(struct lbs_private *priv);
45
46 void lbs_queue_event(struct lbs_private *priv, u32 event);
47 void lbs_notify_command_response(struct lbs_private *priv, u8 resp_idx);
48
49 int lbs_enter_auto_deep_sleep(struct lbs_private *priv);
50 int lbs_exit_auto_deep_sleep(struct lbs_private *priv);
51
52 u32 lbs_fw_index_to_data_rate(u8 index);
53 u8 lbs_data_rate_to_fw_index(u32 rate);
54
55
56 #endif