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
This commit is contained in:
@@ -1391,6 +1391,9 @@ int pld_athdiag_read(struct device *dev, uint32_t offset,
|
||||
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 @@ int pld_athdiag_write(struct device *dev, uint32_t offset,
|
||||
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;
|
||||
|
@@ -159,6 +159,18 @@ static inline int pld_pcie_wlan_get_dfs_nol(void *info, u16 info_len)
|
||||
{
|
||||
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 @@ static inline int pld_pcie_wlan_get_dfs_nol(void *info, u16 info_len)
|
||||
{
|
||||
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);
|
||||
|
Referens i nytt ärende
Block a user