aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/pci.h
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2013-10-16 16:46:11 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2013-10-21 16:41:19 +0300
commit233eb97fc9d0f44f2ea99fe48118aa3d2dc25d64 (patch)
tree2c2c1d419f23cf4821ed09fb90cd962d22fa4e0f /drivers/net/wireless/ath/ath10k/pci.h
parentath10k: fix NULL deref upon early FW crash (diff)
downloadlinux-dev-233eb97fc9d0f44f2ea99fe48118aa3d2dc25d64.tar.xz
linux-dev-233eb97fc9d0f44f2ea99fe48118aa3d2dc25d64.zip
ath10k: implement ath10k_pci_soc_read/write32()
To make it easier to access SOC registers. No functional changes. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/pci.h')
-rw-r--r--drivers/net/wireless/ath/ath10k/pci.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.h b/drivers/net/wireless/ath/ath10k/pci.h
index 52fb7b973571..a304c3384902 100644
--- a/drivers/net/wireless/ath/ath10k/pci.h
+++ b/drivers/net/wireless/ath/ath10k/pci.h
@@ -318,6 +318,16 @@ static inline u32 ath10k_pci_read32(struct ath10k *ar, u32 offset)
return ioread32(ar_pci->mem + offset);
}
+static inline u32 ath10k_pci_soc_read32(struct ath10k *ar, u32 addr)
+{
+ return ath10k_pci_read32(ar, RTC_SOC_BASE_ADDRESS + addr);
+}
+
+static inline void ath10k_pci_soc_write32(struct ath10k *ar, u32 addr, u32 val)
+{
+ ath10k_pci_write32(ar, RTC_SOC_BASE_ADDRESS + addr, val);
+}
+
int ath10k_do_pci_wake(struct ath10k *ar);
void ath10k_do_pci_sleep(struct ath10k *ar);