-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Accton] Support 0x56 device access via onlp_sfpi_dev_writew/readw
Allow access to Marvell PHY device (0x56) through the following APIs: onlp_sfpi_dev_readw(int port, uint8_t devaddr, uint8_t addr) onlp_sfpi_dev_writew(int port, uint8_t devaddr, uint8_t addr, uint16_t value) onlp_sfpi_dev_read(int port, uint8_t devaddr, uint8_t addr, uint8_t* rdata, int size) onlp_sfpi_dev_write(int port, uint8_t devaddr, uint8_t addr, uint8_t* data, int size) Parameter Descriptions: `port`: Range from 0 to 47, specifies the port number. `devaddr`: Device address, fixed to 0x56 for the Marvell PHY device. `addr`: Register address, range from 0 to 0x19. `value`: Register value to write, formatted as (High byte << 8) | (Low byte). `rdata`: Pointer to the buffer where register values will be read into. `data`: Pointer to the buffer containing the register values to be written. `size`: Must be greater than 0 and an even value. Signed-off-by: Brandon Chuang <[email protected]>
- Loading branch information
1 parent
156b59f
commit ed80c53
Showing
1 changed file
with
95 additions
and
26 deletions.
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