aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPing-Ke Shih <pkshih@realtek.com>2023-08-22 20:58:17 +0800
committerKalle Valo <kvalo@kernel.org>2023-08-25 12:59:52 +0300
commitc220d08e1f981c8d381874a55c3c3c76ade43393 (patch)
tree26c0169b0bfd2ec43b6a294638fdce41b76d7fc4 /tools/perf/scripts/python
parentwifi: wlcore: sdio: Use module_sdio_driver macro to simplify the code (diff)
downloadlinux-c220d08e1f981c8d381874a55c3c3c76ade43393.tar.gz
linux-c220d08e1f981c8d381874a55c3c3c76ade43393.zip
wifi: rtw89: mac: add mac_gen_def::band1_offset to map MAC band1 register address
There are two copies of MAC hardware called band0 and band1. Basically, the only difference between them is base address, so we can share functions with a 'band' (or 'mac_idx') argument. The offset of base address of WiFi 6 and 7 are 0x2000 and 0x4000 respectively, so add band1_offset field to new introduced struct mac_gen_def to possibly reuse functions. Using below spatch script to convert callers: @@ expression reg, band; @@ - rtw89_mac_reg_by_idx(reg, band) + rtw89_mac_reg_by_idx(rtwdev, reg, band) @@ expression reg, port, band; @@ - rtw89_mac_reg_by_port(reg, port, band) + rtw89_mac_reg_by_port(rtwdev, reg, port, band) Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230822125822.23817-2-pkshih@realtek.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions