[PATCH] libertas: split module into two (libertas.ko and usb8xxx.ko)
[deliverable/linux.git] / drivers / net / wireless / libertas / decl.h
CommitLineData
876c9d3a
MT
1/**
2 * This file contains declaration referring to
3 * functions defined in other source files
4 */
5
6#ifndef _WLAN_DECL_H_
7#define _WLAN_DECL_H_
8
9#include "defs.h"
10
11/** Function Prototype Declaration */
12struct wlan_private;
13struct sk_buff;
14struct net_device;
15
16extern char *libertas_fw_name;
17
18void libertas_free_adapter(wlan_private * priv);
19int libertas_set_mac_packet_filter(wlan_private * priv);
20
21int libertas_send_null_packet(wlan_private * priv, u8 pwr_mgmt);
22void libertas_send_tx_feedback(wlan_private * priv);
23u8 libertas_check_last_packet_indication(wlan_private * priv);
24
25int libertas_free_cmd_buffer(wlan_private * priv);
26struct cmd_ctrl_node;
27struct cmd_ctrl_node *libertas_get_free_cmd_ctrl_node(wlan_private * priv);
28
29void libertas_set_cmd_ctrl_node(wlan_private * priv,
30 struct cmd_ctrl_node *ptempnode,
31 u32 cmd_oid, u16 wait_option, void *pdata_buf);
32
33int libertas_prepare_and_send_command(wlan_private * priv,
34 u16 cmd_no,
35 u16 cmd_action,
36 u16 wait_option, u32 cmd_oid, void *pdata_buf);
37
38void libertas_queue_cmd(wlan_adapter * adapter, struct cmd_ctrl_node *cmdnode, u8 addtail);
39
40int libertas_allocate_cmd_buffer(wlan_private * priv);
41int libertas_execute_next_command(wlan_private * priv);
42int libertas_process_event(wlan_private * priv);
43void libertas_interrupt(struct net_device *);
44int libertas_set_radio_control(wlan_private * priv);
45u32 libertas_index_to_data_rate(u8 index);
46u8 libertas_data_rate_to_index(u32 rate);
47void libertas_get_fwversion(wlan_adapter * adapter, char *fwversion, int maxlen);
48
3d4bd24b 49void libertas_upload_rx_packet(wlan_private * priv, struct sk_buff *skb);
876c9d3a
MT
50
51/** The proc fs interface */
52int libertas_process_rx_command(wlan_private * priv);
53int libertas_process_tx(wlan_private * priv, struct sk_buff *skb);
54void libertas_cleanup_and_insert_cmd(wlan_private * priv,
55 struct cmd_ctrl_node *ptempcmd);
56void __libertas_cleanup_and_insert_cmd(wlan_private * priv,
57 struct cmd_ctrl_node *ptempcmd);
58
59int libertas_set_regiontable(wlan_private * priv, u8 region, u8 band);
60
61int libertas_process_rxed_packet(wlan_private * priv, struct sk_buff *);
62
63void libertas_ps_sleep(wlan_private * priv, int wait_option);
64void libertas_ps_confirm_sleep(wlan_private * priv, u16 psmode);
65void libertas_ps_wakeup(wlan_private * priv, int wait_option);
66
67void libertas_tx_runqueue(wlan_private *priv);
68
ed457037 69struct chan_freq_power *libertas_find_cfp_by_band_and_channel(
876c9d3a
MT
70 wlan_adapter * adapter, u8 band, u16 channel);
71
ed457037 72void libertas_mac_event_disconnected(wlan_private * priv);
876c9d3a
MT
73
74void libertas_send_iwevcustom_event(wlan_private * priv, s8 * str);
75
ed457037 76/* fw.c */
084708b6 77int libertas_init_fw(wlan_private * priv, char *fw_name);
ed457037 78
876c9d3a 79/* main.c */
ed457037 80struct chan_freq_power *libertas_get_region_cfp_table(u8 region, u8 band,
876c9d3a 81 int *cfp_no);
084708b6
HS
82wlan_private *libertas_add_card(void *card);
83int libertas_activate_card(wlan_private *priv, char *fw_name);
84int libertas_remove_card(wlan_private *priv);
85int libertas_add_mesh(wlan_private *priv);
86void libertas_remove_mesh(wlan_private *priv);
208fdd2f
HS
87
88
876c9d3a 89#endif /* _WLAN_DECL_H_ */
This page took 0.055816 seconds and 5 git commands to generate.