diff options
author | Zong-Zhe Yang <kevin_yang@realtek.com> | 2022-03-14 08:12:44 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-04-06 09:46:01 +0200 |
commit | e1400b115cace4528dbe0f2b72103241d0d11892 (patch) | |
tree | da1ac4c3fe5d3f488eaa3d90d064d7af833b9e42 /drivers/net/wireless/realtek/rtw89/mac.h | |
parent | rtw89: ser: fix CAM leaks occurring in L2 reset (diff) | |
download | linux-e1400b115cace4528dbe0f2b72103241d0d11892.tar.xz linux-e1400b115cace4528dbe0f2b72103241d0d11892.zip |
rtw89: mac: move table of mem base addr to common
Previously, mac_mem_base_addr_table was declared in debug.c locally
because it's only used via debugfs to dump mac memory. Now, we plan to
refine SER (system error recover) flow which will also need to dump mac
memory to somewhere as information for error which is catched. So, we
move mac_mem_base_addr_table to mac.c rtw89_mac_mem_base_addrs earlier
as common code.
(no logic is changed)
Signed-off-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220314071250.40292-3-pkshih@realtek.com
Diffstat (limited to '')
-rw-r--r-- | drivers/net/wireless/realtek/rtw89/mac.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw89/mac.h b/drivers/net/wireless/realtek/rtw89/mac.h index b797667c78c6..fdc5ded23fde 100644 --- a/drivers/net/wireless/realtek/rtw89/mac.h +++ b/drivers/net/wireless/realtek/rtw89/mac.h @@ -273,6 +273,8 @@ enum rtw89_mac_mem_sel { RTW89_MAC_MEM_INVALID = RTW89_MAC_MEM_LAST, }; +extern const u32 rtw89_mac_mem_base_addrs[]; + enum rtw89_rpwm_req_pwr_state { RTW89_MAC_RPWM_REQ_PWR_STATE_ACTIVE = 0, RTW89_MAC_RPWM_REQ_PWR_STATE_BAND0_RFON = 1, |