qcacld-3.0: Add PLD APIs to support athdiag read/write

Add PLD APIs to support athdiag read/write though QMI messages.

Change-Id: I4887065fa390c7e3374a7297103bd93d3d35c429
CRs-fixed: 2043584
diff --git a/core/pld/src/pld_common.c b/core/pld/src/pld_common.c
index 9c441a0..63f9108 100644
--- a/core/pld/src/pld_common.c
+++ b/core/pld/src/pld_common.c
@@ -1391,6 +1391,9 @@
 					    datalen, output);
 		break;
 	case PLD_BUS_TYPE_PCIE:
+		ret = pld_pcie_athdiag_read(dev, offset, memtype,
+					    datalen, output);
+		break;
 	case PLD_BUS_TYPE_SDIO:
 	case PLD_BUS_TYPE_USB:
 		break;
@@ -1425,6 +1428,9 @@
 					     datalen, input);
 		break;
 	case PLD_BUS_TYPE_PCIE:
+		ret = pld_pcie_athdiag_write(dev, offset, memtype,
+					     datalen, input);
+		break;
 	case PLD_BUS_TYPE_SDIO:
 	case PLD_BUS_TYPE_USB:
 		break;
diff --git a/core/pld/src/pld_pcie.h b/core/pld/src/pld_pcie.h
index 84ff435..2e27f79 100644
--- a/core/pld/src/pld_pcie.h
+++ b/core/pld/src/pld_pcie.h
@@ -159,6 +159,18 @@
 {
 	return 0;
 }
+static inline int pld_pcie_athdiag_read(struct device *dev, uint32_t offset,
+					uint32_t memtype, uint32_t datalen,
+					uint8_t *output)
+{
+	return 0;
+}
+static inline int pld_pcie_athdiag_write(struct device *dev, uint32_t offset,
+					 uint32_t memtype, uint32_t datalen,
+					 uint8_t *input)
+{
+	return 0;
+}
 static inline void pld_pcie_schedule_recovery_work(struct device *dev,
 					   enum pld_recovery_reason reason)
 {
@@ -280,6 +292,18 @@
 {
 	return cnss_wlan_get_dfs_nol(info, info_len);
 }
+static inline int pld_pcie_athdiag_read(struct device *dev, uint32_t offset,
+					uint32_t memtype, uint32_t datalen,
+					uint8_t *output)
+{
+	return cnss_athdiag_read(dev, offset, memtype, datalen, output);
+}
+static inline int pld_pcie_athdiag_write(struct device *dev, uint32_t offset,
+					 uint32_t memtype, uint32_t datalen,
+					 uint8_t *input)
+{
+	return cnss_athdiag_write(dev, offset, memtype, datalen, input);
+}
 static inline void *pld_pcie_get_virt_ramdump_mem(unsigned long *size)
 {
 	return cnss_get_virt_ramdump_mem(size);