]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/net/ethernet/intel/i40e/i40e_diag.h
Merge tag 'jfs-3.12' of git://github.com/kleikamp/linux-shaggy
[karo-tx-linux.git] / drivers / net / ethernet / intel / i40e / i40e_diag.h
1 /*******************************************************************************
2  *
3  * Intel Ethernet Controller XL710 Family Linux Driver
4  * Copyright(c) 2013 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 with
16  * this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
18  *
19  * The full GNU General Public License is included in this distribution in
20  * the file called "COPYING".
21  *
22  * Contact Information:
23  * e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
24  * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
25  *
26  ******************************************************************************/
27
28 #ifndef _I40E_DIAG_H_
29 #define _I40E_DIAG_H_
30
31 #include "i40e_type.h"
32
33 enum i40e_lb_mode {
34         I40E_LB_MODE_NONE = 0,
35         I40E_LB_MODE_PHY_LOCAL,
36         I40E_LB_MODE_PHY_REMOTE,
37         I40E_LB_MODE_MAC_LOCAL,
38 };
39
40 struct i40e_diag_reg_test_info {
41         u32 offset;     /* the base register */
42         u32 mask;       /* bits that can be tested */
43         u32 elements;   /* number of elements if array */
44         u32 stride;     /* bytes between each element */
45 };
46
47 extern struct i40e_diag_reg_test_info i40e_reg_list[];
48
49 i40e_status i40e_diag_reg_test(struct i40e_hw *hw);
50 i40e_status i40e_diag_eeprom_test(struct i40e_hw *hw);
51
52 #endif /* _I40E_DIAG_H_ */