decl.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. struct lbs_private;
  9. struct sk_buff;
  10. struct net_device;
  11. struct cmd_ds_command;
  12. /* ethtool.c */
  13. extern const struct ethtool_ops lbs_ethtool_ops;
  14. /* tx.c */
  15. void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count);
  16. netdev_tx_t lbs_hard_start_xmit(struct sk_buff *skb,
  17. struct net_device *dev);
  18. /* rx.c */
  19. int lbs_process_rxed_packet(struct lbs_private *priv, struct sk_buff *);
  20. /* main.c */
  21. struct lbs_private *lbs_add_card(void *card, struct device *dmdev);
  22. void lbs_remove_card(struct lbs_private *priv);
  23. int lbs_start_card(struct lbs_private *priv);
  24. void lbs_stop_card(struct lbs_private *priv);
  25. void lbs_host_to_card_done(struct lbs_private *priv);
  26. int lbs_rtap_supported(struct lbs_private *priv);
  27. int lbs_set_mac_address(struct net_device *dev, void *addr);
  28. void lbs_set_multicast_list(struct net_device *dev);
  29. int lbs_suspend(struct lbs_private *priv);
  30. int lbs_resume(struct lbs_private *priv);
  31. void lbs_queue_event(struct lbs_private *priv, u32 event);
  32. void lbs_notify_command_response(struct lbs_private *priv, u8 resp_idx);
  33. int lbs_enter_auto_deep_sleep(struct lbs_private *priv);
  34. int lbs_exit_auto_deep_sleep(struct lbs_private *priv);
  35. u32 lbs_fw_index_to_data_rate(u8 index);
  36. u8 lbs_data_rate_to_fw_index(u32 rate);
  37. #endif