Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 1 | /** |
| 2 | * This file contains declaration referring to |
| 3 | * functions defined in other source files |
| 4 | */ |
| 5 | |
Holger Schurig | 1007832 | 2007-11-15 18:05:47 -0500 | [diff] [blame] | 6 | #ifndef _LBS_DECL_H_ |
| 7 | #define _LBS_DECL_H_ |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 8 | |
Stephen Hemminger | d0cf9c0 | 2009-08-31 19:50:57 +0000 | [diff] [blame] | 9 | #include <linux/netdevice.h> |
Dan Williams | 7732ca4 | 2007-05-25 13:13:25 -0400 | [diff] [blame] | 10 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 11 | |
Holger Schurig | 1007832 | 2007-11-15 18:05:47 -0500 | [diff] [blame] | 12 | struct lbs_private; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 13 | struct sk_buff; |
| 14 | struct net_device; |
| 15 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 16 | |
Holger Schurig | e93156e | 2009-10-22 15:30:58 +0200 | [diff] [blame] | 17 | /* ethtool.c */ |
| 18 | extern const struct ethtool_ops lbs_ethtool_ops; |
| 19 | |
| 20 | |
| 21 | /* tx.c */ |
Holger Schurig | 7919b89 | 2008-04-01 14:50:43 +0200 | [diff] [blame] | 22 | void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count); |
Stephen Hemminger | d0cf9c0 | 2009-08-31 19:50:57 +0000 | [diff] [blame] | 23 | netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb, |
| 24 | struct net_device *dev); |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 25 | |
Holger Schurig | e93156e | 2009-10-22 15:30:58 +0200 | [diff] [blame] | 26 | /* rx.c */ |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 27 | int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *); |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 28 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 29 | |
Javier Cardona | 15dbaac | 2008-05-17 21:01:24 -0700 | [diff] [blame] | 30 | /* persistcfg.c */ |
| 31 | void lbs_persist_config_init(struct net_device *net); |
| 32 | void lbs_persist_config_remove(struct net_device *net); |
| 33 | |
Holger Schurig | e93156e | 2009-10-22 15:30:58 +0200 | [diff] [blame] | 34 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 35 | /* main.c */ |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 36 | struct lbs_private *lbs_add_card(void *card, struct device *dmdev); |
Holger Schurig | a63e5cb | 2008-04-30 10:50:39 +0200 | [diff] [blame] | 37 | void lbs_remove_card(struct lbs_private *priv); |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 38 | int lbs_start_card(struct lbs_private *priv); |
Holger Schurig | a63e5cb | 2008-04-30 10:50:39 +0200 | [diff] [blame] | 39 | void lbs_stop_card(struct lbs_private *priv); |
David Woodhouse | e775ed7 | 2007-12-06 14:36:11 +0000 | [diff] [blame] | 40 | void lbs_host_to_card_done(struct lbs_private *priv); |
Holger Schurig | 208fdd2 | 2007-05-25 12:17:06 -0400 | [diff] [blame] | 41 | |
Holger Schurig | e93156e | 2009-10-22 15:30:58 +0200 | [diff] [blame] | 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 | |
Holger Schurig | 04850a4 | 2008-03-26 17:56:26 +0100 | [diff] [blame] | 54 | |
Holger Schurig | 1007832 | 2007-11-15 18:05:47 -0500 | [diff] [blame] | 55 | #endif |