Jeff Kirsher | ae06c70 | 2018-03-22 10:08:48 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Jeff Kirsher | 51dce24 | 2018-04-26 08:08:09 -0700 | [diff] [blame] | 2 | /* Copyright(c) 2013 - 2018 Intel Corporation. */ |
Jesse Brandeburg | 56a62fc | 2013-09-11 08:40:12 +0000 | [diff] [blame] | 3 | |
| 4 | #ifndef _I40E_DIAG_H_ |
| 5 | #define _I40E_DIAG_H_ |
| 6 | |
| 7 | #include "i40e_type.h" |
| 8 | |
| 9 | enum i40e_lb_mode { |
Kamil Krawczyk | 639dc37 | 2013-11-20 10:03:07 +0000 | [diff] [blame] | 10 | I40E_LB_MODE_NONE = 0x0, |
| 11 | I40E_LB_MODE_PHY_LOCAL = I40E_AQ_LB_PHY_LOCAL, |
| 12 | I40E_LB_MODE_PHY_REMOTE = I40E_AQ_LB_PHY_REMOTE, |
| 13 | I40E_LB_MODE_MAC_LOCAL = I40E_AQ_LB_MAC_LOCAL, |
Jesse Brandeburg | 56a62fc | 2013-09-11 08:40:12 +0000 | [diff] [blame] | 14 | }; |
| 15 | |
| 16 | struct i40e_diag_reg_test_info { |
| 17 | u32 offset; /* the base register */ |
| 18 | u32 mask; /* bits that can be tested */ |
| 19 | u32 elements; /* number of elements if array */ |
| 20 | u32 stride; /* bytes between each element */ |
| 21 | }; |
| 22 | |
| 23 | extern struct i40e_diag_reg_test_info i40e_reg_list[]; |
| 24 | |
| 25 | i40e_status i40e_diag_reg_test(struct i40e_hw *hw); |
| 26 | i40e_status i40e_diag_eeprom_test(struct i40e_hw *hw); |
| 27 | |
| 28 | #endif /* _I40E_DIAG_H_ */ |