linux/drivers/net/wireless/mediatek/mt76/mt7925/regs.h

/* SPDX-License-Identifier: ISC */
/* Copyright (C) 2023 MediaTek Inc. */

#ifndef __MT7925_REGS_H
#define __MT7925_REGS_H

#include "../mt792x_regs.h"

#define MT_MDP_BASE
#define MT_MDP(ofs)

#define MT_MDP_DCR0
#define MT_MDP_DCR0_DAMSDU_EN
#define MT_MDP_DCR0_RX_HDR_TRANS_EN

#define MT_MDP_DCR1
#define MT_MDP_DCR1_MAX_RX_LEN

#define MT_MDP_BNRCFR0(_band)
#define MT_MDP_RCFR0_MCU_RX_MGMT
#define MT_MDP_RCFR0_MCU_RX_CTL_NON_BAR
#define MT_MDP_RCFR0_MCU_RX_CTL_BAR

#define MT_MDP_BNRCFR1(_band)
#define MT_MDP_RCFR1_MCU_RX_BYPASS
#define MT_MDP_RCFR1_RX_DROPPED_UCAST
#define MT_MDP_RCFR1_RX_DROPPED_MCAST
#define MT_MDP_TO_HIF
#define MT_MDP_TO_WM

#define MT_WFDMA0_HOST_INT_ENA
#define MT_WFDMA0_HOST_INT_DIS
#define HOST_RX_DONE_INT_ENA4
#define HOST_RX_DONE_INT_ENA5
#define HOST_RX_DONE_INT_ENA6
#define HOST_RX_DONE_INT_ENA7
#define HOST_RX_DONE_INT_ENA8
#define HOST_RX_DONE_INT_ENA9
#define HOST_RX_DONE_INT_ENA10
#define HOST_RX_DONE_INT_ENA11
#define HOST_TX_DONE_INT_ENA15
#define HOST_TX_DONE_INT_ENA16
#define HOST_TX_DONE_INT_ENA17

/* WFDMA interrupt */
#define MT_INT_RX_DONE_DATA
#define MT_INT_RX_DONE_WM
#define MT_INT_RX_DONE_WM2
#define MT_INT_RX_DONE_ALL

#define MT_INT_TX_DONE_MCU_WM

#define MT_INT_TX_DONE_FWDL
#define MT_INT_TX_DONE_BAND0

#define MT_INT_TX_DONE_MCU
#define MT_INT_TX_DONE_ALL

#define MT_RX_DATA_RING_BASE

#define MT_INFRA_CFG_BASE
#define MT_INFRA(ofs)

#define MT_HIF_REMAP_L1
#define MT_HIF_REMAP_L1_MASK
#define MT_HIF_REMAP_L1_OFFSET
#define MT_HIF_REMAP_L1_BASE
#define MT_HIF_REMAP_BASE_L1

#define MT_HIF_REMAP_L2
#if IS_ENABLED(CONFIG_MT76_DEV)
#define MT_HIF_REMAP_BASE_L2
#else
#define MT_HIF_REMAP_BASE_L2
#endif

#define MT_WFSYS_SW_RST_B

#define MT_WTBLON_TOP_WDUCR
#define MT_WTBLON_TOP_WDUCR_GROUP

#define MT_WTBL_UPDATE
#define MT_WTBL_UPDATE_WLAN_IDX
#define MT_WTBL_UPDATE_ADM_COUNT_CLEAR

#endif