wifi: rtw89: mac: implement to configure TX/RX engines for WiFi 7 chips
authorPing-Ke Shih <pkshih@realtek.com>
Sat, 16 Dec 2023 04:57:39 +0000 (12:57 +0800)
committerKalle Valo <kvalo@kernel.org>
Tue, 19 Dec 2023 15:05:30 +0000 (17:05 +0200)
commitbad7aaef31162ed71c469a38f7636ec8c8fb9306
tree25e8fbc7e12daaae62e70f91e17da84879fb58b5
parent694c626bcfe2525142635a3d24edb6509943f2d8
wifi: rtw89: mac: implement to configure TX/RX engines for WiFi 7 chips

After enabling DMAC and CMAC, configure detail registers one by one.
DMAC includes DLE (data link engine), packet preload engine, HFC (HCI
flow control) for DMA channels, security egine and etc. CMAC includes
scheduler, address CAM, RX filter, CCA control and etc.

The SER IMR is to configure to help SER. When hardware TX/RX get
abnormal, it raises an interrupt to firmware to determine if send C2H
events to notify driver to reset PCI bus or call ieee80211_restart_hw().

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20231216045739.10432-3-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac_be.c
drivers/net/wireless/realtek/rtw89/reg.h