Skip to content

Commit 1fd9148

Browse files
Update cmis.py
1 parent 58c5c40 commit 1fd9148

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • sonic_platform_base/sonic_xcvr/mem_maps/public

sonic_platform_base/sonic_xcvr/mem_maps/public/cmis.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@
1919
from ...fields.consts import *
2020
from ...fields.public.cmis import CableLenField
2121

22-
# Constants matching optoe driver
2322
CMIS_EEPROM_PAGE_SIZE = 128
24-
CMIS_NUM_NON_BANKED_PAGES = 16 # pages 00h-0Fh
25-
CMIS_NUM_BANKED_PAGES = 240 # pages 10h-FFh
2623
CMIS_ARCH_PAGES = 256 # architectural pages per bank (matches OPTOE_ARCH_PAGES)
2724

2825
class CmisFlatMemMap(XcvrMemMap):
@@ -152,7 +149,7 @@ def bank(self):
152149

153150
def getaddr(self, page, offset, page_size=128):
154151
"""
155-
Calculate linear offset for optoe driver using instance's bank.
152+
Calculate linear offset
156153
157154
For lower memory (page 0, offset < 128):
158155
linear_offset = offset

0 commit comments

Comments
 (0)