162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 262306a36Sopenharmony_ci/* Copyright(c) 2019-2020 Realtek Corporation 362306a36Sopenharmony_ci */ 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include "mac.h" 662306a36Sopenharmony_ci#include "reg.h" 762306a36Sopenharmony_ci 862306a36Sopenharmony_cistatic const u32 rtw89_mac_mem_base_addrs_be[RTW89_MAC_MEM_NUM] = { 962306a36Sopenharmony_ci [RTW89_MAC_MEM_AXIDMA] = AXIDMA_BASE_ADDR_BE, 1062306a36Sopenharmony_ci [RTW89_MAC_MEM_SHARED_BUF] = SHARED_BUF_BASE_ADDR_BE, 1162306a36Sopenharmony_ci [RTW89_MAC_MEM_DMAC_TBL] = DMAC_TBL_BASE_ADDR_BE, 1262306a36Sopenharmony_ci [RTW89_MAC_MEM_SHCUT_MACHDR] = SHCUT_MACHDR_BASE_ADDR_BE, 1362306a36Sopenharmony_ci [RTW89_MAC_MEM_STA_SCHED] = STA_SCHED_BASE_ADDR_BE, 1462306a36Sopenharmony_ci [RTW89_MAC_MEM_RXPLD_FLTR_CAM] = RXPLD_FLTR_CAM_BASE_ADDR_BE, 1562306a36Sopenharmony_ci [RTW89_MAC_MEM_SECURITY_CAM] = SEC_CAM_BASE_ADDR_BE, 1662306a36Sopenharmony_ci [RTW89_MAC_MEM_WOW_CAM] = WOW_CAM_BASE_ADDR_BE, 1762306a36Sopenharmony_ci [RTW89_MAC_MEM_CMAC_TBL] = CMAC_TBL_BASE_ADDR_BE, 1862306a36Sopenharmony_ci [RTW89_MAC_MEM_ADDR_CAM] = ADDR_CAM_BASE_ADDR_BE, 1962306a36Sopenharmony_ci [RTW89_MAC_MEM_BA_CAM] = BA_CAM_BASE_ADDR_BE, 2062306a36Sopenharmony_ci [RTW89_MAC_MEM_BCN_IE_CAM0] = BCN_IE_CAM0_BASE_ADDR_BE, 2162306a36Sopenharmony_ci [RTW89_MAC_MEM_BCN_IE_CAM1] = BCN_IE_CAM1_BASE_ADDR_BE, 2262306a36Sopenharmony_ci [RTW89_MAC_MEM_TXD_FIFO_0] = TXD_FIFO_0_BASE_ADDR_BE, 2362306a36Sopenharmony_ci [RTW89_MAC_MEM_TXD_FIFO_1] = TXD_FIFO_1_BASE_ADDR_BE, 2462306a36Sopenharmony_ci [RTW89_MAC_MEM_TXDATA_FIFO_0] = TXDATA_FIFO_0_BASE_ADDR_BE, 2562306a36Sopenharmony_ci [RTW89_MAC_MEM_TXDATA_FIFO_1] = TXDATA_FIFO_1_BASE_ADDR_BE, 2662306a36Sopenharmony_ci [RTW89_MAC_MEM_CPU_LOCAL] = CPU_LOCAL_BASE_ADDR_BE, 2762306a36Sopenharmony_ci [RTW89_MAC_MEM_BSSID_CAM] = BSSID_CAM_BASE_ADDR_BE, 2862306a36Sopenharmony_ci [RTW89_MAC_MEM_WD_PAGE] = WD_PAGE_BASE_ADDR_BE, 2962306a36Sopenharmony_ci}; 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ciconst struct rtw89_mac_gen_def rtw89_mac_gen_be = { 3262306a36Sopenharmony_ci .band1_offset = RTW89_MAC_BE_BAND_REG_OFFSET, 3362306a36Sopenharmony_ci .filter_model_addr = R_BE_FILTER_MODEL_ADDR, 3462306a36Sopenharmony_ci .indir_access_addr = R_BE_INDIR_ACCESS_ENTRY, 3562306a36Sopenharmony_ci .mem_base_addrs = rtw89_mac_mem_base_addrs_be, 3662306a36Sopenharmony_ci .rx_fltr = R_BE_RX_FLTR_OPT, 3762306a36Sopenharmony_ci}; 3862306a36Sopenharmony_ciEXPORT_SYMBOL(rtw89_mac_gen_be); 39