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 
20 #include "htt.h"
21 
22 int ath10k_txrx_tx_unref(struct ath10k_htt *htt,
23 			 const struct htt_tx_done *tx_done);
24 
25 struct ath10k_peer *ath10k_peer_find(struct ath10k *ar, int vdev_id,
26 				     const u8 *addr);
27 struct ath10k_peer *ath10k_peer_find_by_id(struct ath10k *ar, int peer_id);
28 int ath10k_wait_for_peer_created(struct ath10k *ar, int vdev_id,
29 				 const u8 *addr);
30 int ath10k_wait_for_peer_deleted(struct ath10k *ar, int vdev_id,
31 				 const u8 *addr);
32 
33 void ath10k_peer_map_event(struct ath10k_htt *htt,
34 			   struct htt_peer_map_event *ev);
35 void ath10k_peer_unmap_event(struct ath10k_htt *htt,
36 			     struct htt_peer_unmap_event *ev);
37 
38 #endif
39