i40e_diag.h 764 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright(c) 2013 - 2018 Intel Corporation. */
  3. #ifndef _I40E_DIAG_H_
  4. #define _I40E_DIAG_H_
  5. #include "i40e_type.h"
  6. enum i40e_lb_mode {
  7. I40E_LB_MODE_NONE = 0x0,
  8. I40E_LB_MODE_PHY_LOCAL = I40E_AQ_LB_PHY_LOCAL,
  9. I40E_LB_MODE_PHY_REMOTE = I40E_AQ_LB_PHY_REMOTE,
  10. I40E_LB_MODE_MAC_LOCAL = I40E_AQ_LB_MAC_LOCAL,
  11. };
  12. struct i40e_diag_reg_test_info {
  13. u32 offset; /* the base register */
  14. u32 mask; /* bits that can be tested */
  15. u32 elements; /* number of elements if array */
  16. u32 stride; /* bytes between each element */
  17. };
  18. extern struct i40e_diag_reg_test_info i40e_reg_list[];
  19. i40e_status i40e_diag_reg_test(struct i40e_hw *hw);
  20. i40e_status i40e_diag_eeprom_test(struct i40e_hw *hw);
  21. #endif /* _I40E_DIAG_H_ */