xref: /freebsd/sys/compat/linuxkpi/common/include/linux/ethtool.h (revision 0c37ffda799a9d44370bfe9898f220c193306842)
1*0c37ffdaSBjoern A. Zeeb /*-
2*0c37ffdaSBjoern A. Zeeb  * SPDX-License-Identifier: BSD-2-Clause
3*0c37ffdaSBjoern A. Zeeb  *
4*0c37ffdaSBjoern A. Zeeb  * Copyright (c) 2022 Bjoern A. Zeeb
5*0c37ffdaSBjoern A. Zeeb  *
6*0c37ffdaSBjoern A. Zeeb  * Redistribution and use in source and binary forms, with or without
7*0c37ffdaSBjoern A. Zeeb  * modification, are permitted provided that the following conditions
8*0c37ffdaSBjoern A. Zeeb  * are met:
9*0c37ffdaSBjoern A. Zeeb  * 1. Redistributions of source code must retain the above copyright
10*0c37ffdaSBjoern A. Zeeb  *    notice, this list of conditions and the following disclaimer.
11*0c37ffdaSBjoern A. Zeeb  * 2. Redistributions in binary form must reproduce the above copyright
12*0c37ffdaSBjoern A. Zeeb  *    notice, this list of conditions and the following disclaimer in the
13*0c37ffdaSBjoern A. Zeeb  *    documentation and/or other materials provided with the distribution.
14*0c37ffdaSBjoern A. Zeeb  *
15*0c37ffdaSBjoern A. Zeeb  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16*0c37ffdaSBjoern A. Zeeb  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17*0c37ffdaSBjoern A. Zeeb  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18*0c37ffdaSBjoern A. Zeeb  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19*0c37ffdaSBjoern A. Zeeb  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20*0c37ffdaSBjoern A. Zeeb  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21*0c37ffdaSBjoern A. Zeeb  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22*0c37ffdaSBjoern A. Zeeb  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23*0c37ffdaSBjoern A. Zeeb  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24*0c37ffdaSBjoern A. Zeeb  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25*0c37ffdaSBjoern A. Zeeb  * SUCH DAMAGE.
26*0c37ffdaSBjoern A. Zeeb  *
27*0c37ffdaSBjoern A. Zeeb  * $FreeBSD$
28*0c37ffdaSBjoern A. Zeeb  */
29*0c37ffdaSBjoern A. Zeeb 
30*0c37ffdaSBjoern A. Zeeb #ifndef _LINUXKPI_LINUX_ETHTOOL_H_
31*0c37ffdaSBjoern A. Zeeb #define	_LINUXKPI_LINUX_ETHTOOL_H_
32*0c37ffdaSBjoern A. Zeeb 
33*0c37ffdaSBjoern A. Zeeb #include <linux/types.h>
34*0c37ffdaSBjoern A. Zeeb 
35*0c37ffdaSBjoern A. Zeeb #define	ETHTOOL_FWVERS_LEN	64
36*0c37ffdaSBjoern A. Zeeb 
37*0c37ffdaSBjoern A. Zeeb struct ethtool_stats {
38*0c37ffdaSBjoern A. Zeeb 	uint8_t __dummy[0];
39*0c37ffdaSBjoern A. Zeeb };
40*0c37ffdaSBjoern A. Zeeb 
41*0c37ffdaSBjoern A. Zeeb #endif	/* _LINUXKPI_LINUX_ETHTOOL_H_ */
42