decl.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /**
  2. * This file contains declaration referring to
  3. * functions defined in other source files
  4. */
  5. #ifndef _WLAN_DECL_H_
  6. #define _WLAN_DECL_H_
  7. #include <linux/device.h>
  8. #include "defs.h"
  9. /** Function Prototype Declaration */
  10. struct wlan_private;
  11. struct sk_buff;
  12. struct net_device;
  13. extern char *libertas_fw_name;
  14. void libertas_free_adapter(wlan_private * priv);
  15. int libertas_set_mac_packet_filter(wlan_private * priv);
  16. int libertas_send_null_packet(wlan_private * priv, u8 pwr_mgmt);
  17. void libertas_send_tx_feedback(wlan_private * priv);
  18. u8 libertas_check_last_packet_indication(wlan_private * priv);
  19. int libertas_free_cmd_buffer(wlan_private * priv);
  20. struct cmd_ctrl_node;
  21. struct cmd_ctrl_node *libertas_get_free_cmd_ctrl_node(wlan_private * priv);
  22. void libertas_set_cmd_ctrl_node(wlan_private * priv,
  23. struct cmd_ctrl_node *ptempnode,
  24. u32 cmd_oid, u16 wait_option, void *pdata_buf);
  25. int libertas_prepare_and_send_command(wlan_private * priv,
  26. u16 cmd_no,
  27. u16 cmd_action,
  28. u16 wait_option, u32 cmd_oid, void *pdata_buf);
  29. void libertas_queue_cmd(wlan_adapter * adapter, struct cmd_ctrl_node *cmdnode, u8 addtail);
  30. int libertas_allocate_cmd_buffer(wlan_private * priv);
  31. int libertas_execute_next_command(wlan_private * priv);
  32. int libertas_process_event(wlan_private * priv);
  33. void libertas_interrupt(struct net_device *);
  34. int libertas_set_radio_control(wlan_private * priv);
  35. u32 libertas_index_to_data_rate(u8 index);
  36. u8 libertas_data_rate_to_index(u32 rate);
  37. void libertas_get_fwversion(wlan_adapter * adapter, char *fwversion, int maxlen);
  38. void libertas_upload_rx_packet(wlan_private * priv, struct sk_buff *skb);
  39. /** The proc fs interface */
  40. int libertas_process_rx_command(wlan_private * priv);
  41. int libertas_process_tx(wlan_private * priv, struct sk_buff *skb);
  42. void libertas_cleanup_and_insert_cmd(wlan_private * priv,
  43. struct cmd_ctrl_node *ptempcmd);
  44. void __libertas_cleanup_and_insert_cmd(wlan_private * priv,
  45. struct cmd_ctrl_node *ptempcmd);
  46. int libertas_set_regiontable(wlan_private * priv, u8 region, u8 band);
  47. int libertas_process_rxed_packet(wlan_private * priv, struct sk_buff *);
  48. void libertas_ps_sleep(wlan_private * priv, int wait_option);
  49. void libertas_ps_confirm_sleep(wlan_private * priv, u16 psmode);
  50. void libertas_ps_wakeup(wlan_private * priv, int wait_option);
  51. void libertas_tx_runqueue(wlan_private *priv);
  52. struct chan_freq_power *libertas_find_cfp_by_band_and_channel(
  53. wlan_adapter * adapter, u8 band, u16 channel);
  54. void libertas_mac_event_disconnected(wlan_private * priv);
  55. void libertas_send_iwevcustom_event(wlan_private * priv, s8 * str);
  56. /* fw.c */
  57. int libertas_init_fw(wlan_private * priv, char *fw_name);
  58. /* main.c */
  59. struct chan_freq_power *libertas_get_region_cfp_table(u8 region, u8 band,
  60. int *cfp_no);
  61. wlan_private *libertas_add_card(void *card, struct device *dmdev);
  62. int libertas_activate_card(wlan_private *priv, char *fw_name);
  63. int libertas_remove_card(wlan_private *priv);
  64. int libertas_add_mesh(wlan_private *priv, struct device *dev);
  65. void libertas_remove_mesh(wlan_private *priv);
  66. #endif /* _WLAN_DECL_H_ */