decl.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /**
  2. * This file contains declaration referring to
  3. * functions defined in other source files
  4. */
  5. #ifndef _LBS_DECL_H_
  6. #define _LBS_DECL_H_
  7. #include <linux/device.h>
  8. #include "defs.h"
  9. /** Function Prototype Declaration */
  10. struct lbs_private;
  11. struct sk_buff;
  12. struct net_device;
  13. int lbs_set_mac_packet_filter(lbs_private * priv);
  14. void lbs_send_tx_feedback(lbs_private * priv);
  15. int lbs_free_cmd_buffer(lbs_private * priv);
  16. struct cmd_ctrl_node;
  17. struct cmd_ctrl_node *lbs_get_free_cmd_ctrl_node(lbs_private * priv);
  18. void lbs_set_cmd_ctrl_node(lbs_private * priv,
  19. struct cmd_ctrl_node *ptempnode,
  20. u32 cmd_oid, u16 wait_option, void *pdata_buf);
  21. int lbs_prepare_and_send_command(lbs_private * priv,
  22. u16 cmd_no,
  23. u16 cmd_action,
  24. u16 wait_option, u32 cmd_oid, void *pdata_buf);
  25. void lbs_queue_cmd(lbs_adapter *adapter, struct cmd_ctrl_node *cmdnode, u8 addtail);
  26. int lbs_allocate_cmd_buffer(lbs_private * priv);
  27. int lbs_execute_next_command(lbs_private * priv);
  28. int lbs_process_event(lbs_private * priv);
  29. void lbs_interrupt(struct net_device *);
  30. int lbs_set_radio_control(lbs_private * priv);
  31. u32 lbs_fw_index_to_data_rate(u8 index);
  32. u8 lbs_data_rate_to_fw_index(u32 rate);
  33. void lbs_get_fwversion(lbs_adapter *adapter, char *fwversion, int maxlen);
  34. void lbs_upload_rx_packet(lbs_private * priv, struct sk_buff *skb);
  35. /** The proc fs interface */
  36. int lbs_process_rx_command(lbs_private * priv);
  37. int lbs_process_tx(lbs_private * priv, struct sk_buff *skb);
  38. void __lbs_cleanup_and_insert_cmd(lbs_private * priv,
  39. struct cmd_ctrl_node *ptempcmd);
  40. int lbs_set_regiontable(lbs_private * priv, u8 region, u8 band);
  41. int lbs_process_rxed_packet(lbs_private * priv, struct sk_buff *);
  42. void lbs_ps_sleep(lbs_private * priv, int wait_option);
  43. void lbs_ps_confirm_sleep(lbs_private * priv, u16 psmode);
  44. void lbs_ps_wakeup(lbs_private * priv, int wait_option);
  45. void lbs_tx_runqueue(lbs_private *priv);
  46. struct chan_freq_power *lbs_find_cfp_by_band_and_channel(
  47. lbs_adapter *adapter, u8 band, u16 channel);
  48. void lbs_mac_event_disconnected(lbs_private * priv);
  49. void lbs_send_iwevcustom_event(lbs_private *priv, s8 *str);
  50. /* main.c */
  51. struct chan_freq_power *lbs_get_region_cfp_table(u8 region, u8 band,
  52. int *cfp_no);
  53. lbs_private *lbs_add_card(void *card, struct device *dmdev);
  54. int lbs_remove_card(lbs_private *priv);
  55. int lbs_start_card(lbs_private *priv);
  56. int lbs_stop_card(lbs_private *priv);
  57. int lbs_add_mesh(lbs_private *priv, struct device *dev);
  58. void lbs_remove_mesh(lbs_private *priv);
  59. int lbs_reset_device(lbs_private *priv);
  60. #endif