i40e_diag.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*******************************************************************************
  2. *
  3. * Intel Ethernet Controller XL710 Family Linux Driver
  4. * Copyright(c) 2013 - 2014 Intel Corporation.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms and conditions of the GNU General Public License,
  8. * version 2, as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  13. * more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along
  16. * with this program. If not, see <http://www.gnu.org/licenses/>.
  17. *
  18. * The full GNU General Public License is included in this distribution in
  19. * the file called "COPYING".
  20. *
  21. * Contact Information:
  22. * e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
  23. * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
  24. *
  25. ******************************************************************************/
  26. #ifndef _I40E_DIAG_H_
  27. #define _I40E_DIAG_H_
  28. #include "i40e_type.h"
  29. enum i40e_lb_mode {
  30. I40E_LB_MODE_NONE = 0x0,
  31. I40E_LB_MODE_PHY_LOCAL = I40E_AQ_LB_PHY_LOCAL,
  32. I40E_LB_MODE_PHY_REMOTE = I40E_AQ_LB_PHY_REMOTE,
  33. I40E_LB_MODE_MAC_LOCAL = I40E_AQ_LB_MAC_LOCAL,
  34. };
  35. struct i40e_diag_reg_test_info {
  36. u32 offset; /* the base register */
  37. u32 mask; /* bits that can be tested */
  38. u32 elements; /* number of elements if array */
  39. u32 stride; /* bytes between each element */
  40. };
  41. extern struct i40e_diag_reg_test_info i40e_reg_list[];
  42. i40e_status i40e_diag_reg_test(struct i40e_hw *hw);
  43. i40e_status i40e_diag_eeprom_test(struct i40e_hw *hw);
  44. #endif /* _I40E_DIAG_H_ */