diff options
| author | Scott W Taylor <[email protected]> | 2019-10-09 14:09:40 +0000 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2019-11-07 00:41:45 +0000 |
| commit | a012dca9f7a2bc44b6680c20bec06fe9b2e55d37 (patch) | |
| tree | 6df54ddc8c6dc8d6359dc87b429e6b8d7c47bca6 /drivers/net/ethernet/intel/ice/ice_common.h | |
| parent | tc-testing: updated pedit TDC tests (diff) | |
| download | kernel-a012dca9f7a2bc44b6680c20bec06fe9b2e55d37.tar.gz kernel-a012dca9f7a2bc44b6680c20bec06fe9b2e55d37.zip | |
ice: add ethtool -m support for reading i2c eeprom modules
Implement ethtool -m support to read eeprom data from SFP/QSFP modules.
Signed-off-by: Scott W Taylor <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.h')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_common.h b/drivers/net/ethernet/intel/ice/ice_common.h index c3df92f57777..4d5aa0a0d27a 100644 --- a/drivers/net/ethernet/intel/ice/ice_common.h +++ b/drivers/net/ethernet/intel/ice/ice_common.h @@ -117,6 +117,10 @@ ice_aq_set_mac_loopback(struct ice_hw *hw, bool ena_lpbk, struct ice_sq_cd *cd); enum ice_status ice_aq_set_port_id_led(struct ice_port_info *pi, bool is_orig_mode, struct ice_sq_cd *cd); +enum ice_status +ice_aq_sff_eeprom(struct ice_hw *hw, u16 lport, u8 bus_addr, + u16 mem_addr, u8 page, u8 set_page, u8 *data, u8 length, + bool write, struct ice_sq_cd *cd); enum ice_status ice_dis_vsi_txq(struct ice_port_info *pi, u16 vsi_handle, u8 tc, u8 num_queues, |
