summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/realtek/rtw89/pci.h
diff options
context:
space:
mode:
authorPing-Ke Shih <pkshih@realtek.com>2022-03-25 09:00:43 +0300
committerKalle Valo <kvalo@kernel.org>2022-04-06 11:55:13 +0300
commit0db862fb025c933675e3efb388eb96da781d6365 (patch)
tree7d26dcd8550c7757308b7441d91bc087dd756e49 /drivers/net/wireless/realtek/rtw89/pci.h
parent1e3f205548155af7df781bb23bed15af17aa8ace (diff)
downloadlinux-0db862fb025c933675e3efb388eb96da781d6365.tar.xz
rtw89: pci: add LTR setting for v1 chip
Add LTR handle to PCI deinit as well. Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20220325060055.58482-5-pkshih@realtek.com
Diffstat (limited to 'drivers/net/wireless/realtek/rtw89/pci.h')
-rw-r--r--drivers/net/wireless/realtek/rtw89/pci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw89/pci.h b/drivers/net/wireless/realtek/rtw89/pci.h
index 2e8695208fcc..99f0cd2f47da 100644
--- a/drivers/net/wireless/realtek/rtw89/pci.h
+++ b/drivers/net/wireless/realtek/rtw89/pci.h
@@ -647,6 +647,7 @@ struct rtw89_pci_info {
const struct rtw89_pci_ch_dma_addr_set *dma_addr_set;
+ int (*ltr_set)(struct rtw89_dev *rtwdev, bool en);
u32 (*fill_txaddr_info)(struct rtw89_dev *rtwdev,
void *txaddr_info_addr, u32 total_len,
dma_addr_t dma, u8 *add_info_nr);
@@ -912,6 +913,8 @@ struct pci_device_id;
int rtw89_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id);
void rtw89_pci_remove(struct pci_dev *pdev);
+int rtw89_pci_ltr_set(struct rtw89_dev *rtwdev, bool en);
+int rtw89_pci_ltr_set_v1(struct rtw89_dev *rtwdev, bool en);
u32 rtw89_pci_fill_txaddr_info(struct rtw89_dev *rtwdev,
void *txaddr_info_addr, u32 total_len,
dma_addr_t dma, u8 *add_info_nr);