ath10k: mac80211 driver for Qualcomm Atheros 802.11ac CQA98xx devices
[cascardo/linux.git] / drivers / net / wireless / ath / ath10k / txrx.h
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 void ath10k_txrx_tx_unref(struct ath10k_htt *htt, struct sk_buff *txdesc);
23 void ath10k_txrx_tx_completed(struct ath10k_htt *htt,
24                               const struct htt_tx_done *tx_done);
25 void ath10k_process_rx(struct ath10k *ar, struct htt_rx_info *info);
26
27 struct ath10k_peer *ath10k_peer_find(struct ath10k *ar, int vdev_id,
28                                      const u8 *addr);
29 int ath10k_wait_for_peer_created(struct ath10k *ar, int vdev_id,
30                                  const u8 *addr);
31 int ath10k_wait_for_peer_deleted(struct ath10k *ar, int vdev_id,
32                                  const u8 *addr);
33
34 void ath10k_peer_map_event(struct ath10k_htt *htt,
35                            struct htt_peer_map_event *ev);
36 void ath10k_peer_unmap_event(struct ath10k_htt *htt,
37                              struct htt_peer_unmap_event *ev);
38
39 #endif