From 1947a834f5a5679ade549c39d0ac66c9a25043c5 Mon Sep 17 00:00:00 2001 From: Yuanyuan Liu Date: Thu, 16 Jun 2016 13:42:33 -0700 Subject: icnss: Add support of sending athdiag read/write messages Add support of sending athdiag read/write commands through QMI. This enhance the runtime debugging of WLAN Hardware. CRs-Fixed: 1038933 Change-Id: I6639ecce6c24d8b9757a98757bcc3f0cd4b2e9b2 Signed-off-by: Yuanyuan Liu --- include/soc/qcom/icnss.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/soc/qcom/icnss.h b/include/soc/qcom/icnss.h index 778ad8f702db..efc5425cf17d 100644 --- a/include/soc/qcom/icnss.h +++ b/include/soc/qcom/icnss.h @@ -107,6 +107,12 @@ extern int icnss_ce_request_irq(unsigned int ce_id, unsigned long flags, const char *name, void *ctx); extern int icnss_get_ce_id(int irq); extern int icnss_set_fw_debug_mode(bool enable_fw_log); +extern int icnss_athdiag_read(struct device *dev, uint32_t offset, + uint32_t mem_type, uint32_t data_len, + uint8_t *output); +extern int icnss_athdiag_write(struct device *dev, uint32_t offset, + uint32_t mem_type, uint32_t data_len, + uint8_t *input); extern int icnss_get_irq(int ce_id); extern int icnss_power_on(struct device *dev); extern int icnss_power_off(struct device *dev); -- cgit v1.2.3