@@ -33,7 +33,7 @@ def __init__(self, codes):
33
33
CodeRegField (consts .ID_ABBRV_FIELD , self .get_addr (0xA0 , None , 0 ), self .codes .XCVR_IDENTIFIER_ABBRV ),
34
34
CodeRegField (consts .EXT_ID_FIELD , self .get_addr (0xA0 , None , 1 ), self .codes .EXT_IDENTIFIERS ),
35
35
CodeRegField (consts .CONNECTOR_FIELD , self .get_addr (0xA0 , None , 2 ), self .codes .CONNECTORS ),
36
- RegGroupField (consts .SPEC_COMPLIANCE_FIELD ,
36
+ RegGroupField (consts .SPEC_COMPLIANCE_FIELD ,
37
37
CodeRegField (consts .ETHERNET_10G_COMPLIANCE_FIELD , self .get_addr (0xA0 , None , 3 ), self .codes .ETHERNET_10G_COMPLIANCE ,
38
38
* (RegBitField ("%s_%d" % (consts .ETHERNET_10G_COMPLIANCE_FIELD , bit ), bit ) for bit in range (4 , 8 ))
39
39
),
@@ -84,14 +84,14 @@ def __init__(self, codes):
84
84
RegBitField (consts .INT_CAL_FIELD , 5 ),
85
85
RegBitField (consts .EXT_CAL_FIELD , 4 ),
86
86
),
87
- NumberRegField (consts .ENHANCED_OPTIONS_FIELD , self .get_addr (0xA0 , None , 3 ),
87
+ NumberRegField (consts .ENHANCED_OPTIONS_FIELD , self .get_addr (0xA0 , None , 93 ),
88
88
RegBitField (consts .TX_DISABLE_SUPPORT_FIELD , 6 ),
89
89
RegBitField (consts .TX_FAULT_SUPPORT_FIELD , 5 ),
90
90
RegBitField (consts .RX_LOS_SUPPORT_FIELD , 4 ),
91
91
),
92
92
)
93
93
94
- self .STATUS_CTRL = NumberRegField (consts .STATUS_CTRL_FIELD , self .get_addr (0xA2 , 0 , 110 ),
94
+ self .STATUS_CTRL = NumberRegField (consts .STATUS_CTRL_FIELD , self .get_addr (0xA2 , 0 , 110 ),
95
95
RegBitField (consts .TX_DISABLE_FIELD , 7 ),
96
96
RegBitField (consts .TX_DISABLE_SELECT_FIELD , 6 , ro = False ),
97
97
RegBitField (consts .TX_FAULT_FIELD , 2 ),
@@ -100,12 +100,12 @@ def __init__(self, codes):
100
100
101
101
ext_cal_deps = [consts .INT_CAL_FIELD ,
102
102
consts .EXT_CAL_FIELD ,
103
- consts .RX_PWR_4_FIELD ,
103
+ consts .RX_PWR_4_FIELD ,
104
104
consts .RX_PWR_3_FIELD ,
105
- consts .RX_PWR_2_FIELD ,
106
- consts .RX_PWR_1_FIELD ,
107
- consts .RX_PWR_0_FIELD ,
108
- consts .TX_I_SLOPE_FIELD ,
105
+ consts .RX_PWR_2_FIELD ,
106
+ consts .RX_PWR_1_FIELD ,
107
+ consts .RX_PWR_0_FIELD ,
108
+ consts .TX_I_SLOPE_FIELD ,
109
109
consts .TX_I_OFFSET_FIELD ,
110
110
consts .TX_PWR_SLOPE_FIELD ,
111
111
consts .TX_PWR_OFFSET_FIELD ,
@@ -161,7 +161,7 @@ def __init__(self, codes):
161
161
FixedNumberRegField (consts .T_SLOPE_FIELD , self .get_addr (0xA2 , 0 , 84 ), 8 , size = 2 , format = ">H" ),
162
162
NumberRegField (consts .T_OFFSET_FIELD , self .get_addr (0xA2 , 0 , 86 ), size = 2 , format = ">H" ),
163
163
FixedNumberRegField (consts .V_SLOPE_FIELD , self .get_addr (0xA2 , 0 , 88 ), 8 , size = 2 , format = ">H" ),
164
- NumberRegField (consts .V_OFFSET_FIELD , self .get_addr (0xA2 , 0 , 90 ), size = 2 , format = ">h" )
164
+ NumberRegField (consts .V_OFFSET_FIELD , self .get_addr (0xA2 , 0 , 90 ), size = 2 , format = ">h" )
165
165
)
166
166
167
167
def get_addr (self , wire_addr , page , offset , page_size = 128 ):
0 commit comments