linux/drivers/net/dsa/xrs700x/xrs700x_reg.h

/* SPDX-License-Identifier: GPL-2.0 */

/* Register Base Addresses */
#define XRS_DEVICE_ID_BASE
#define XRS_GPIO_BASE
#define XRS_PORT_OFFSET
#define XRS_PORT_BASE(x)
#define XRS_RTC_BASE
#define XRS_TS_OFFSET
#define XRS_TS_BASE(x)
#define XRS_SWITCH_CONF_BASE

/* Device Identification Registers */
#define XRS_DEV_ID0
#define XRS_DEV_ID1
#define XRS_INT_ID0
#define XRS_INT_ID1
#define XRS_REV_ID

/* GPIO Registers */
#define XRS_CONFIG0
#define XRS_INPUT_STATUS0
#define XRS_CONFIG1
#define XRS_INPUT_STATUS1
#define XRS_CONFIG2
#define XRS_INPUT_STATUS2

/* Port Configuration Registers */
#define XRS_PORT_GEN_BASE(x)
#define XRS_PORT_HSR_BASE(x)
#define XRS_PORT_PTP_BASE(x)
#define XRS_PORT_CNT_BASE(x)
#define XRS_PORT_IPO_BASE(x)

/* Port Configuration Registers - General and State */
#define XRS_PORT_STATE(x)
#define XRS_PORT_FORWARDING
#define XRS_PORT_LEARNING
#define XRS_PORT_DISABLED
#define XRS_PORT_MODE_NORMAL
#define XRS_PORT_MODE_MANAGEMENT
#define XRS_PORT_SPEED_1000
#define XRS_PORT_SPEED_100
#define XRS_PORT_SPEED_10
#define XRS_PORT_VLAN(x)
#define XRS_PORT_VLAN0_MAPPING(x)
#define XRS_PORT_FWD_MASK(x)
#define XRS_PORT_VLAN_PRIO(x)

/* Port Configuration Registers - HSR/PRP */
#define XRS_HSR_CFG(x)
#define XRS_HSR_CFG_HSR_PRP
#define XRS_HSR_CFG_HSR
#define XRS_HSR_CFG_PRP
#define XRS_HSR_CFG_LANID_A
#define XRS_HSR_CFG_LANID_B

/* Port Configuration Registers - PTP */
#define XRS_PTP_RX_SYNC_DELAY_NS_LO(x)
#define XRS_PTP_RX_SYNC_DELAY_NS_HI(x)
#define XRS_PTP_RX_EVENT_DELAY_NS(x)
#define XRS_PTP_TX_EVENT_DELAY_NS(x)

/* Port Configuration Registers - Counter */
#define XRS_CNT_CTRL(x)
#define XRS_RX_GOOD_OCTETS_L
#define XRS_RX_GOOD_OCTETS_H
#define XRS_RX_BAD_OCTETS_L
#define XRS_RX_BAD_OCTETS_H
#define XRS_RX_UNICAST_L
#define XRS_RX_UNICAST_H
#define XRS_RX_BROADCAST_L
#define XRS_RX_BROADCAST_H
#define XRS_RX_MULTICAST_L
#define XRS_RX_MULTICAST_H
#define XRS_RX_UNDERSIZE_L
#define XRS_RX_UNDERSIZE_H
#define XRS_RX_FRAGMENTS_L
#define XRS_RX_FRAGMENTS_H
#define XRS_RX_OVERSIZE_L
#define XRS_RX_OVERSIZE_H
#define XRS_RX_JABBER_L
#define XRS_RX_JABBER_H
#define XRS_RX_ERR_L
#define XRS_RX_ERR_H
#define XRS_RX_CRC_L
#define XRS_RX_CRC_H
#define XRS_RX_64_L
#define XRS_RX_64_H
#define XRS_RX_65_127_L
#define XRS_RX_65_127_H
#define XRS_RX_128_255_L
#define XRS_RX_128_255_H
#define XRS_RX_256_511_L
#define XRS_RX_256_511_H
#define XRS_RX_512_1023_L
#define XRS_RX_512_1023_H
#define XRS_RX_1024_1536_L
#define XRS_RX_1024_1536_H
#define XRS_RX_HSR_PRP_L
#define XRS_RX_HSR_PRP_H
#define XRS_RX_WRONGLAN_L
#define XRS_RX_WRONGLAN_H
#define XRS_RX_DUPLICATE_L
#define XRS_RX_DUPLICATE_H
#define XRS_TX_OCTETS_L
#define XRS_TX_OCTETS_H
#define XRS_TX_UNICAST_L
#define XRS_TX_UNICAST_H
#define XRS_TX_BROADCAST_L
#define XRS_TX_BROADCAST_H
#define XRS_TX_MULTICAST_L
#define XRS_TX_MULTICAST_H
#define XRS_TX_HSR_PRP_L
#define XRS_TX_HSR_PRP_H
#define XRS_PRIQ_DROP_L
#define XRS_PRIQ_DROP_H
#define XRS_EARLY_DROP_L
#define XRS_EARLY_DROP_H

