Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
decl.h
Go to the documentation of this file.
1 
2 /*
3  * This file contains declaration referring to
4  * functions defined in other source files
5  */
6 
7 #ifndef _LBS_DECL_H_
8 #define _LBS_DECL_H_
9 
10 #include <linux/netdevice.h>
11 #include <linux/firmware.h>
12 #include <linux/nl80211.h>
13 
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 };
20 
21 struct lbs_private;
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;
26 struct sk_buff;
27 struct net_device;
28 struct cmd_ds_command;
29 
30 
31 /* ethtool.c */
32 extern const struct ethtool_ops lbs_ethtool_ops;
33 
34 
35 /* tx.c */
36 void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count);
38  struct net_device *dev);
39 
40 /* rx.c */
41 int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *);
42 
43 
44 /* main.c */
45 struct lbs_private *lbs_add_card(void *card, struct device *dmdev);
46 void lbs_remove_card(struct lbs_private *priv);
47 int lbs_start_card(struct lbs_private *priv);
48 void lbs_stop_card(struct lbs_private *priv);
49 void lbs_host_to_card_done(struct lbs_private *priv);
50 
51 int lbs_start_iface(struct lbs_private *priv);
52 int lbs_stop_iface(struct lbs_private *priv);
53 int lbs_set_iface_type(struct lbs_private *priv, enum nl80211_iftype type);
54 
55 int lbs_rtap_supported(struct lbs_private *priv);
56 
57 int lbs_set_mac_address(struct net_device *dev, void *addr);
59 void lbs_update_mcast(struct lbs_private *priv);
60 
61 int lbs_suspend(struct lbs_private *priv);
62 int lbs_resume(struct lbs_private *priv);
63 
64 void lbs_queue_event(struct lbs_private *priv, u32 event);
66 
67 int lbs_enter_auto_deep_sleep(struct lbs_private *priv);
68 int lbs_exit_auto_deep_sleep(struct lbs_private *priv);
69 
72 
73 int lbs_get_firmware(struct device *dev, u32 card_model,
74  const struct lbs_fw_table *fw_table,
75  const struct firmware **helper,
76  const struct firmware **mainfw);
77 int lbs_get_firmware_async(struct lbs_private *priv, struct device *device,
78  u32 card_model, const struct lbs_fw_table *fw_table,
80 void lbs_wait_for_firmware_load(struct lbs_private *priv);
81 
82 #endif