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