|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2016 The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
|
|
|
*
|
|
|
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
|
|
|
*
|
|
@@ -66,16 +66,26 @@ void pld_pcie_unregister_driver(void);
|
|
|
int pld_pcie_get_ce_id(int irq);
|
|
|
#endif
|
|
|
|
|
|
-#if (!defined(CONFIG_PLD_PCIE_CNSS)) || (!defined(QCA_WIFI_3_0_ADRASTEA))
|
|
|
-static inline int pld_pcie_wlan_enable(struct pld_wlan_enable_cfg *config,
|
|
|
- enum pld_driver_mode mode, const char *host_version)
|
|
|
+#ifndef CONFIG_PLD_PCIE_CNSS
|
|
|
+static inline int pld_pcie_wlan_enable(struct device *dev,
|
|
|
+ struct pld_wlan_enable_cfg *config,
|
|
|
+ enum pld_driver_mode mode,
|
|
|
+ const char *host_version)
|
|
|
{
|
|
|
return 0;
|
|
|
}
|
|
|
-static inline int pld_pcie_wlan_disable(enum pld_driver_mode mode)
|
|
|
+static inline int pld_pcie_wlan_disable(struct device *dev,
|
|
|
+ enum pld_driver_mode mode)
|
|
|
{
|
|
|
return 0;
|
|
|
}
|
|
|
+#else
|
|
|
+int pld_pcie_wlan_enable(struct device *dev, struct pld_wlan_enable_cfg *config,
|
|
|
+ enum pld_driver_mode mode, const char *host_version);
|
|
|
+int pld_pcie_wlan_disable(struct device *dev, enum pld_driver_mode mode);
|
|
|
+#endif
|
|
|
+
|
|
|
+#if (!defined(CONFIG_PLD_PCIE_CNSS)) || (!defined(QCA_WIFI_3_0_ADRASTEA))
|
|
|
static inline int pld_pcie_set_fw_debug_mode(bool enablefwlog)
|
|
|
{
|
|
|
return 0;
|
|
@@ -85,9 +95,6 @@ static inline void pld_pcie_intr_notify_q6(void)
|
|
|
return;
|
|
|
}
|
|
|
#else
|
|
|
-int pld_pcie_wlan_enable(struct pld_wlan_enable_cfg *config,
|
|
|
- enum pld_driver_mode mode, const char *host_version);
|
|
|
-int pld_pcie_wlan_disable(enum pld_driver_mode mode);
|
|
|
static inline int pld_pcie_set_fw_debug_mode(bool enablefwlog)
|
|
|
{
|
|
|
return cnss_set_fw_debug_mode(enablefwlog);
|