decl.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. /* Should be terminated by a NULL entry */
  10. struct lbs_fw_table {
  11. int model;
  12. const char *helper;
  13. const char *fwname;
  14. };
  15. struct lbs_private;
  16. struct sk_buff;
  17. struct net_device;
  18. struct cmd_ds_command;
  19. /* ethtool.c */
  20. extern const struct ethtool_ops lbs_ethtool_ops;
  21. /* tx.c */
  22. void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count);
  23. netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb,
  24. struct net_device *dev);
  25. /* rx.c */
  26. int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *);
  27. /* main.c */
  28. struct lbs_private *lbs_add_card(void *card, struct device *dmdev);
  29. void lbs_remove_card(struct lbs_private *priv);
  30. int lbs_start_card(struct lbs_private *priv);
  31. void lbs_stop_card(struct lbs_private *priv);
  32. void lbs_host_to_card_done(struct lbs_private *priv);
  33. int lbs_rtap_supported(struct lbs_private *priv);
  34. int lbs_set_mac_address(struct net_device *dev, void *addr);
  35. void lbs_set_multicast_list(struct net_device *dev);
  36. int lbs_suspend(struct lbs_private *priv);
  37. int lbs_resume(struct lbs_private *priv);
  38. void lbs_queue_event(struct lbs_private *priv, u32 event);
  39. void lbs_notify_command_response(struct lbs_private *priv, u8 resp_idx);
  40. int lbs_enter_auto_deep_sleep(struct lbs_private *priv);
  41. int lbs_exit_auto_deep_sleep(struct lbs_private *priv);
  42. u32 lbs_fw_index_to_data_rate(u8 index);
  43. u8 lbs_data_rate_to_fw_index(u32 rate);
  44. int lbs_get_firmware(struct device *dev, const char *user_helper,
  45. const char *user_mainfw, u32 card_model,
  46. const struct lbs_fw_table *fw_table,
  47. const struct firmware **helper,
  48. const struct firmware **mainfw);
  49. #endif