1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */
3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
4 * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
11 #define ATH11K_AHB_RECOVERY_TIMEOUT (3 * HZ)
13 #define ATH11K_AHB_SMP2P_SMEM_MSG GENMASK(15, 0)
14 #define ATH11K_AHB_SMP2P_SMEM_SEQ_NO GENMASK(31, 16)
15 #define ATH11K_AHB_SMP2P_SMEM_VALUE_MASK 0xFFFFFFFF
17 enum ath11k_ahb_smp2p_msg_id
{
18 ATH11K_AHB_POWER_SAVE_ENTER
= 1,
19 ATH11K_AHB_POWER_SAVE_EXIT
,
25 struct rproc
*tgt_rproc
;
28 struct iommu_domain
*iommu_domain
;
36 unsigned short seq_no
;
37 unsigned int smem_bit
;
38 struct qcom_smem_state
*smem_state
;
42 static inline struct ath11k_ahb
*ath11k_ahb_priv(struct ath11k_base
*ab
)
44 return (struct ath11k_ahb
*)ab
->drv_priv
;