162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (C) 2015 Cavium, Inc.
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#ifndef THUNDER_BGX_H
762306a36Sopenharmony_ci#define THUNDER_BGX_H
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci/* PCI device ID */
1062306a36Sopenharmony_ci#define	PCI_DEVICE_ID_THUNDER_BGX		0xA026
1162306a36Sopenharmony_ci#define	PCI_DEVICE_ID_THUNDER_RGX		0xA054
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci/* Subsystem device IDs */
1462306a36Sopenharmony_ci#define PCI_SUBSYS_DEVID_88XX_BGX		0xA126
1562306a36Sopenharmony_ci#define PCI_SUBSYS_DEVID_81XX_BGX		0xA226
1662306a36Sopenharmony_ci#define PCI_SUBSYS_DEVID_81XX_RGX		0xA254
1762306a36Sopenharmony_ci#define PCI_SUBSYS_DEVID_83XX_BGX		0xA326
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#define    MAX_BGX_THUNDER			8 /* Max 2 nodes, 4 per node */
2062306a36Sopenharmony_ci#define    MAX_BGX_PER_CN88XX			2
2162306a36Sopenharmony_ci#define    MAX_BGX_PER_CN81XX			3 /* 2 BGXs + 1 RGX */
2262306a36Sopenharmony_ci#define    MAX_BGX_PER_CN83XX			4
2362306a36Sopenharmony_ci#define    MAX_LMAC_PER_BGX			4
2462306a36Sopenharmony_ci#define    MAX_BGX_CHANS_PER_LMAC		16
2562306a36Sopenharmony_ci#define    MAX_DMAC_PER_LMAC			8
2662306a36Sopenharmony_ci#define    MAX_FRAME_SIZE			9216
2762306a36Sopenharmony_ci#define    DEFAULT_PAUSE_TIME			0xFFFF
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci#define	   BGX_ID_MASK				0x3
3062306a36Sopenharmony_ci#define	   LMAC_ID_MASK				0x3
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci#define    MAX_DMAC_PER_LMAC_TNS_BYPASS_MODE	2
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci/* Registers */
3562306a36Sopenharmony_ci#define BGX_CMRX_CFG			0x00
3662306a36Sopenharmony_ci#define  CMR_PKT_TX_EN				BIT_ULL(13)
3762306a36Sopenharmony_ci#define  CMR_PKT_RX_EN				BIT_ULL(14)
3862306a36Sopenharmony_ci#define  CMR_EN					BIT_ULL(15)
3962306a36Sopenharmony_ci#define BGX_CMR_GLOBAL_CFG		0x08
4062306a36Sopenharmony_ci#define  CMR_GLOBAL_CFG_FCS_STRIP		BIT_ULL(6)
4162306a36Sopenharmony_ci#define BGX_CMRX_RX_ID_MAP		0x60
4262306a36Sopenharmony_ci#define BGX_CMRX_RX_STAT0		0x70
4362306a36Sopenharmony_ci#define BGX_CMRX_RX_STAT1		0x78
4462306a36Sopenharmony_ci#define BGX_CMRX_RX_STAT2		0x80
4562306a36Sopenharmony_ci#define BGX_CMRX_RX_STAT3		0x88
4662306a36Sopenharmony_ci#define BGX_CMRX_RX_STAT4		0x90
4762306a36Sopenharmony_ci#define BGX_CMRX_RX_STAT5		0x98
4862306a36Sopenharmony_ci#define BGX_CMRX_RX_STAT6		0xA0
4962306a36Sopenharmony_ci#define BGX_CMRX_RX_STAT7		0xA8
5062306a36Sopenharmony_ci#define BGX_CMRX_RX_STAT8		0xB0
5162306a36Sopenharmony_ci#define BGX_CMRX_RX_STAT9		0xB8
5262306a36Sopenharmony_ci#define BGX_CMRX_RX_STAT10		0xC0
5362306a36Sopenharmony_ci#define BGX_CMRX_RX_BP_DROP		0xC8
5462306a36Sopenharmony_ci#define BGX_CMRX_RX_DMAC_CTL		0x0E8
5562306a36Sopenharmony_ci#define BGX_CMRX_RX_FIFO_LEN		0x108
5662306a36Sopenharmony_ci#define BGX_CMR_RX_DMACX_CAM		0x200
5762306a36Sopenharmony_ci#define  RX_DMACX_CAM_EN			BIT_ULL(48)
5862306a36Sopenharmony_ci#define  RX_DMACX_CAM_LMACID(x)			(((u64)x) << 49)
5962306a36Sopenharmony_ci#define  RX_DMAC_COUNT				32
6062306a36Sopenharmony_ci#define BGX_CMR_RX_STEERING		0x300
6162306a36Sopenharmony_ci#define  RX_TRAFFIC_STEER_RULE_COUNT		8
6262306a36Sopenharmony_ci#define BGX_CMR_CHAN_MSK_AND		0x450
6362306a36Sopenharmony_ci#define BGX_CMR_BIST_STATUS		0x460
6462306a36Sopenharmony_ci#define BGX_CMR_RX_LMACS		0x468
6562306a36Sopenharmony_ci#define BGX_CMRX_TX_FIFO_LEN		0x518
6662306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT0		0x600
6762306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT1		0x608
6862306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT2		0x610
6962306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT3		0x618
7062306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT4		0x620
7162306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT5		0x628
7262306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT6		0x630
7362306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT7		0x638
7462306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT8		0x640
7562306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT9		0x648
7662306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT10		0x650
7762306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT11		0x658
7862306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT12		0x660
7962306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT13		0x668
8062306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT14		0x670
8162306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT15		0x678
8262306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT16		0x680
8362306a36Sopenharmony_ci#define BGX_CMRX_TX_STAT17		0x688
8462306a36Sopenharmony_ci#define BGX_CMR_TX_LMACS		0x1000
8562306a36Sopenharmony_ci
8662306a36Sopenharmony_ci#define BGX_SPUX_CONTROL1		0x10000
8762306a36Sopenharmony_ci#define  SPU_CTL_LOW_POWER			BIT_ULL(11)
8862306a36Sopenharmony_ci#define  SPU_CTL_LOOPBACK			BIT_ULL(14)
8962306a36Sopenharmony_ci#define  SPU_CTL_RESET				BIT_ULL(15)
9062306a36Sopenharmony_ci#define BGX_SPUX_STATUS1		0x10008
9162306a36Sopenharmony_ci#define  SPU_STATUS1_RCV_LNK			BIT_ULL(2)
9262306a36Sopenharmony_ci#define BGX_SPUX_STATUS2		0x10020
9362306a36Sopenharmony_ci#define  SPU_STATUS2_RCVFLT			BIT_ULL(10)
9462306a36Sopenharmony_ci#define BGX_SPUX_BX_STATUS		0x10028
9562306a36Sopenharmony_ci#define  SPU_BX_STATUS_RX_ALIGN			BIT_ULL(12)
9662306a36Sopenharmony_ci#define BGX_SPUX_BR_STATUS1		0x10030
9762306a36Sopenharmony_ci#define  SPU_BR_STATUS_BLK_LOCK			BIT_ULL(0)
9862306a36Sopenharmony_ci#define  SPU_BR_STATUS_RCV_LNK			BIT_ULL(12)
9962306a36Sopenharmony_ci#define BGX_SPUX_BR_PMD_CRTL		0x10068
10062306a36Sopenharmony_ci#define  SPU_PMD_CRTL_TRAIN_EN			BIT_ULL(1)
10162306a36Sopenharmony_ci#define BGX_SPUX_BR_PMD_LP_CUP		0x10078
10262306a36Sopenharmony_ci#define BGX_SPUX_BR_PMD_LD_CUP		0x10088
10362306a36Sopenharmony_ci#define BGX_SPUX_BR_PMD_LD_REP		0x10090
10462306a36Sopenharmony_ci#define BGX_SPUX_FEC_CONTROL		0x100A0
10562306a36Sopenharmony_ci#define  SPU_FEC_CTL_FEC_EN			BIT_ULL(0)
10662306a36Sopenharmony_ci#define  SPU_FEC_CTL_ERR_EN			BIT_ULL(1)
10762306a36Sopenharmony_ci#define BGX_SPUX_AN_CONTROL		0x100C8
10862306a36Sopenharmony_ci#define  SPU_AN_CTL_AN_EN			BIT_ULL(12)
10962306a36Sopenharmony_ci#define  SPU_AN_CTL_XNP_EN			BIT_ULL(13)
11062306a36Sopenharmony_ci#define BGX_SPUX_AN_ADV			0x100D8
11162306a36Sopenharmony_ci#define BGX_SPUX_MISC_CONTROL		0x10218
11262306a36Sopenharmony_ci#define  SPU_MISC_CTL_INTLV_RDISP		BIT_ULL(10)
11362306a36Sopenharmony_ci#define  SPU_MISC_CTL_RX_DIS			BIT_ULL(12)
11462306a36Sopenharmony_ci#define BGX_SPUX_INT			0x10220	/* +(0..3) << 20 */
11562306a36Sopenharmony_ci#define BGX_SPUX_INT_W1S		0x10228
11662306a36Sopenharmony_ci#define BGX_SPUX_INT_ENA_W1C		0x10230
11762306a36Sopenharmony_ci#define BGX_SPUX_INT_ENA_W1S		0x10238
11862306a36Sopenharmony_ci#define BGX_SPU_DBG_CONTROL		0x10300
11962306a36Sopenharmony_ci#define  SPU_DBG_CTL_AN_ARB_LINK_CHK_EN		BIT_ULL(18)
12062306a36Sopenharmony_ci#define  SPU_DBG_CTL_AN_NONCE_MCT_DIS		BIT_ULL(29)
12162306a36Sopenharmony_ci
12262306a36Sopenharmony_ci#define BGX_SMUX_RX_INT			0x20000
12362306a36Sopenharmony_ci#define BGX_SMUX_RX_FRM_CTL		0x20020
12462306a36Sopenharmony_ci#define  BGX_PKT_RX_PTP_EN			BIT_ULL(12)
12562306a36Sopenharmony_ci#define BGX_SMUX_RX_JABBER		0x20030
12662306a36Sopenharmony_ci#define BGX_SMUX_RX_CTL			0x20048
12762306a36Sopenharmony_ci#define  SMU_RX_CTL_STATUS			(3ull << 0)
12862306a36Sopenharmony_ci#define BGX_SMUX_TX_APPEND		0x20100
12962306a36Sopenharmony_ci#define  SMU_TX_APPEND_FCS_D			BIT_ULL(2)
13062306a36Sopenharmony_ci#define BGX_SMUX_TX_PAUSE_PKT_TIME	0x20110
13162306a36Sopenharmony_ci#define BGX_SMUX_TX_MIN_PKT		0x20118
13262306a36Sopenharmony_ci#define BGX_SMUX_TX_PAUSE_PKT_INTERVAL	0x20120
13362306a36Sopenharmony_ci#define BGX_SMUX_TX_PAUSE_ZERO		0x20138
13462306a36Sopenharmony_ci#define BGX_SMUX_TX_INT			0x20140
13562306a36Sopenharmony_ci#define BGX_SMUX_TX_CTL			0x20178
13662306a36Sopenharmony_ci#define  SMU_TX_CTL_DIC_EN			BIT_ULL(0)
13762306a36Sopenharmony_ci#define  SMU_TX_CTL_UNI_EN			BIT_ULL(1)
13862306a36Sopenharmony_ci#define  SMU_TX_CTL_LNK_STATUS			(3ull << 4)
13962306a36Sopenharmony_ci#define BGX_SMUX_TX_THRESH		0x20180
14062306a36Sopenharmony_ci#define BGX_SMUX_CTL			0x20200
14162306a36Sopenharmony_ci#define  SMU_CTL_RX_IDLE			BIT_ULL(0)
14262306a36Sopenharmony_ci#define  SMU_CTL_TX_IDLE			BIT_ULL(1)
14362306a36Sopenharmony_ci#define	BGX_SMUX_CBFC_CTL		0x20218
14462306a36Sopenharmony_ci#define	RX_EN					BIT_ULL(0)
14562306a36Sopenharmony_ci#define	TX_EN					BIT_ULL(1)
14662306a36Sopenharmony_ci#define	BCK_EN					BIT_ULL(2)
14762306a36Sopenharmony_ci#define	DRP_EN					BIT_ULL(3)
14862306a36Sopenharmony_ci
14962306a36Sopenharmony_ci#define BGX_GMP_PCS_MRX_CTL		0x30000
15062306a36Sopenharmony_ci#define	 PCS_MRX_CTL_RST_AN			BIT_ULL(9)
15162306a36Sopenharmony_ci#define	 PCS_MRX_CTL_PWR_DN			BIT_ULL(11)
15262306a36Sopenharmony_ci#define	 PCS_MRX_CTL_AN_EN			BIT_ULL(12)
15362306a36Sopenharmony_ci#define	 PCS_MRX_CTL_LOOPBACK1			BIT_ULL(14)
15462306a36Sopenharmony_ci#define	 PCS_MRX_CTL_RESET			BIT_ULL(15)
15562306a36Sopenharmony_ci#define BGX_GMP_PCS_MRX_STATUS		0x30008
15662306a36Sopenharmony_ci#define	 PCS_MRX_STATUS_LINK			BIT_ULL(2)
15762306a36Sopenharmony_ci#define	 PCS_MRX_STATUS_AN_CPT			BIT_ULL(5)
15862306a36Sopenharmony_ci#define BGX_GMP_PCS_ANX_ADV		0x30010
15962306a36Sopenharmony_ci#define BGX_GMP_PCS_ANX_AN_RESULTS	0x30020
16062306a36Sopenharmony_ci#define BGX_GMP_PCS_LINKX_TIMER		0x30040
16162306a36Sopenharmony_ci#define PCS_LINKX_TIMER_COUNT			0x1E84
16262306a36Sopenharmony_ci#define BGX_GMP_PCS_SGM_AN_ADV		0x30068
16362306a36Sopenharmony_ci#define BGX_GMP_PCS_MISCX_CTL		0x30078
16462306a36Sopenharmony_ci#define  PCS_MISC_CTL_MODE			BIT_ULL(8)
16562306a36Sopenharmony_ci#define  PCS_MISC_CTL_DISP_EN			BIT_ULL(13)
16662306a36Sopenharmony_ci#define  PCS_MISC_CTL_GMX_ENO			BIT_ULL(11)
16762306a36Sopenharmony_ci#define  PCS_MISC_CTL_SAMP_PT_MASK	0x7Full
16862306a36Sopenharmony_ci#define BGX_GMP_GMI_PRTX_CFG		0x38020
16962306a36Sopenharmony_ci#define  GMI_PORT_CFG_SPEED			BIT_ULL(1)
17062306a36Sopenharmony_ci#define  GMI_PORT_CFG_DUPLEX			BIT_ULL(2)
17162306a36Sopenharmony_ci#define  GMI_PORT_CFG_SLOT_TIME			BIT_ULL(3)
17262306a36Sopenharmony_ci#define  GMI_PORT_CFG_SPEED_MSB			BIT_ULL(8)
17362306a36Sopenharmony_ci#define  GMI_PORT_CFG_RX_IDLE			BIT_ULL(12)
17462306a36Sopenharmony_ci#define  GMI_PORT_CFG_TX_IDLE			BIT_ULL(13)
17562306a36Sopenharmony_ci#define BGX_GMP_GMI_RXX_FRM_CTL		0x38028
17662306a36Sopenharmony_ci#define BGX_GMP_GMI_RXX_JABBER		0x38038
17762306a36Sopenharmony_ci#define BGX_GMP_GMI_TXX_THRESH		0x38210
17862306a36Sopenharmony_ci#define BGX_GMP_GMI_TXX_APPEND		0x38218
17962306a36Sopenharmony_ci#define BGX_GMP_GMI_TXX_SLOT		0x38220
18062306a36Sopenharmony_ci#define BGX_GMP_GMI_TXX_BURST		0x38228
18162306a36Sopenharmony_ci#define BGX_GMP_GMI_TXX_MIN_PKT		0x38240
18262306a36Sopenharmony_ci#define BGX_GMP_GMI_TXX_SGMII_CTL	0x38300
18362306a36Sopenharmony_ci#define BGX_GMP_GMI_TXX_INT		0x38500
18462306a36Sopenharmony_ci#define BGX_GMP_GMI_TXX_INT_W1S		0x38508
18562306a36Sopenharmony_ci#define BGX_GMP_GMI_TXX_INT_ENA_W1C	0x38510
18662306a36Sopenharmony_ci#define BGX_GMP_GMI_TXX_INT_ENA_W1S	0x38518
18762306a36Sopenharmony_ci#define  GMI_TXX_INT_PTP_LOST			BIT_ULL(4)
18862306a36Sopenharmony_ci#define  GMI_TXX_INT_LATE_COL			BIT_ULL(3)
18962306a36Sopenharmony_ci#define  GMI_TXX_INT_XSDEF			BIT_ULL(2)
19062306a36Sopenharmony_ci#define  GMI_TXX_INT_XSCOL			BIT_ULL(1)
19162306a36Sopenharmony_ci#define  GMI_TXX_INT_UNDFLW			BIT_ULL(0)
19262306a36Sopenharmony_ci
19362306a36Sopenharmony_ci#define BGX_MSIX_VEC_0_29_ADDR		0x400000 /* +(0..29) << 4 */
19462306a36Sopenharmony_ci#define BGX_MSIX_VEC_0_29_CTL		0x400008
19562306a36Sopenharmony_ci#define BGX_MSIX_PBA_0			0x4F0000
19662306a36Sopenharmony_ci
19762306a36Sopenharmony_ci/* MSI-X interrupts */
19862306a36Sopenharmony_ci#define BGX_MSIX_VECTORS	30
19962306a36Sopenharmony_ci#define BGX_LMAC_VEC_OFFSET	7
20062306a36Sopenharmony_ci#define BGX_MSIX_VEC_SHIFT	4
20162306a36Sopenharmony_ci
20262306a36Sopenharmony_ci#define CMRX_INT		0
20362306a36Sopenharmony_ci#define SPUX_INT		1
20462306a36Sopenharmony_ci#define SMUX_RX_INT		2
20562306a36Sopenharmony_ci#define SMUX_TX_INT		3
20662306a36Sopenharmony_ci#define GMPX_PCS_INT		4
20762306a36Sopenharmony_ci#define GMPX_GMI_RX_INT		5
20862306a36Sopenharmony_ci#define GMPX_GMI_TX_INT		6
20962306a36Sopenharmony_ci#define CMR_MEM_INT		28
21062306a36Sopenharmony_ci#define SPU_MEM_INT		29
21162306a36Sopenharmony_ci
21262306a36Sopenharmony_ci#define LMAC_INTR_LINK_UP	BIT(0)
21362306a36Sopenharmony_ci#define LMAC_INTR_LINK_DOWN	BIT(1)
21462306a36Sopenharmony_ci
21562306a36Sopenharmony_ci#define BGX_XCAST_BCAST_ACCEPT  BIT(0)
21662306a36Sopenharmony_ci#define BGX_XCAST_MCAST_ACCEPT  BIT(1)
21762306a36Sopenharmony_ci#define BGX_XCAST_MCAST_FILTER  BIT(2)
21862306a36Sopenharmony_ci
21962306a36Sopenharmony_civoid bgx_set_dmac_cam_filter(int node, int bgx_idx, int lmacid, u64 mac, u8 vf);
22062306a36Sopenharmony_civoid bgx_reset_xcast_mode(int node, int bgx_idx, int lmacid, u8 vf);
22162306a36Sopenharmony_civoid bgx_set_xcast_mode(int node, int bgx_idx, int lmacid, u8 mode);
22262306a36Sopenharmony_civoid octeon_mdiobus_force_mod_depencency(void);
22362306a36Sopenharmony_civoid bgx_lmac_rx_tx_enable(int node, int bgx_idx, int lmacid, bool enable);
22462306a36Sopenharmony_civoid bgx_add_dmac_addr(u64 dmac, int node, int bgx_idx, int lmac);
22562306a36Sopenharmony_ciunsigned bgx_get_map(int node);
22662306a36Sopenharmony_ciint bgx_get_lmac_count(int node, int bgx);
22762306a36Sopenharmony_ciconst u8 *bgx_get_lmac_mac(int node, int bgx_idx, int lmacid);
22862306a36Sopenharmony_civoid bgx_set_lmac_mac(int node, int bgx_idx, int lmacid, const u8 *mac);
22962306a36Sopenharmony_civoid bgx_get_lmac_link_state(int node, int bgx_idx, int lmacid, void *status);
23062306a36Sopenharmony_civoid bgx_lmac_internal_loopback(int node, int bgx_idx,
23162306a36Sopenharmony_ci				int lmac_idx, bool enable);
23262306a36Sopenharmony_civoid bgx_config_timestamping(int node, int bgx_idx, int lmacid, bool enable);
23362306a36Sopenharmony_civoid bgx_lmac_get_pfc(int node, int bgx_idx, int lmacid, void *pause);
23462306a36Sopenharmony_civoid bgx_lmac_set_pfc(int node, int bgx_idx, int lmacid, void *pause);
23562306a36Sopenharmony_ci
23662306a36Sopenharmony_civoid xcv_init_hw(void);
23762306a36Sopenharmony_civoid xcv_setup_link(bool link_up, int link_speed);
23862306a36Sopenharmony_ci
23962306a36Sopenharmony_ciu64 bgx_get_rx_stats(int node, int bgx_idx, int lmac, int idx);
24062306a36Sopenharmony_ciu64 bgx_get_tx_stats(int node, int bgx_idx, int lmac, int idx);
24162306a36Sopenharmony_ci#define BGX_RX_STATS_COUNT 11
24262306a36Sopenharmony_ci#define BGX_TX_STATS_COUNT 18
24362306a36Sopenharmony_ci
24462306a36Sopenharmony_cistruct bgx_stats {
24562306a36Sopenharmony_ci	u64 rx_stats[BGX_RX_STATS_COUNT];
24662306a36Sopenharmony_ci	u64 tx_stats[BGX_TX_STATS_COUNT];
24762306a36Sopenharmony_ci};
24862306a36Sopenharmony_ci
24962306a36Sopenharmony_cienum LMAC_TYPE {
25062306a36Sopenharmony_ci	BGX_MODE_SGMII = 0, /* 1 lane, 1.250 Gbaud */
25162306a36Sopenharmony_ci	BGX_MODE_XAUI = 1,  /* 4 lanes, 3.125 Gbaud */
25262306a36Sopenharmony_ci	BGX_MODE_DXAUI = 1, /* 4 lanes, 6.250 Gbaud */
25362306a36Sopenharmony_ci	BGX_MODE_RXAUI = 2, /* 2 lanes, 6.250 Gbaud */
25462306a36Sopenharmony_ci	BGX_MODE_XFI = 3,   /* 1 lane, 10.3125 Gbaud */
25562306a36Sopenharmony_ci	BGX_MODE_XLAUI = 4, /* 4 lanes, 10.3125 Gbaud */
25662306a36Sopenharmony_ci	BGX_MODE_10G_KR = 3,/* 1 lane, 10.3125 Gbaud */
25762306a36Sopenharmony_ci	BGX_MODE_40G_KR = 4,/* 4 lanes, 10.3125 Gbaud */
25862306a36Sopenharmony_ci	BGX_MODE_RGMII = 5,
25962306a36Sopenharmony_ci	BGX_MODE_QSGMII = 6,
26062306a36Sopenharmony_ci	BGX_MODE_INVALID = 7,
26162306a36Sopenharmony_ci};
26262306a36Sopenharmony_ci
26362306a36Sopenharmony_ci#endif /* THUNDER_BGX_H */
264