Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 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 */ |
| 12 | struct wlan_private; |
| 13 | struct sk_buff; |
| 14 | struct net_device; |
| 15 | |
| 16 | extern char *libertas_fw_name; |
| 17 | |
| 18 | void libertas_free_adapter(wlan_private * priv); |
| 19 | int libertas_set_mac_packet_filter(wlan_private * priv); |
| 20 | |
| 21 | int libertas_send_null_packet(wlan_private * priv, u8 pwr_mgmt); |
| 22 | void libertas_send_tx_feedback(wlan_private * priv); |
| 23 | u8 libertas_check_last_packet_indication(wlan_private * priv); |
| 24 | |
| 25 | int libertas_free_cmd_buffer(wlan_private * priv); |
| 26 | struct cmd_ctrl_node; |
| 27 | struct cmd_ctrl_node *libertas_get_free_cmd_ctrl_node(wlan_private * priv); |
| 28 | |
| 29 | void 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 | |
| 33 | int 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 | |
| 38 | void libertas_queue_cmd(wlan_adapter * adapter, struct cmd_ctrl_node *cmdnode, u8 addtail); |
| 39 | |
| 40 | int libertas_allocate_cmd_buffer(wlan_private * priv); |
| 41 | int libertas_execute_next_command(wlan_private * priv); |
| 42 | int libertas_process_event(wlan_private * priv); |
| 43 | void libertas_interrupt(struct net_device *); |
| 44 | int libertas_set_radio_control(wlan_private * priv); |
| 45 | u32 libertas_index_to_data_rate(u8 index); |
| 46 | u8 libertas_data_rate_to_index(u32 rate); |
| 47 | void libertas_get_fwversion(wlan_adapter * adapter, char *fwversion, int maxlen); |
| 48 | |
Florin Malita | 3d4bd24 | 2007-05-18 16:04:33 -0400 | [diff] [blame] | 49 | void libertas_upload_rx_packet(wlan_private * priv, struct sk_buff *skb); |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 50 | |
| 51 | /** The proc fs interface */ |
| 52 | int libertas_process_rx_command(wlan_private * priv); |
| 53 | int libertas_process_tx(wlan_private * priv, struct sk_buff *skb); |
| 54 | void libertas_cleanup_and_insert_cmd(wlan_private * priv, |
| 55 | struct cmd_ctrl_node *ptempcmd); |
| 56 | void __libertas_cleanup_and_insert_cmd(wlan_private * priv, |
| 57 | struct cmd_ctrl_node *ptempcmd); |
| 58 | |
| 59 | int libertas_set_regiontable(wlan_private * priv, u8 region, u8 band); |
| 60 | |
| 61 | int libertas_process_rxed_packet(wlan_private * priv, struct sk_buff *); |
| 62 | |
| 63 | void libertas_ps_sleep(wlan_private * priv, int wait_option); |
| 64 | void libertas_ps_confirm_sleep(wlan_private * priv, u16 psmode); |
| 65 | void libertas_ps_wakeup(wlan_private * priv, int wait_option); |
| 66 | |
| 67 | void libertas_tx_runqueue(wlan_private *priv); |
| 68 | |
| 69 | extern struct chan_freq_power *libertas_find_cfp_by_band_and_channel( |
| 70 | wlan_adapter * adapter, u8 band, u16 channel); |
| 71 | |
| 72 | extern void libertas_mac_event_disconnected(wlan_private * priv); |
| 73 | |
| 74 | void libertas_send_iwevcustom_event(wlan_private * priv, s8 * str); |
| 75 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 76 | /* main.c */ |
| 77 | extern struct chan_freq_power *libertas_get_region_cfp_table(u8 region, u8 band, |
| 78 | int *cfp_no); |
| 79 | wlan_private *wlan_add_card(void *card); |
Holger Schurig | 32a74b7 | 2007-05-25 12:04:31 -0400 | [diff] [blame] | 80 | int libertas_activate_card(wlan_private *priv); |
Holger Schurig | 1ac812f | 2007-05-25 11:55:19 -0400 | [diff] [blame] | 81 | int wlan_remove_card(wlan_private *priv); |
Holger Schurig | 78523da | 2007-05-25 11:49:19 -0400 | [diff] [blame] | 82 | int wlan_add_mesh(wlan_private *priv); |
| 83 | void wlan_remove_mesh(wlan_private *priv); |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 84 | |
Holger Schurig | 208fdd2 | 2007-05-25 12:17:06 -0400 | [diff] [blame^] | 85 | /* preliminary here */ |
| 86 | int if_usb_register(void); |
| 87 | void if_usb_unregister(void); |
| 88 | |
| 89 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 90 | #endif /* _WLAN_DECL_H_ */ |