xref: /linux/drivers/net/wireless/ath/ath12k/dp_tx.h (revision fb7399cf2d0b33825b8039f95c45395c7deba25c)
1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */
2 /*
3  * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
4  * Copyright (c) 2021-2022, 2024-2025 Qualcomm Innovation Center, Inc. All rights reserved.
5  */
6 
7 #ifndef ATH12K_DP_TX_H
8 #define ATH12K_DP_TX_H
9 
10 #include "core.h"
11 #include "hal_tx.h"
12 
13 struct ath12k_dp_htt_wbm_tx_status {
14 	bool acked;
15 	s8 ack_rssi;
16 };
17 
18 int ath12k_dp_tx_htt_h2t_ver_req_msg(struct ath12k_base *ab);
19 int ath12k_dp_tx(struct ath12k *ar, struct ath12k_link_vif *arvif,
20 		 struct sk_buff *skb, bool gsn_valid, int mcbc_gsn,
21 		 bool is_mcast);
22 void ath12k_dp_tx_completion_handler(struct ath12k_base *ab, int ring_id);
23 
24 int ath12k_dp_tx_htt_h2t_ppdu_stats_req(struct ath12k *ar, u32 mask);
25 int
26 ath12k_dp_tx_htt_h2t_ext_stats_req(struct ath12k *ar, u8 type,
27 				   struct htt_ext_stats_cfg_params *cfg_params,
28 				   u64 cookie);
29 int ath12k_dp_tx_htt_rx_monitor_mode_ring_config(struct ath12k *ar, bool reset);
30 
31 int ath12k_dp_tx_htt_rx_filter_setup(struct ath12k_base *ab, u32 ring_id,
32 				     int mac_id, enum hal_ring_type ring_type,
33 				     int rx_buf_size,
34 				     struct htt_rx_ring_tlv_filter *tlv_filter);
35 void ath12k_dp_tx_put_bank_profile(struct ath12k_dp *dp, u8 bank_id);
36 int ath12k_dp_tx_htt_tx_filter_setup(struct ath12k_base *ab, u32 ring_id,
37 				     int mac_id, enum hal_ring_type ring_type,
38 				     int tx_buf_size,
39 				     struct htt_tx_ring_tlv_filter *htt_tlv_filter);
40 int ath12k_dp_tx_htt_monitor_mode_ring_config(struct ath12k *ar, bool reset);
41 #endif
42