linux/drivers/net/wireless/ath/ath10k/ahb.h

/* SPDX-License-Identifier: ISC */
/*
 * Copyright (c) 2016 Qualcomm Atheros, Inc. All rights reserved.
 * Copyright (c) 2015 The Linux Foundation. All rights reserved.
 */

#ifndef _AHB_H_
#define _AHB_H_

#include <linux/platform_device.h>

struct ath10k_ahb {};

#ifdef CONFIG_ATH10K_AHB

#define ATH10K_GCC_REG_BASE
#define ATH10K_GCC_REG_SIZE

#define ATH10K_TCSR_REG_BASE
#define ATH10K_TCSR_REG_SIZE

#define ATH10K_AHB_GCC_FEPLL_PLL_DIV
#define ATH10K_AHB_WIFI_SCRATCH_5_REG

#define ATH10K_AHB_WLAN_CORE_ID_REG

#define ATH10K_AHB_TCSR_WIFI0_GLB_CFG
#define ATH10K_AHB_TCSR_WIFI1_GLB_CFG
#define TCSR_WIFIX_GLB_CFG_DISABLE_CORE_CLK

#define ATH10K_AHB_TCSR_WCSS0_HALTREQ
#define ATH10K_AHB_TCSR_WCSS1_HALTREQ
#define ATH10K_AHB_TCSR_WCSS0_HALTACK
#define ATH10K_AHB_TCSR_WCSS1_HALTACK

#define ATH10K_AHB_AXI_BUS_HALT_TIMEOUT
#define AHB_AXI_BUS_HALT_REQ
#define AHB_AXI_BUS_HALT_ACK

#define ATH10K_AHB_CORE_CTRL_CPU_INTR_MASK

int ath10k_ahb_init(void);
void ath10k_ahb_exit(void);

#else /* CONFIG_ATH10K_AHB */

static inline int ath10k_ahb_init(void)
{
	return 0;
}

static inline void ath10k_ahb_exit(void)
{
}

#endif /* CONFIG_ATH10K_AHB */

#endif /* _AHB_H_ */