Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux
[deliverable/linux.git] / drivers / net / wireless / libertas / decl.h
CommitLineData
e86dc1ca 1
8973a6e7
RD
2/*
3 * This file contains declaration referring to
4 * functions defined in other source files
5 */
876c9d3a 6
10078321
HS
7#ifndef _LBS_DECL_H_
8#define _LBS_DECL_H_
876c9d3a 9
d0cf9c0d 10#include <linux/netdevice.h>
72f7a667 11#include <linux/firmware.h>
5c1381ac 12#include <linux/nl80211.h>
7732ca45 13
72f7a667
DW
14/* Should be terminated by a NULL entry */
15struct lbs_fw_table {
16 int model;
17 const char *helper;
18 const char *fwname;
19};
876c9d3a 20
534111c7
DD
21struct lbs_private;
22typedef void (*lbs_fw_cb)(struct lbs_private *priv, int ret,
23 const struct firmware *helper, const struct firmware *mainfw);
24
10078321 25struct lbs_private;
876c9d3a
MT
26struct sk_buff;
27struct net_device;
1047d5ed 28struct cmd_ds_command;
876c9d3a 29
876c9d3a 30
e93156e7
HS
31/* ethtool.c */
32extern const struct ethtool_ops lbs_ethtool_ops;
7919b89c 33
876c9d3a 34
e93156e7
HS
35/* tx.c */
36void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count);
d0cf9c0d
SH
37netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb,
38 struct net_device *dev);
876c9d3a 39
e93156e7 40/* rx.c */
69f9032d 41int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *);
876c9d3a 42
876c9d3a 43
876c9d3a 44/* main.c */
69f9032d 45struct lbs_private *lbs_add_card(void *card, struct device *dmdev);
a63e5cb2 46void lbs_remove_card(struct lbs_private *priv);
69f9032d 47int lbs_start_card(struct lbs_private *priv);
a63e5cb2 48void lbs_stop_card(struct lbs_private *priv);
e775ed7c 49void lbs_host_to_card_done(struct lbs_private *priv);
10078321 50
d2e7b342
DD
51int lbs_start_iface(struct lbs_private *priv);
52int lbs_stop_iface(struct lbs_private *priv);
5c1381ac 53int lbs_set_iface_type(struct lbs_private *priv, enum nl80211_iftype type);
d2e7b342 54
e86dc1ca
KD
55int lbs_rtap_supported(struct lbs_private *priv);
56
e0e42da3
HS
57int lbs_set_mac_address(struct net_device *dev, void *addr);
58void lbs_set_multicast_list(struct net_device *dev);
d2e7b342 59void lbs_update_mcast(struct lbs_private *priv);
e0e42da3 60
e93156e7 61int lbs_suspend(struct lbs_private *priv);
66fceb69 62int lbs_resume(struct lbs_private *priv);
e93156e7
HS
63
64void lbs_queue_event(struct lbs_private *priv, u32 event);
65void lbs_notify_command_response(struct lbs_private *priv, u8 resp_idx);
66
67int lbs_enter_auto_deep_sleep(struct lbs_private *priv);
68int lbs_exit_auto_deep_sleep(struct lbs_private *priv);
69
70u32 lbs_fw_index_to_data_rate(u8 index);
71u8 lbs_data_rate_to_fw_index(u32 rate);
72
370803c2 73int lbs_get_firmware(struct device *dev, u32 card_model,
72f7a667
DW
74 const struct lbs_fw_table *fw_table,
75 const struct firmware **helper,
76 const struct firmware **mainfw);
534111c7
DD
77int 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);
80void lbs_wait_for_firmware_load(struct lbs_private *priv);
72f7a667 81
10078321 82#endif
This page took 0.706118 seconds and 5 git commands to generate.