diff options
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_mcp.h')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_mcp.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_mcp.h b/drivers/net/ethernet/qlogic/qed/qed_mcp.h index 632a838f1fe3..047976d5c6e9 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_mcp.h +++ b/drivers/net/ethernet/qlogic/qed/qed_mcp.h | |||
@@ -840,6 +840,22 @@ int qed_mcp_nvm_rd_cmd(struct qed_hwfn *p_hwfn, | |||
840 | u32 *o_mcp_param, u32 *o_txn_size, u32 *o_buf); | 840 | u32 *o_mcp_param, u32 *o_txn_size, u32 *o_buf); |
841 | 841 | ||
842 | /** | 842 | /** |
843 | * @brief Read from sfp | ||
844 | * | ||
845 | * @param p_hwfn - hw function | ||
846 | * @param p_ptt - PTT required for register access | ||
847 | * @param port - transceiver port | ||
848 | * @param addr - I2C address | ||
849 | * @param offset - offset in sfp | ||
850 | * @param len - buffer length | ||
851 | * @param p_buf - buffer to read into | ||
852 | * | ||
853 | * @return int - 0 - operation was successful. | ||
854 | */ | ||
855 | int qed_mcp_phy_sfp_read(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, | ||
856 | u32 port, u32 addr, u32 offset, u32 len, u8 *p_buf); | ||
857 | |||
858 | /** | ||
843 | * @brief indicates whether the MFW objects [under mcp_info] are accessible | 859 | * @brief indicates whether the MFW objects [under mcp_info] are accessible |
844 | * | 860 | * |
845 | * @param p_hwfn | 861 | * @param p_hwfn |