162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* Copyright Sunplus Technology Co., Ltd. 362306a36Sopenharmony_ci * All rights reserved. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef __SPL2SW_REGISTER_H__ 762306a36Sopenharmony_ci#define __SPL2SW_REGISTER_H__ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci/* Register L2SW */ 1062306a36Sopenharmony_ci#define L2SW_SW_INT_STATUS_0 0x0 1162306a36Sopenharmony_ci#define L2SW_SW_INT_MASK_0 0x4 1262306a36Sopenharmony_ci#define L2SW_FL_CNTL_TH 0x8 1362306a36Sopenharmony_ci#define L2SW_CPU_FL_CNTL_TH 0xc 1462306a36Sopenharmony_ci#define L2SW_PRI_FL_CNTL 0x10 1562306a36Sopenharmony_ci#define L2SW_VLAN_PRI_TH 0x14 1662306a36Sopenharmony_ci#define L2SW_EN_TOS_BUS 0x18 1762306a36Sopenharmony_ci#define L2SW_TOS_MAP0 0x1c 1862306a36Sopenharmony_ci#define L2SW_TOS_MAP1 0x20 1962306a36Sopenharmony_ci#define L2SW_TOS_MAP2 0x24 2062306a36Sopenharmony_ci#define L2SW_TOS_MAP3 0x28 2162306a36Sopenharmony_ci#define L2SW_TOS_MAP4 0x2c 2262306a36Sopenharmony_ci#define L2SW_TOS_MAP5 0x30 2362306a36Sopenharmony_ci#define L2SW_TOS_MAP6 0x34 2462306a36Sopenharmony_ci#define L2SW_TOS_MAP7 0x38 2562306a36Sopenharmony_ci#define L2SW_GLOBAL_QUE_STATUS 0x3c 2662306a36Sopenharmony_ci#define L2SW_ADDR_TBL_SRCH 0x40 2762306a36Sopenharmony_ci#define L2SW_ADDR_TBL_ST 0x44 2862306a36Sopenharmony_ci#define L2SW_MAC_AD_SER0 0x48 2962306a36Sopenharmony_ci#define L2SW_MAC_AD_SER1 0x4c 3062306a36Sopenharmony_ci#define L2SW_WT_MAC_AD0 0x50 3162306a36Sopenharmony_ci#define L2SW_W_MAC_15_0 0x54 3262306a36Sopenharmony_ci#define L2SW_W_MAC_47_16 0x58 3362306a36Sopenharmony_ci#define L2SW_PVID_CONFIG0 0x5c 3462306a36Sopenharmony_ci#define L2SW_PVID_CONFIG1 0x60 3562306a36Sopenharmony_ci#define L2SW_VLAN_MEMSET_CONFIG0 0x64 3662306a36Sopenharmony_ci#define L2SW_VLAN_MEMSET_CONFIG1 0x68 3762306a36Sopenharmony_ci#define L2SW_PORT_ABILITY 0x6c 3862306a36Sopenharmony_ci#define L2SW_PORT_ST 0x70 3962306a36Sopenharmony_ci#define L2SW_CPU_CNTL 0x74 4062306a36Sopenharmony_ci#define L2SW_PORT_CNTL0 0x78 4162306a36Sopenharmony_ci#define L2SW_PORT_CNTL1 0x7c 4262306a36Sopenharmony_ci#define L2SW_PORT_CNTL2 0x80 4362306a36Sopenharmony_ci#define L2SW_SW_GLB_CNTL 0x84 4462306a36Sopenharmony_ci#define L2SW_L2SW_SW_RESET 0x88 4562306a36Sopenharmony_ci#define L2SW_LED_PORT0 0x8c 4662306a36Sopenharmony_ci#define L2SW_LED_PORT1 0x90 4762306a36Sopenharmony_ci#define L2SW_LED_PORT2 0x94 4862306a36Sopenharmony_ci#define L2SW_LED_PORT3 0x98 4962306a36Sopenharmony_ci#define L2SW_LED_PORT4 0x9c 5062306a36Sopenharmony_ci#define L2SW_WATCH_DOG_TRIG_RST 0xa0 5162306a36Sopenharmony_ci#define L2SW_WATCH_DOG_STOP_CPU 0xa4 5262306a36Sopenharmony_ci#define L2SW_PHY_CNTL_REG0 0xa8 5362306a36Sopenharmony_ci#define L2SW_PHY_CNTL_REG1 0xac 5462306a36Sopenharmony_ci#define L2SW_MAC_FORCE_MODE 0xb0 5562306a36Sopenharmony_ci#define L2SW_VLAN_GROUP_CONFIG0 0xb4 5662306a36Sopenharmony_ci#define L2SW_VLAN_GROUP_CONFIG1 0xb8 5762306a36Sopenharmony_ci#define L2SW_FLOW_CTRL_TH3 0xbc 5862306a36Sopenharmony_ci#define L2SW_QUEUE_STATUS_0 0xc0 5962306a36Sopenharmony_ci#define L2SW_DEBUG_CNTL 0xc4 6062306a36Sopenharmony_ci#define L2SW_RESERVED_1 0xc8 6162306a36Sopenharmony_ci#define L2SW_MEM_TEST_INFO 0xcc 6262306a36Sopenharmony_ci#define L2SW_SW_INT_STATUS_1 0xd0 6362306a36Sopenharmony_ci#define L2SW_SW_INT_MASK_1 0xd4 6462306a36Sopenharmony_ci#define L2SW_SW_GLOBAL_SIGNAL 0xd8 6562306a36Sopenharmony_ci 6662306a36Sopenharmony_ci#define L2SW_CPU_TX_TRIG 0x208 6762306a36Sopenharmony_ci#define L2SW_TX_HBASE_ADDR_0 0x20c 6862306a36Sopenharmony_ci#define L2SW_TX_LBASE_ADDR_0 0x210 6962306a36Sopenharmony_ci#define L2SW_RX_HBASE_ADDR_0 0x214 7062306a36Sopenharmony_ci#define L2SW_RX_LBASE_ADDR_0 0x218 7162306a36Sopenharmony_ci#define L2SW_TX_HW_ADDR_0 0x21c 7262306a36Sopenharmony_ci#define L2SW_TX_LW_ADDR_0 0x220 7362306a36Sopenharmony_ci#define L2SW_RX_HW_ADDR_0 0x224 7462306a36Sopenharmony_ci#define L2SW_RX_LW_ADDR_0 0x228 7562306a36Sopenharmony_ci#define L2SW_CPU_PORT_CNTL_REG_0 0x22c 7662306a36Sopenharmony_ci#define L2SW_TX_HBASE_ADDR_1 0x230 7762306a36Sopenharmony_ci#define L2SW_TX_LBASE_ADDR_1 0x234 7862306a36Sopenharmony_ci#define L2SW_RX_HBASE_ADDR_1 0x238 7962306a36Sopenharmony_ci#define L2SW_RX_LBASE_ADDR_1 0x23c 8062306a36Sopenharmony_ci#define L2SW_TX_HW_ADDR_1 0x240 8162306a36Sopenharmony_ci#define L2SW_TX_LW_ADDR_1 0x244 8262306a36Sopenharmony_ci#define L2SW_RX_HW_ADDR_1 0x248 8362306a36Sopenharmony_ci#define L2SW_RX_LW_ADDR_1 0x24c 8462306a36Sopenharmony_ci#define L2SW_CPU_PORT_CNTL_REG_1 0x250 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_ci#endif 87