0001
0002
0003
0004 #ifndef _I40E_DIAG_H_
0005 #define _I40E_DIAG_H_
0006
0007 #include "i40e_type.h"
0008
0009 enum i40e_lb_mode {
0010 I40E_LB_MODE_NONE = 0x0,
0011 I40E_LB_MODE_PHY_LOCAL = I40E_AQ_LB_PHY_LOCAL,
0012 I40E_LB_MODE_PHY_REMOTE = I40E_AQ_LB_PHY_REMOTE,
0013 I40E_LB_MODE_MAC_LOCAL = I40E_AQ_LB_MAC_LOCAL,
0014 };
0015
0016 struct i40e_diag_reg_test_info {
0017 u32 offset;
0018 u32 mask;
0019 u32 elements;
0020 u32 stride;
0021 };
0022
0023 extern struct i40e_diag_reg_test_info i40e_reg_list[];
0024
0025 i40e_status i40e_diag_reg_test(struct i40e_hw *hw);
0026 i40e_status i40e_diag_eeprom_test(struct i40e_hw *hw);
0027
0028 #endif