1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */
2 /*
3  * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
4  */
5 
6 #ifndef ATH11K_DP_TX_H
7 #define ATH11K_DP_TX_H
8 
9 #include "core.h"
10 #include "hal_tx.h"
11 
12 struct ath11k_dp_htt_wbm_tx_status {
13 	u32 msdu_id;
14 	bool acked;
15 	int ack_rssi;
16 };
17 
18 int ath11k_dp_tx_htt_h2t_ver_req_msg(struct ath11k_base *ab);
19 int ath11k_dp_tx(struct ath11k *ar, struct ath11k_vif *arvif,
20 		 struct sk_buff *skb);
21 void ath11k_dp_tx_completion_handler(struct ath11k_base *ab, int ring_id);
22 int ath11k_dp_tx_send_reo_cmd(struct ath11k_base *ab, struct dp_rx_tid *rx_tid,
23 			      enum hal_reo_cmd_type type,
24 			      struct ath11k_hal_reo_cmd *cmd,
25 			      void (*func)(struct ath11k_dp *, void *,
26 					   enum hal_reo_cmd_status));
27 
28 int ath11k_dp_tx_htt_h2t_ppdu_stats_req(struct ath11k *ar, u32 mask);
29 int
30 ath11k_dp_tx_htt_h2t_ext_stats_req(struct ath11k *ar, u8 type,
31 				   struct htt_ext_stats_cfg_params *cfg_params,
32 				   u64 cookie);
33 int ath11k_dp_tx_htt_monitor_mode_ring_config(struct ath11k *ar, bool reset);
34 
35 int ath11k_dp_tx_htt_rx_filter_setup(struct ath11k_base *ab, u32 ring_id,
36 				     int mac_id, enum hal_ring_type ring_type,
37 				     int rx_buf_size,
38 				     struct htt_rx_ring_tlv_filter *tlv_filter);
39 
40 #endif
41