diff options
author | Govind Singh <govinds@codeaurora.org> | 2020-08-14 09:10:23 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-08-17 12:18:19 +0200 |
commit | 654e959ae0a19b90045d0e4d90a602ae2828a855 (patch) | |
tree | eecc4673d3407d20c2e28bdce97dc2e599853283 /drivers/net/wireless/ath/ath11k/pci.h | |
parent | ath11k: fill appropriate QMI service instance id for QCA6390 (diff) | |
download | linux-654e959ae0a19b90045d0e4d90a602ae2828a855.tar.xz linux-654e959ae0a19b90045d0e4d90a602ae2828a855.zip |
ath11k: pci: add read32() and write32() hif operations
Add support for bus read/write/window selection operations
for reading hardware memory.
Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1
Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.1.0.1-01238-QCAHKSWPL_SILICONZ-2
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1597389030-13887-5-git-send-email-kvalo@codeaurora.org
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/pci.h')
-rw-r--r-- | drivers/net/wireless/ath/ath11k/pci.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath11k/pci.h b/drivers/net/wireless/ath/ath11k/pci.h index 85e033069d7a..0a262c7307fd 100644 --- a/drivers/net/wireless/ath/ath11k/pci.h +++ b/drivers/net/wireless/ath/ath11k/pci.h @@ -29,6 +29,10 @@ struct ath11k_pci { u32 msi_ep_base_data; struct mhi_controller *mhi_ctrl; unsigned long mhi_state; + u32 register_window; + + /* protects register_window above */ + spinlock_t window_lock; }; static inline struct ath11k_pci *ath11k_pci_priv(struct ath11k_base *ab) |