/* Port Configuration Registers - Inbound Policy 0 - 15 */
#define XRS_ETH_ADDR_CFG(x, p)
#define XRS_ETH_ADDR_FWD_ALLOW(x, p)
#define XRS_ETH_ADDR_FWD_MIRROR(x, p)
#define XRS_ETH_ADDR_0(x, p)
#define XRS_ETH_ADDR_1(x, p)
#define XRS_ETH_ADDR_2(x, p)

/* RTC Registers */
#define XRS_CUR_NSEC0
#define XRS_CUR_NSEC1
#define XRS_CUR_SEC0
#define XRS_CUR_SEC1
#define XRS_CUR_SEC2
#define XRS_TIME_CC0
#define XRS_TIME_CC1
#define XRS_TIME_CC2
#define XRS_STEP_SIZE0
#define XRS_STEP_SIZE1
#define XRS_STEP_SIZE2
#define XRS_ADJUST_NSEC0
#define XRS_ADJUST_NSEC1
#define XRS_ADJUST_SEC0
#define XRS_ADJUST_SEC1
#define XRS_ADJUST_SEC2
#define XRS_TIME_CMD

/* Time Stamper Registers */
#define XRS_TS_CTRL(x)
#define XRS_TS_INT_MASK(x)
#define XRS_TS_INT_STATUS(x)
#define XRS_TS_NSEC0(x)
#define XRS_TS_NSEC1(x)
#define XRS_TS_SEC0(x)
#define XRS_TS_SEC1(x)
#define XRS_TS_SEC2(x)
#define XRS_PNCT0(x)
#define XRS_PNCT1(x)

/* Switch Configuration Registers */
#define XRS_SWITCH_GEN_BASE
#define XRS_SWITCH_TS_BASE
#define XRS_SWITCH_VLAN_BASE

/* Switch Configuration Registers - General */
#define XRS_GENERAL
#define XRS_GENERAL_TIME_TRAILER
#define XRS_GENERAL_MOD_SYNC
#define XRS_GENERAL_CUT_THRU
#define XRS_GENERAL_CLR_MAC_TBL
#define XRS_GENERAL_RESET
#define XRS_MT_CLEAR_MASK
#define XRS_ADDRESS_AGING
#define XRS_TS_CTRL_TX
#define XRS_TS_CTRL_RX
#define XRS_INT_MASK
#define XRS_INT_STATUS
#define XRS_MAC_TABLE0
#define XRS_MAC_TABLE1
#define XRS_MAC_TABLE2
#define XRS_MAC_TABLE3

/* Switch Configuration Registers - Frame Timestamp */
#define XRS_TX_TS_NS_LO(t)
#define XRS_TX_TS_NS_HI(t)
#define XRS_TX_TS_S_LO(t)
#define XRS_TX_TS_S_HI(t)
#define XRS_TX_TS_HDR(t, h)
#define XRS_RX_TS_NS_LO(t)
#define XRS_RX_TS_NS_HI(t)
#define XRS_RX_TS_S_LO(t)
#define XRS_RX_TS_S_HI(t)
#define XRS_RX_TS_HDR(t, h)

/* Switch Configuration Registers - VLAN */
#define XRS_VLAN(v)