1c220d08eSPing-Ke Shih // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2c220d08eSPing-Ke Shih /* Copyright(c) 2019-2020 Realtek Corporation 3c220d08eSPing-Ke Shih */ 4c220d08eSPing-Ke Shih 5c220d08eSPing-Ke Shih #include "mac.h" 63a7e4f56SPing-Ke Shih #include "reg.h" 73a7e4f56SPing-Ke Shih 83a7e4f56SPing-Ke Shih static const u32 rtw89_mac_mem_base_addrs_be[RTW89_MAC_MEM_NUM] = { 93a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_AXIDMA] = AXIDMA_BASE_ADDR_BE, 103a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_SHARED_BUF] = SHARED_BUF_BASE_ADDR_BE, 113a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_DMAC_TBL] = DMAC_TBL_BASE_ADDR_BE, 123a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_SHCUT_MACHDR] = SHCUT_MACHDR_BASE_ADDR_BE, 133a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_STA_SCHED] = STA_SCHED_BASE_ADDR_BE, 143a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_RXPLD_FLTR_CAM] = RXPLD_FLTR_CAM_BASE_ADDR_BE, 153a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_SECURITY_CAM] = SEC_CAM_BASE_ADDR_BE, 163a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_WOW_CAM] = WOW_CAM_BASE_ADDR_BE, 173a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_CMAC_TBL] = CMAC_TBL_BASE_ADDR_BE, 183a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_ADDR_CAM] = ADDR_CAM_BASE_ADDR_BE, 193a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_BA_CAM] = BA_CAM_BASE_ADDR_BE, 203a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_BCN_IE_CAM0] = BCN_IE_CAM0_BASE_ADDR_BE, 213a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_BCN_IE_CAM1] = BCN_IE_CAM1_BASE_ADDR_BE, 223a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_TXD_FIFO_0] = TXD_FIFO_0_BASE_ADDR_BE, 233a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_TXD_FIFO_1] = TXD_FIFO_1_BASE_ADDR_BE, 243a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_TXDATA_FIFO_0] = TXDATA_FIFO_0_BASE_ADDR_BE, 253a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_TXDATA_FIFO_1] = TXDATA_FIFO_1_BASE_ADDR_BE, 263a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_CPU_LOCAL] = CPU_LOCAL_BASE_ADDR_BE, 273a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_BSSID_CAM] = BSSID_CAM_BASE_ADDR_BE, 283a7e4f56SPing-Ke Shih [RTW89_MAC_MEM_WD_PAGE] = WD_PAGE_BASE_ADDR_BE, 293a7e4f56SPing-Ke Shih }; 30c220d08eSPing-Ke Shih 31c220d08eSPing-Ke Shih const struct rtw89_mac_gen_def rtw89_mac_gen_be = { 32c220d08eSPing-Ke Shih .band1_offset = RTW89_MAC_BE_BAND_REG_OFFSET, 333a7e4f56SPing-Ke Shih .filter_model_addr = R_BE_FILTER_MODEL_ADDR, 343a7e4f56SPing-Ke Shih .indir_access_addr = R_BE_INDIR_ACCESS_ENTRY, 353a7e4f56SPing-Ke Shih .mem_base_addrs = rtw89_mac_mem_base_addrs_be, 36*9d87e7dcSPing-Ke Shih .rx_fltr = R_BE_RX_FLTR_OPT, 37c220d08eSPing-Ke Shih }; 38c220d08eSPing-Ke Shih EXPORT_SYMBOL(rtw89_mac_gen_be); 39