blob: 678f7c9f7503c5ab596fd810a5d759b2261af5a5 [file] [log] [blame]
Marcelo Tosatti876c9d32007-02-10 12:25:27 -02001/**
2 * This file contains declaration referring to
3 * functions defined in other source files
4 */
5
Holger Schurig10078322007-11-15 18:05:47 -05006#ifndef _LBS_DECL_H_
7#define _LBS_DECL_H_
Marcelo Tosatti876c9d32007-02-10 12:25:27 -02008
Stephen Hemmingerd0cf9c02009-08-31 19:50:57 +00009#include <linux/netdevice.h>
Dan Williams7732ca42007-05-25 13:13:25 -040010
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020011
Holger Schurig10078322007-11-15 18:05:47 -050012struct lbs_private;
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020013struct sk_buff;
14struct net_device;
15
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020016
Holger Schurige93156e2009-10-22 15:30:58 +020017/* ethtool.c */
18extern const struct ethtool_ops lbs_ethtool_ops;
19
20
21/* tx.c */
Holger Schurig7919b892008-04-01 14:50:43 +020022void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count);
Stephen Hemmingerd0cf9c02009-08-31 19:50:57 +000023netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb,
24 struct net_device *dev);
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020025
Holger Schurige93156e2009-10-22 15:30:58 +020026/* rx.c */
Holger Schurig69f90322007-11-23 15:43:44 +010027int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *);
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020028
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020029
Javier Cardona15dbaac2008-05-17 21:01:24 -070030/* persistcfg.c */
31void lbs_persist_config_init(struct net_device *net);
32void lbs_persist_config_remove(struct net_device *net);
33
Holger Schurige93156e2009-10-22 15:30:58 +020034
Marcelo Tosatti876c9d32007-02-10 12:25:27 -020035/* main.c */
Holger Schurig69f90322007-11-23 15:43:44 +010036struct lbs_private *lbs_add_card(void *card, struct device *dmdev);
Holger Schuriga63e5cb2008-04-30 10:50:39 +020037void lbs_remove_card(struct lbs_private *priv);
Holger Schurig69f90322007-11-23 15:43:44 +010038int lbs_start_card(struct lbs_private *priv);
Holger Schuriga63e5cb2008-04-30 10:50:39 +020039void lbs_stop_card(struct lbs_private *priv);
David Woodhousee775ed72007-12-06 14:36:11 +000040void lbs_host_to_card_done(struct lbs_private *priv);
Holger Schurig208fdd22007-05-25 12:17:06 -040041
Holger Schurige93156e2009-10-22 15:30:58 +020042int 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
Holger Schurig04850a42008-03-26 17:56:26 +010054
Holger Schurig10078322007-11-15 18:05:47 -050055#endif