Add the support to attach WCN6750 and map iommu domain for targets which do not have the support of TrustZone. Tested-on: WCN6750 hw1.0 AHB WLAN.MSL.1.0.1-00573-QCAMSLSWPLZ-1 Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1 Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.5.0.1-01100-QCAHKSWPL_SILICONZ-1 Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-00192-QCAHKSWPL_SILICONZ-1 Signed-off-by: Manikanta Pubbisetty <quic_mpubbise@quicinc.com> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20220328062032.28881-1-quic_mpubbise@quicinc.com
30 lines
601 B
C
30 lines
601 B
C
/* SPDX-License-Identifier: BSD-3-Clause-Clear */
|
|
/*
|
|
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
|
|
*/
|
|
#ifndef ATH11K_AHB_H
|
|
#define ATH11K_AHB_H
|
|
|
|
#include "core.h"
|
|
|
|
#define ATH11K_AHB_RECOVERY_TIMEOUT (3 * HZ)
|
|
struct ath11k_base;
|
|
|
|
struct ath11k_ahb {
|
|
struct rproc *tgt_rproc;
|
|
struct {
|
|
struct device *dev;
|
|
struct iommu_domain *iommu_domain;
|
|
dma_addr_t msa_paddr;
|
|
u32 msa_size;
|
|
dma_addr_t ce_paddr;
|
|
u32 ce_size;
|
|
bool use_tz;
|
|
} fw;
|
|
};
|
|
|
|
static inline struct ath11k_ahb *ath11k_ahb_priv(struct ath11k_base *ab)
|
|
{
|
|
return (struct ath11k_ahb *)ab->drv_priv;
|
|
}
|
|
#endif
|