From a37d9b346594f9e477988d99c175e029e197d230 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Sat, 19 Sep 2020 16:42:54 -0700 Subject: [PATCH] New transceiver control reigster definitions --- fpga/common/tb/mqnic.py | 11 +++++++++++ modules/mqnic/mqnic_hw.h | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/fpga/common/tb/mqnic.py b/fpga/common/tb/mqnic.py index db96ddb82..91fed935a 100644 --- a/fpga/common/tb/mqnic.py +++ b/fpga/common/tb/mqnic.py @@ -75,6 +75,17 @@ MQNIC_REG_GPIO_I2C_SCL_OUT = 0x00000002 MQNIC_REG_GPIO_I2C_SDA_IN = 0x00000100 MQNIC_REG_GPIO_I2C_SDA_OUT = 0x00000200 +MQNIC_REG_GPIO_XCVR_0123 = 0x0120 +MQNIC_REG_GPIO_XCVR_4567 = 0x0124 + +MQNIC_REG_GPIO_XCVR_PRSNT_IN = 0x01 +MQNIC_REG_GPIO_XCVR_TX_FAULT_INT_IN = 0x02 +MQNIC_REG_GPIO_XCVR_RX_LOS_IN = 0x03 +MQNIC_REG_GPIO_XCVR_RST_OUT = 0x10 +MQNIC_REG_GPIO_XCVR_TX_DIS_LPMODE_OUT = 0x20 +MQNIC_REG_GPIO_XCVR_RS0_OUT = 0x40 +MQNIC_REG_GPIO_XCVR_RS1_OUT = 0x80 + MQNIC_PHC_REG_FEATURES = 0x0000 MQNIC_PHC_REG_PTP_CUR_FNS = 0x0010 MQNIC_PHC_REG_PTP_CUR_NS = 0x0014 diff --git a/modules/mqnic/mqnic_hw.h b/modules/mqnic/mqnic_hw.h index e49dc244c..ded5b7059 100644 --- a/modules/mqnic/mqnic_hw.h +++ b/modules/mqnic/mqnic_hw.h @@ -90,6 +90,17 @@ either expressed or implied, of The Regents of the University of California. #define MQNIC_REG_GPIO_I2C_SDA_IN 0x00000100 #define MQNIC_REG_GPIO_I2C_SDA_OUT 0x00000200 +#define MQNIC_REG_GPIO_XCVR_0123 0x0120 +#define MQNIC_REG_GPIO_XCVR_4567 0x0124 + +#define MQNIC_REG_GPIO_XCVR_PRSNT_IN 0x01 +#define MQNIC_REG_GPIO_XCVR_TX_FAULT_INT_IN 0x02 +#define MQNIC_REG_GPIO_XCVR_RX_LOS_IN 0x03 +#define MQNIC_REG_GPIO_XCVR_RST_OUT 0x10 +#define MQNIC_REG_GPIO_XCVR_TX_DIS_LPMODE_OUT 0x20 +#define MQNIC_REG_GPIO_XCVR_RS0_OUT 0x40 +#define MQNIC_REG_GPIO_XCVR_RS1_OUT 0x80 + #define MQNIC_PHC_REG_FEATURES 0x0000 #define MQNIC_PHC_REG_PTP_CUR_FNS 0x0010 #define MQNIC_PHC_REG_PTP_CUR_NS 0x0014