We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58c5c40 commit 1fd9148Copy full SHA for 1fd9148
1 file changed
sonic_platform_base/sonic_xcvr/mem_maps/public/cmis.py
@@ -19,10 +19,7 @@
19
from ...fields.consts import *
20
from ...fields.public.cmis import CableLenField
21
22
-# Constants matching optoe driver
23
CMIS_EEPROM_PAGE_SIZE = 128
24
-CMIS_NUM_NON_BANKED_PAGES = 16 # pages 00h-0Fh
25
-CMIS_NUM_BANKED_PAGES = 240 # pages 10h-FFh
26
CMIS_ARCH_PAGES = 256 # architectural pages per bank (matches OPTOE_ARCH_PAGES)
27
28
class CmisFlatMemMap(XcvrMemMap):
@@ -152,7 +149,7 @@ def bank(self):
152
149
153
150
def getaddr(self, page, offset, page_size=128):
154
151
"""
155
- Calculate linear offset for optoe driver using instance's bank.
+ Calculate linear offset
156
157
For lower memory (page 0, offset < 128):
158
linear_offset = offset
0 commit comments