Explorar el Código

qcacld-3.0: suppot WHUNT for CMEM allocation

support WHUNT for CMEM allocation.

Change-Id: I2e28a39bdc5a910526707bc278e6e4a7b08d703f
CRs-Fixed: 2929515
Jinwei Chen hace 4 años
padre
commit
b01dccdb52
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6 2
      core/pld/src/pld_pcie_fw_sim.c

+ 6 - 2
core/pld/src/pld_pcie_fw_sim.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2021 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
@@ -705,7 +705,7 @@ int pld_pcie_fw_sim_wlan_disable(struct device *dev, enum pld_driver_mode mode)
  */
 int pld_pcie_fw_sim_get_soc_info(struct device *dev, struct pld_soc_info *info)
 {
-	int ret = 0;
+	int ret = 0, i;
 	struct cnss_soc_info cnss_info = {0};
 
 	if (!info)
@@ -732,6 +732,10 @@ int pld_pcie_fw_sim_get_soc_info(struct device *dev, struct pld_soc_info *info)
 		cnss_info.device_version.major_version;
 	info->device_version.minor_version =
 		cnss_info.device_version.minor_version;
+	for (i = 0; i < PLD_MAX_DEV_MEM_NUM; i++) {
+		info->dev_mem_info[i].start = cnss_info.dev_mem_info[i].start;
+		info->dev_mem_info[i].size = cnss_info.dev_mem_info[i].size;
+	}
 
 	return 0;
 }