xref: /freebsd/sys/contrib/dev/athk/ath10k/txrx.h (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1 /* SPDX-License-Identifier: ISC */
2 /*
3  * Copyright (c) 2005-2011 Atheros Communications Inc.
4  * Copyright (c) 2011-2014,2016 Qualcomm Atheros, Inc.
5  */
6 #ifndef _TXRX_H_
7 #define _TXRX_H_
8 
9 #include "htt.h"
10 
11 int ath10k_txrx_tx_unref(struct ath10k_htt *htt,
12 			 const struct htt_tx_done *tx_done);
13 
14 struct ath10k_peer *ath10k_peer_find(struct ath10k *ar, int vdev_id,
15 				     const u8 *addr);
16 struct ath10k_peer *ath10k_peer_find_by_id(struct ath10k *ar, int peer_id);
17 int ath10k_wait_for_peer_created(struct ath10k *ar, int vdev_id,
18 				 const u8 *addr);
19 int ath10k_wait_for_peer_deleted(struct ath10k *ar, int vdev_id,
20 				 const u8 *addr);
21 
22 void ath10k_peer_map_event(struct ath10k_htt *htt,
23 			   struct htt_peer_map_event *ev);
24 void ath10k_peer_unmap_event(struct ath10k_htt *htt,
25 			     struct htt_peer_unmap_event *ev);
26 
27 #endif
28