Kiran Divekar | e86dc1c | 2010-06-14 22:01:26 +0530 | [diff] [blame] | 1 | |
Randy Dunlap | 8973a6e | 2011-04-26 15:25:29 -0700 | [diff] [blame] | 2 | /* |
| 3 | * This file contains declaration referring to |
| 4 | * functions defined in other source files |
| 5 | */ |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 6 | |
Holger Schurig | 1007832 | 2007-11-15 18:05:47 -0500 | [diff] [blame] | 7 | #ifndef _LBS_DECL_H_ |
| 8 | #define _LBS_DECL_H_ |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 9 | |
Stephen Hemminger | d0cf9c0 | 2009-08-31 19:50:57 +0000 | [diff] [blame] | 10 | #include <linux/netdevice.h> |
Dan Williams | 72f7a66 | 2010-08-07 21:14:33 -0500 | [diff] [blame] | 11 | #include <linux/firmware.h> |
Dan Williams | 7732ca4 | 2007-05-25 13:13:25 -0400 | [diff] [blame] | 12 | |
Dan Williams | 72f7a66 | 2010-08-07 21:14:33 -0500 | [diff] [blame] | 13 | /* Should be terminated by a NULL entry */ |
| 14 | struct lbs_fw_table { |
| 15 | int model; |
| 16 | const char *helper; |
| 17 | const char *fwname; |
| 18 | }; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 19 | |
Holger Schurig | 1007832 | 2007-11-15 18:05:47 -0500 | [diff] [blame] | 20 | struct lbs_private; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 21 | struct sk_buff; |
| 22 | struct net_device; |
Kiran Divekar | 1047d5e | 2010-06-04 23:20:42 -0700 | [diff] [blame] | 23 | struct cmd_ds_command; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 24 | |
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 | /* ethtool.c */ |
| 27 | extern const struct ethtool_ops lbs_ethtool_ops; |
| 28 | |
| 29 | |
| 30 | /* tx.c */ |
Holger Schurig | 7919b89 | 2008-04-01 14:50:43 +0200 | [diff] [blame] | 31 | void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count); |
Stephen Hemminger | d0cf9c0 | 2009-08-31 19:50:57 +0000 | [diff] [blame] | 32 | netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb, |
| 33 | struct net_device *dev); |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 34 | |
Holger Schurig | e93156e | 2009-10-22 15:30:58 +0200 | [diff] [blame] | 35 | /* rx.c */ |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 36 | int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *); |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 37 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 38 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 39 | /* main.c */ |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 40 | struct lbs_private *lbs_add_card(void *card, struct device *dmdev); |
Holger Schurig | a63e5cb | 2008-04-30 10:50:39 +0200 | [diff] [blame] | 41 | void lbs_remove_card(struct lbs_private *priv); |
Holger Schurig | 69f9032 | 2007-11-23 15:43:44 +0100 | [diff] [blame] | 42 | int lbs_start_card(struct lbs_private *priv); |
Holger Schurig | a63e5cb | 2008-04-30 10:50:39 +0200 | [diff] [blame] | 43 | void lbs_stop_card(struct lbs_private *priv); |
David Woodhouse | e775ed7 | 2007-12-06 14:36:11 +0000 | [diff] [blame] | 44 | void lbs_host_to_card_done(struct lbs_private *priv); |
Holger Schurig | 208fdd2 | 2007-05-25 12:17:06 -0400 | [diff] [blame] | 45 | |
Daniel Drake | d2e7b34 | 2011-08-01 16:43:13 +0100 | [diff] [blame] | 46 | int lbs_start_iface(struct lbs_private *priv); |
| 47 | int lbs_stop_iface(struct lbs_private *priv); |
| 48 | |
Kiran Divekar | e86dc1c | 2010-06-14 22:01:26 +0530 | [diff] [blame] | 49 | int lbs_rtap_supported(struct lbs_private *priv); |
| 50 | |
Holger Schurig | e0e42da | 2009-11-25 13:10:15 +0100 | [diff] [blame] | 51 | int lbs_set_mac_address(struct net_device *dev, void *addr); |
| 52 | void lbs_set_multicast_list(struct net_device *dev); |
Daniel Drake | d2e7b34 | 2011-08-01 16:43:13 +0100 | [diff] [blame] | 53 | void lbs_update_mcast(struct lbs_private *priv); |
Holger Schurig | e0e42da | 2009-11-25 13:10:15 +0100 | [diff] [blame] | 54 | |
Holger Schurig | e93156e | 2009-10-22 15:30:58 +0200 | [diff] [blame] | 55 | int lbs_suspend(struct lbs_private *priv); |
Amitkumar Karwar | 66fceb6 | 2010-05-19 03:24:38 -0700 | [diff] [blame] | 56 | int lbs_resume(struct lbs_private *priv); |
Holger Schurig | e93156e | 2009-10-22 15:30:58 +0200 | [diff] [blame] | 57 | |
| 58 | void lbs_queue_event(struct lbs_private *priv, u32 event); |
| 59 | void lbs_notify_command_response(struct lbs_private *priv, u8 resp_idx); |
| 60 | |
| 61 | int lbs_enter_auto_deep_sleep(struct lbs_private *priv); |
| 62 | int lbs_exit_auto_deep_sleep(struct lbs_private *priv); |
| 63 | |
| 64 | u32 lbs_fw_index_to_data_rate(u8 index); |
| 65 | u8 lbs_data_rate_to_fw_index(u32 rate); |
| 66 | |
Dan Williams | 72f7a66 | 2010-08-07 21:14:33 -0500 | [diff] [blame] | 67 | int lbs_get_firmware(struct device *dev, const char *user_helper, |
| 68 | const char *user_mainfw, u32 card_model, |
| 69 | const struct lbs_fw_table *fw_table, |
| 70 | const struct firmware **helper, |
| 71 | const struct firmware **mainfw); |
| 72 | |
Holger Schurig | 1007832 | 2007-11-15 18:05:47 -0500 | [diff] [blame] | 73 | #endif |