Commit | Line | Data |
---|---|---|
876c9d3a MT |
1 | /** |
2 | * This file contains declaration referring to | |
3 | * functions defined in other source files | |
4 | */ | |
5 | ||
10078321 HS |
6 | #ifndef _LBS_DECL_H_ |
7 | #define _LBS_DECL_H_ | |
876c9d3a | 8 | |
d0cf9c0d | 9 | #include <linux/netdevice.h> |
7732ca45 | 10 | |
876c9d3a | 11 | |
10078321 | 12 | struct lbs_private; |
876c9d3a MT |
13 | struct sk_buff; |
14 | struct net_device; | |
15 | ||
876c9d3a | 16 | |
e93156e7 HS |
17 | /* ethtool.c */ |
18 | extern const struct ethtool_ops lbs_ethtool_ops; | |
7919b89c | 19 | |
876c9d3a | 20 | |
e93156e7 HS |
21 | /* tx.c */ |
22 | void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count); | |
d0cf9c0d SH |
23 | netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb, |
24 | struct net_device *dev); | |
876c9d3a | 25 | |
e93156e7 | 26 | /* rx.c */ |
69f9032d | 27 | int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *); |
876c9d3a | 28 | |
876c9d3a | 29 | |
876c9d3a | 30 | /* main.c */ |
69f9032d | 31 | struct lbs_private *lbs_add_card(void *card, struct device *dmdev); |
a63e5cb2 | 32 | void lbs_remove_card(struct lbs_private *priv); |
69f9032d | 33 | int lbs_start_card(struct lbs_private *priv); |
a63e5cb2 | 34 | void lbs_stop_card(struct lbs_private *priv); |
e775ed7c | 35 | void lbs_host_to_card_done(struct lbs_private *priv); |
10078321 | 36 | |
e93156e7 HS |
37 | int lbs_suspend(struct lbs_private *priv); |
38 | void lbs_resume(struct lbs_private *priv); | |
39 | ||
40 | void lbs_queue_event(struct lbs_private *priv, u32 event); | |
41 | void lbs_notify_command_response(struct lbs_private *priv, u8 resp_idx); | |
42 | ||
43 | int lbs_enter_auto_deep_sleep(struct lbs_private *priv); | |
44 | int lbs_exit_auto_deep_sleep(struct lbs_private *priv); | |
45 | ||
46 | u32 lbs_fw_index_to_data_rate(u8 index); | |
47 | u8 lbs_data_rate_to_fw_index(u32 rate); | |
48 | ||
04850a47 | 49 | |
10078321 | 50 | #endif |