]> git.proxmox.com Git - mirror_ubuntu-kernels.git/blame - drivers/net/wireless/libertas/decl.h
libertas: configurable beacon interval
[mirror_ubuntu-kernels.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
10078321
HS
6#ifndef _LBS_DECL_H_
7#define _LBS_DECL_H_
876c9d3a 8
7732ca45
DW
9#include <linux/device.h>
10
876c9d3a
MT
11#include "defs.h"
12
13/** Function Prototype Declaration */
10078321 14struct lbs_private;
876c9d3a
MT
15struct sk_buff;
16struct net_device;
17
10078321 18int lbs_set_mac_packet_filter(lbs_private * priv);
876c9d3a 19
10078321 20void lbs_send_tx_feedback(lbs_private * priv);
876c9d3a 21
10078321 22int lbs_free_cmd_buffer(lbs_private * priv);
876c9d3a 23struct cmd_ctrl_node;
10078321 24struct cmd_ctrl_node *lbs_get_free_cmd_ctrl_node(lbs_private * priv);
876c9d3a 25
10078321 26void lbs_set_cmd_ctrl_node(lbs_private * priv,
876c9d3a
MT
27 struct cmd_ctrl_node *ptempnode,
28 u32 cmd_oid, u16 wait_option, void *pdata_buf);
29
10078321 30int lbs_prepare_and_send_command(lbs_private * priv,
876c9d3a
MT
31 u16 cmd_no,
32 u16 cmd_action,
33 u16 wait_option, u32 cmd_oid, void *pdata_buf);
34
10078321 35void lbs_queue_cmd(lbs_adapter *adapter, struct cmd_ctrl_node *cmdnode, u8 addtail);
876c9d3a 36
10078321
HS
37int lbs_allocate_cmd_buffer(lbs_private * priv);
38int lbs_execute_next_command(lbs_private * priv);
39int lbs_process_event(lbs_private * priv);
40void lbs_interrupt(struct net_device *);
41int lbs_set_radio_control(lbs_private * priv);
42u32 lbs_fw_index_to_data_rate(u8 index);
43u8 lbs_data_rate_to_fw_index(u32 rate);
44void lbs_get_fwversion(lbs_adapter *adapter, char *fwversion, int maxlen);
876c9d3a 45
10078321 46void lbs_upload_rx_packet(lbs_private * priv, struct sk_buff *skb);
876c9d3a
MT
47
48/** The proc fs interface */
10078321
HS
49int lbs_process_rx_command(lbs_private * priv);
50int lbs_process_tx(lbs_private * priv, struct sk_buff *skb);
51void __lbs_cleanup_and_insert_cmd(lbs_private * priv,
876c9d3a
MT
52 struct cmd_ctrl_node *ptempcmd);
53
10078321 54int lbs_set_regiontable(lbs_private * priv, u8 region, u8 band);
876c9d3a 55
10078321 56int lbs_process_rxed_packet(lbs_private * priv, struct sk_buff *);
876c9d3a 57
10078321
HS
58void lbs_ps_sleep(lbs_private * priv, int wait_option);
59void lbs_ps_confirm_sleep(lbs_private * priv, u16 psmode);
60void lbs_ps_wakeup(lbs_private * priv, int wait_option);
876c9d3a 61
10078321 62void lbs_tx_runqueue(lbs_private *priv);
876c9d3a 63
10078321
HS
64struct chan_freq_power *lbs_find_cfp_by_band_and_channel(
65 lbs_adapter *adapter, u8 band, u16 channel);
876c9d3a 66
10078321 67void lbs_mac_event_disconnected(lbs_private * priv);
876c9d3a 68
10078321 69void lbs_send_iwevcustom_event(lbs_private *priv, s8 *str);
876c9d3a 70
876c9d3a 71/* main.c */
10078321 72struct chan_freq_power *lbs_get_region_cfp_table(u8 region, u8 band,
876c9d3a 73 int *cfp_no);
10078321
HS
74lbs_private *lbs_add_card(void *card, struct device *dmdev);
75int lbs_remove_card(lbs_private *priv);
76int lbs_start_card(lbs_private *priv);
77int lbs_stop_card(lbs_private *priv);
78int lbs_add_mesh(lbs_private *priv, struct device *dev);
79void lbs_remove_mesh(lbs_private *priv);
80int lbs_reset_device(lbs_private *priv);
81
82#endif