txrx.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) 2005-2011 Atheros Communications Inc.
  3. * Copyright (c) 2011-2013 Qualcomm Atheros, Inc.
  4. *
  5. * Permission to use, copy, modify, and/or distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. #ifndef _TXRX_H_
  18. #define _TXRX_H_
  19. #include "htt.h"
  20. void ath10k_txrx_tx_unref(struct ath10k_htt *htt, struct sk_buff *txdesc);
  21. void ath10k_txrx_tx_completed(struct ath10k_htt *htt,
  22. const struct htt_tx_done *tx_done);
  23. void ath10k_process_rx(struct ath10k *ar, struct htt_rx_info *info);
  24. struct ath10k_peer *ath10k_peer_find(struct ath10k *ar, int vdev_id,
  25. const u8 *addr);
  26. int ath10k_wait_for_peer_created(struct ath10k *ar, int vdev_id,
  27. const u8 *addr);
  28. int ath10k_wait_for_peer_deleted(struct ath10k *ar, int vdev_id,
  29. const u8 *addr);
  30. void ath10k_peer_map_event(struct ath10k_htt *htt,
  31. struct htt_peer_map_event *ev);
  32. void ath10k_peer_unmap_event(struct ath10k_htt *htt,
  33. struct htt_peer_unmap_event *ev);
  34. #endif