qcacmn: Remove HK header dependencies for ipq6018 compilation
Add target specific HW header for ipq6018 compilation. Remove the 8074 header dependencies for 6018 compilation. Change-Id: I8e45e3e039a4596c6722538405dcd381918fa6b1
This commit is contained in:

committed by
nshrivas

parent
99d0783cec
commit
b85768e4e5
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2011-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -56,7 +56,7 @@ ol_txrx_soc_handle ol_txrx_soc_attach(void *scn_handle, struct ol_if_ops *dp_ol_
|
||||
*
|
||||
* Return: DP SOC handle on success, NULL on failure
|
||||
*/
|
||||
#ifdef QCA_WIFI_QCA8074
|
||||
#if defined(QCA_WIFI_QCA8074) || defined(QCA_WIFI_QCA6018)
|
||||
void *dp_soc_attach_wifi3(void *ctrl_psoc, void *hif_handle,
|
||||
HTC_HANDLE htc_handle, qdf_device_t qdf_osdev,
|
||||
struct ol_if_ops *ol_ops, uint16_t device_id);
|
||||
|
@@ -10500,7 +10500,7 @@ static void dp_soc_set_txrx_ring_map(struct dp_soc *soc)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef QCA_WIFI_QCA8074
|
||||
#if defined(QCA_WIFI_QCA8074) || defined(QCA_WIFI_QCA6018)
|
||||
|
||||
#ifndef QCA_MEM_ATTACH_ON_WIFI3
|
||||
|
||||
|
@@ -1695,7 +1695,7 @@ static void dp_reo_desc_free(struct dp_soc *soc, void *cb_ctxt,
|
||||
qdf_mem_free(freedesc);
|
||||
}
|
||||
|
||||
#if defined(QCA_WIFI_QCA8074) && defined(BUILD_X86)
|
||||
#if defined(QCA_WIFI_QCA8074_VP) && defined(BUILD_X86)
|
||||
/* Hawkeye emulation requires bus address to be >= 0x50000000 */
|
||||
static inline int dp_reo_desc_addr_chk(qdf_dma_addr_t dma_addr)
|
||||
{
|
||||
|
@@ -52,8 +52,8 @@
|
||||
#endif
|
||||
#include "mp_dev.h"
|
||||
|
||||
#if (defined(QCA_WIFI_QCA8074) || defined(QCA_WIFI_QCA6290)) && \
|
||||
!defined(QCA_WIFI_SUPPORT_SRNG)
|
||||
#if (defined(QCA_WIFI_QCA8074) || defined(QCA_WIFI_QCA6290) || \
|
||||
defined(QCA_WIFI_QCA6018)) && !defined(QCA_WIFI_SUPPORT_SRNG)
|
||||
#define QCA_WIFI_SUPPORT_SRNG
|
||||
#endif
|
||||
|
||||
|
@@ -38,7 +38,7 @@
|
||||
#include "qdf_status.h"
|
||||
#include "hif_debug.h"
|
||||
#include "mp_dev.h"
|
||||
#ifdef QCA_WIFI_QCA8074
|
||||
#if defined(QCA_WIFI_QCA8074) || defined(QCA_WIFI_QCA6018)
|
||||
#include "hal_api.h"
|
||||
#endif
|
||||
#include "hif_napi.h"
|
||||
@@ -486,7 +486,7 @@ void hif_close(struct hif_opaque_softc *hif_ctx)
|
||||
qdf_mem_free(scn);
|
||||
}
|
||||
|
||||
#if defined(QCA_WIFI_QCA8074) || \
|
||||
#if defined(QCA_WIFI_QCA8074) || defined(QCA_WIFI_QCA6018) || \
|
||||
defined(QCA_WIFI_QCA6290) || defined(QCA_WIFI_QCA6390)
|
||||
static QDF_STATUS hif_hal_attach(struct hif_softc *scn)
|
||||
{
|
||||
|
@@ -45,7 +45,8 @@ ATH_DEBUG_INSTANTIATE_MODULE_VAR(htc,
|
||||
|
||||
#endif
|
||||
|
||||
#if (defined(CONFIG_MCL) || (QCA_WIFI_QCA8074))
|
||||
#if (defined(CONFIG_MCL) || defined(QCA_WIFI_QCA8074) || \
|
||||
defined(QCA_WIFI_QCA6018))
|
||||
static const uint32_t svc_id[] = {WMI_CONTROL_SVC, WMI_CONTROL_SVC_WMAC1,
|
||||
WMI_CONTROL_SVC_WMAC2};
|
||||
#else
|
||||
|
@@ -1538,7 +1538,7 @@ static inline void *qdf_mem_dma_alloc(qdf_device_t osdev, void *dev,
|
||||
return vaddr;
|
||||
}
|
||||
|
||||
#elif defined(QCA_WIFI_QCA8074) && defined(BUILD_X86)
|
||||
#elif defined(QCA_WIFI_QCA8074_VP) && defined(BUILD_X86)
|
||||
#define QCA8074_RAM_BASE 0x50000000
|
||||
#define QDF_MEM_ALLOC_X86_MAX_RETRIES 10
|
||||
void *qdf_mem_dma_alloc(qdf_device_t osdev, void *dev, qdf_size_t size,
|
||||
|
@@ -352,7 +352,7 @@ void __qdf_nbuf_count_dec(__qdf_nbuf_t nbuf)
|
||||
qdf_export_symbol(__qdf_nbuf_count_dec);
|
||||
#endif
|
||||
|
||||
#if defined(QCA_WIFI_QCA8074) && defined (BUILD_X86)
|
||||
#if defined(QCA_WIFI_QCA8074_VP) && defined(BUILD_X86)
|
||||
struct sk_buff *__qdf_nbuf_alloc(qdf_device_t osdev, size_t size, int reserve,
|
||||
int align, int prio, const char *func,
|
||||
uint32_t line)
|
||||
|
@@ -390,7 +390,8 @@ free_vdevref:
|
||||
}
|
||||
#endif
|
||||
|
||||
#if (defined(CONFIG_MCL) || (QCA_WIFI_QCA8074))
|
||||
#if (defined(CONFIG_MCL) || defined(QCA_WIFI_QCA8074) || \
|
||||
defined(QCA_WIFI_QCA6018))
|
||||
QDF_STATUS target_process_bang_radar_cmd(
|
||||
struct wlan_objmgr_pdev *pdev,
|
||||
struct dfs_emulate_bang_radar_test_cmd *dfs_unit_test)
|
||||
|
Reference in New Issue
Block a user