spl2sw_register.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright Sunplus Technology Co., Ltd.
  3. * All rights reserved.
  4. */
  5. #ifndef __SPL2SW_REGISTER_H__
  6. #define __SPL2SW_REGISTER_H__
  7. /* Register L2SW */
  8. #define L2SW_SW_INT_STATUS_0 0x0
  9. #define L2SW_SW_INT_MASK_0 0x4
  10. #define L2SW_FL_CNTL_TH 0x8
  11. #define L2SW_CPU_FL_CNTL_TH 0xc
  12. #define L2SW_PRI_FL_CNTL 0x10
  13. #define L2SW_VLAN_PRI_TH 0x14
  14. #define L2SW_EN_TOS_BUS 0x18
  15. #define L2SW_TOS_MAP0 0x1c
  16. #define L2SW_TOS_MAP1 0x20
  17. #define L2SW_TOS_MAP2 0x24
  18. #define L2SW_TOS_MAP3 0x28
  19. #define L2SW_TOS_MAP4 0x2c
  20. #define L2SW_TOS_MAP5 0x30
  21. #define L2SW_TOS_MAP6 0x34
  22. #define L2SW_TOS_MAP7 0x38
  23. #define L2SW_GLOBAL_QUE_STATUS 0x3c
  24. #define L2SW_ADDR_TBL_SRCH 0x40
  25. #define L2SW_ADDR_TBL_ST 0x44
  26. #define L2SW_MAC_AD_SER0 0x48
  27. #define L2SW_MAC_AD_SER1 0x4c
  28. #define L2SW_WT_MAC_AD0 0x50
  29. #define L2SW_W_MAC_15_0 0x54
  30. #define L2SW_W_MAC_47_16 0x58
  31. #define L2SW_PVID_CONFIG0 0x5c
  32. #define L2SW_PVID_CONFIG1 0x60
  33. #define L2SW_VLAN_MEMSET_CONFIG0 0x64
  34. #define L2SW_VLAN_MEMSET_CONFIG1 0x68
  35. #define L2SW_PORT_ABILITY 0x6c
  36. #define L2SW_PORT_ST 0x70
  37. #define L2SW_CPU_CNTL 0x74
  38. #define L2SW_PORT_CNTL0 0x78
  39. #define L2SW_PORT_CNTL1 0x7c
  40. #define L2SW_PORT_CNTL2 0x80
  41. #define L2SW_SW_GLB_CNTL 0x84
  42. #define L2SW_L2SW_SW_RESET 0x88
  43. #define L2SW_LED_PORT0 0x8c
  44. #define L2SW_LED_PORT1 0x90
  45. #define L2SW_LED_PORT2 0x94
  46. #define L2SW_LED_PORT3 0x98
  47. #define L2SW_LED_PORT4 0x9c
  48. #define L2SW_WATCH_DOG_TRIG_RST 0xa0
  49. #define L2SW_WATCH_DOG_STOP_CPU 0xa4
  50. #define L2SW_PHY_CNTL_REG0 0xa8
  51. #define L2SW_PHY_CNTL_REG1 0xac
  52. #define L2SW_MAC_FORCE_MODE 0xb0
  53. #define L2SW_VLAN_GROUP_CONFIG0 0xb4
  54. #define L2SW_VLAN_GROUP_CONFIG1 0xb8
  55. #define L2SW_FLOW_CTRL_TH3 0xbc
  56. #define L2SW_QUEUE_STATUS_0 0xc0
  57. #define L2SW_DEBUG_CNTL 0xc4
  58. #define L2SW_RESERVED_1 0xc8
  59. #define L2SW_MEM_TEST_INFO 0xcc
  60. #define L2SW_SW_INT_STATUS_1 0xd0
  61. #define L2SW_SW_INT_MASK_1 0xd4
  62. #define L2SW_SW_GLOBAL_SIGNAL 0xd8
  63. #define L2SW_CPU_TX_TRIG 0x208
  64. #define L2SW_TX_HBASE_ADDR_0 0x20c
  65. #define L2SW_TX_LBASE_ADDR_0 0x210
  66. #define L2SW_RX_HBASE_ADDR_0 0x214
  67. #define L2SW_RX_LBASE_ADDR_0 0x218
  68. #define L2SW_TX_HW_ADDR_0 0x21c
  69. #define L2SW_TX_LW_ADDR_0 0x220
  70. #define L2SW_RX_HW_ADDR_0 0x224
  71. #define L2SW_RX_LW_ADDR_0 0x228
  72. #define L2SW_CPU_PORT_CNTL_REG_0 0x22c
  73. #define L2SW_TX_HBASE_ADDR_1 0x230
  74. #define L2SW_TX_LBASE_ADDR_1 0x234
  75. #define L2SW_RX_HBASE_ADDR_1 0x238
  76. #define L2SW_RX_LBASE_ADDR_1 0x23c
  77. #define L2SW_TX_HW_ADDR_1 0x240
  78. #define L2SW_TX_LW_ADDR_1 0x244
  79. #define L2SW_RX_HW_ADDR_1 0x248
  80. #define L2SW_RX_LW_ADDR_1 0x24c
  81. #define L2SW_CPU_PORT_CNTL_REG_1 0x250
  82. #endif