Linux Audio

Check our new training course

Loading...
v6.9.4
 1/* SPDX-License-Identifier: GPL-2.0 */
 2/* Copyright(c) 2013 - 2018 Intel Corporation. */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 3
 4#ifndef _I40E_DIAG_H_
 5#define _I40E_DIAG_H_
 6
 7#include <linux/types.h>
 8#include "i40e_adminq_cmd.h"
 9
10/* forward-declare the HW struct for the compiler */
11struct i40e_hw;
12
13enum i40e_lb_mode {
14	I40E_LB_MODE_NONE       = 0x0,
15	I40E_LB_MODE_PHY_LOCAL  = I40E_AQ_LB_PHY_LOCAL,
16	I40E_LB_MODE_PHY_REMOTE = I40E_AQ_LB_PHY_REMOTE,
17	I40E_LB_MODE_MAC_LOCAL  = I40E_AQ_LB_MAC_LOCAL,
18};
19
20struct i40e_diag_reg_test_info {
21	u32 offset;	/* the base register */
22	u32 mask;	/* bits that can be tested */
23	u32 elements;	/* number of elements if array */
24	u32 stride;	/* bytes between each element */
25};
26
27extern const struct i40e_diag_reg_test_info i40e_reg_list[];
28
29int i40e_diag_reg_test(struct i40e_hw *hw);
30int i40e_diag_eeprom_test(struct i40e_hw *hw);
31
32#endif /* _I40E_DIAG_H_ */
v4.10.11
 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
27#ifndef _I40E_DIAG_H_
28#define _I40E_DIAG_H_
29
30#include "i40e_type.h"
 
 
 
 
31
32enum i40e_lb_mode {
33	I40E_LB_MODE_NONE       = 0x0,
34	I40E_LB_MODE_PHY_LOCAL  = I40E_AQ_LB_PHY_LOCAL,
35	I40E_LB_MODE_PHY_REMOTE = I40E_AQ_LB_PHY_REMOTE,
36	I40E_LB_MODE_MAC_LOCAL  = I40E_AQ_LB_MAC_LOCAL,
37};
38
39struct i40e_diag_reg_test_info {
40	u32 offset;	/* the base register */
41	u32 mask;	/* bits that can be tested */
42	u32 elements;	/* number of elements if array */
43	u32 stride;	/* bytes between each element */
44};
45
46extern struct i40e_diag_reg_test_info i40e_reg_list[];
47
48i40e_status i40e_diag_reg_test(struct i40e_hw *hw);
49i40e_status i40e_diag_eeprom_test(struct i40e_hw *hw);
50
51#endif /* _I40E_DIAG_H_ */