decl.h 2.3 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/netdevice.h>
  8. #include <linux/firmware.h>
  9. #include <linux/nl80211.h>
  10. /* Should be terminated by a NULL entry */
  11. struct lbs_fw_table {
  12. int model;
  13. const char *helper;
  14. const char *fwname;
  15. };
  16. struct lbs_private;
  17. typedef void (*lbs_fw_cb)(struct lbs_private *priv, int ret,
  18. const struct firmware *helper, const struct firmware *mainfw);
  19. struct lbs_private;
  20. struct sk_buff;
  21. struct net_device;
  22. struct cmd_ds_command;
  23. /* ethtool.c */
  24. extern const struct ethtool_ops lbs_ethtool_ops;
  25. /* tx.c */
  26. void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count);
  27. netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb,
  28. struct net_device *dev);
  29. /* rx.c */
  30. int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *);
  31. /* main.c */
  32. struct lbs_private *lbs_add_card(void *card, struct device *dmdev);
  33. void lbs_remove_card(struct lbs_private *priv);
  34. int lbs_start_card(struct lbs_private *priv);
  35. void lbs_stop_card(struct lbs_private *priv);
  36. void lbs_host_to_card_done(struct lbs_private *priv);
  37. int lbs_start_iface(struct lbs_private *priv);
  38. int lbs_stop_iface(struct lbs_private *priv);
  39. int lbs_set_iface_type(struct lbs_private *priv, enum nl80211_iftype type);
  40. int lbs_rtap_supported(struct lbs_private *priv);
  41. int lbs_set_mac_address(struct net_device *dev, void *addr);
  42. void lbs_set_multicast_list(struct net_device *dev);
  43. void lbs_update_mcast(struct lbs_private *priv);
  44. int lbs_suspend(struct lbs_private *priv);
  45. int lbs_resume(struct lbs_private *priv);
  46. void lbs_queue_event(struct lbs_private *priv, u32 event);
  47. void lbs_notify_command_response(struct lbs_private *priv, u8 resp_idx);
  48. int lbs_enter_auto_deep_sleep(struct lbs_private *priv);
  49. int lbs_exit_auto_deep_sleep(struct lbs_private *priv);
  50. u32 lbs_fw_index_to_data_rate(u8 index);
  51. u8 lbs_data_rate_to_fw_index(u32 rate);
  52. int lbs_get_firmware(struct device *dev, u32 card_model,
  53. const struct lbs_fw_table *fw_table,
  54. const struct firmware **helper,
  55. const struct firmware **mainfw);
  56. int lbs_get_firmware_async(struct lbs_private *priv, struct device *device,
  57. u32 card_model, const struct lbs_fw_table *fw_table,
  58. lbs_fw_cb callback);
  59. void lbs_wait_for_firmware_load(struct lbs_private *priv);
  60. #endif