Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* Copyright(c) 2013 - 2018 Intel Corporation. */
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; /* the base register */
0018     u32 mask;   /* bits that can be tested */
0019     u32 elements;   /* number of elements if array */
0020     u32 stride; /* bytes between each element */
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 /* _I40E_DIAG_H_ */