-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mellanox] Credo Y-cable read_eeprom/write_eeprom API implementation (#…
…10320) - Why I did it Implement read_eeprom/write_eeprom API for Credo Y-cable for Dual ToR Active-Standby - How I did it Use mlxreg utility for API implementation Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
- Loading branch information
1 parent
761ae24
commit 1e2e493
Showing
4 changed files
with
247 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
55 changes: 55 additions & 0 deletions
55
platform/mellanox/mlnx-platform-api/tests/input_platform/output_sfp.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
""" | ||
module holding the correct values for the sfp_test.py | ||
""" | ||
|
||
read_eeprom_output = """ | ||
Sending access register... | ||
Field Name | Data | ||
=================================== | ||
status | 0x00000000 | ||
slot_index | 0x00000000 | ||
module | 0x00000001 | ||
l | 0x00000000 | ||
device_address | 0x000000a8 | ||
page_number | 0x00000000 | ||
i2c_device_address | 0x00000050 | ||
size | 0x00000010 | ||
bank_number | 0x00000000 | ||
dword[0] | 0x43414331 | ||
dword[1] | 0x31353332 | ||
dword[2] | 0x31503250 | ||
dword[3] | 0x41324d53 | ||
dword[4] | 0x00000000 | ||
dword[5] | 0x00000000 | ||
dword[6] | 0x00000000 | ||
dword[7] | 0x00000000 | ||
dword[8] | 0x00000000 | ||
dword[9] | 0x00000000 | ||
dword[10] | 0x00000000 | ||
dword[11] | 0x00000000 | ||
dword[12] | 0x00000000 | ||
dword[13] | 0x00000000 | ||
dword[14] | 0x00000000 | ||
dword[15] | 0x00000000 | ||
dword[16] | 0x00000000 | ||
dword[17] | 0x00000000 | ||
dword[18] | 0x00000000 | ||
dword[19] | 0x00000000 | ||
dword[20] | 0x00000000 | ||
dword[21] | 0x00000000 | ||
dword[22] | 0x00000000 | ||
dword[23] | 0x00000000 | ||
dword[24] | 0x00000000 | ||
dword[25] | 0x00000000 | ||
dword[26] | 0x00000000 | ||
dword[27] | 0x00000000 | ||
dword[28] | 0x00000000 | ||
dword[29] | 0x00000000 | ||
dword[30] | 0x00000000 | ||
dword[31] | 0x00000000 | ||
=================================== | ||
""" | ||
|
||
y_cable_part_number = "CAC115321P2PA2MS" | ||
write_eeprom_dword1 = "dword[0]=0x01020304" | ||
write_eeprom_dword2 = "dword[0]=0x01020304,dword[1]=0x05060000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters