xref: /freebsd/sys/dev/ixl/i40e_devids.h (revision be771cda12c9561b16f302095653185775db0f99)
1*be771cdaSJack F Vogel /******************************************************************************
2*be771cdaSJack F Vogel 
3*be771cdaSJack F Vogel   Copyright (c) 2013-2015, Intel Corporation
4*be771cdaSJack F Vogel   All rights reserved.
5*be771cdaSJack F Vogel 
6*be771cdaSJack F Vogel   Redistribution and use in source and binary forms, with or without
7*be771cdaSJack F Vogel   modification, are permitted provided that the following conditions are met:
8*be771cdaSJack F Vogel 
9*be771cdaSJack F Vogel    1. Redistributions of source code must retain the above copyright notice,
10*be771cdaSJack F Vogel       this list of conditions and the following disclaimer.
11*be771cdaSJack F Vogel 
12*be771cdaSJack F Vogel    2. Redistributions in binary form must reproduce the above copyright
13*be771cdaSJack F Vogel       notice, this list of conditions and the following disclaimer in the
14*be771cdaSJack F Vogel       documentation and/or other materials provided with the distribution.
15*be771cdaSJack F Vogel 
16*be771cdaSJack F Vogel    3. Neither the name of the Intel Corporation nor the names of its
17*be771cdaSJack F Vogel       contributors may be used to endorse or promote products derived from
18*be771cdaSJack F Vogel       this software without specific prior written permission.
19*be771cdaSJack F Vogel 
20*be771cdaSJack F Vogel   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21*be771cdaSJack F Vogel   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22*be771cdaSJack F Vogel   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23*be771cdaSJack F Vogel   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24*be771cdaSJack F Vogel   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25*be771cdaSJack F Vogel   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26*be771cdaSJack F Vogel   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27*be771cdaSJack F Vogel   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28*be771cdaSJack F Vogel   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29*be771cdaSJack F Vogel   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30*be771cdaSJack F Vogel   POSSIBILITY OF SUCH DAMAGE.
31*be771cdaSJack F Vogel 
32*be771cdaSJack F Vogel ******************************************************************************/
33*be771cdaSJack F Vogel /*$FreeBSD$*/
34*be771cdaSJack F Vogel 
35*be771cdaSJack F Vogel #ifndef _I40E_DEVIDS_H_
36*be771cdaSJack F Vogel #define _I40E_DEVIDS_H_
37*be771cdaSJack F Vogel 
38*be771cdaSJack F Vogel /* Vendor ID */
39*be771cdaSJack F Vogel #define I40E_INTEL_VENDOR_ID		0x8086
40*be771cdaSJack F Vogel 
41*be771cdaSJack F Vogel /* Device IDs */
42*be771cdaSJack F Vogel #define I40E_DEV_ID_SFP_XL710		0x1572
43*be771cdaSJack F Vogel #define I40E_DEV_ID_QEMU		0x1574
44*be771cdaSJack F Vogel #define I40E_DEV_ID_KX_A		0x157F
45*be771cdaSJack F Vogel #define I40E_DEV_ID_KX_B		0x1580
46*be771cdaSJack F Vogel #define I40E_DEV_ID_KX_C		0x1581
47*be771cdaSJack F Vogel #define I40E_DEV_ID_QSFP_A		0x1583
48*be771cdaSJack F Vogel #define I40E_DEV_ID_QSFP_B		0x1584
49*be771cdaSJack F Vogel #define I40E_DEV_ID_QSFP_C		0x1585
50*be771cdaSJack F Vogel #define I40E_DEV_ID_10G_BASE_T		0x1586
51*be771cdaSJack F Vogel #define I40E_DEV_ID_20G_KR2		0x1587
52*be771cdaSJack F Vogel #define I40E_DEV_ID_20G_KR2_A		0x1588
53*be771cdaSJack F Vogel #define I40E_DEV_ID_10G_BASE_T4		0x1589
54*be771cdaSJack F Vogel #define I40E_DEV_ID_VF			0x154C
55*be771cdaSJack F Vogel #define I40E_DEV_ID_VF_HV		0x1571
56*be771cdaSJack F Vogel #ifdef X722_SUPPORT
57*be771cdaSJack F Vogel #define I40E_DEV_ID_SFP_X722		0x37D0
58*be771cdaSJack F Vogel #define I40E_DEV_ID_1G_BASE_T_X722	0x37D1
59*be771cdaSJack F Vogel #define I40E_DEV_ID_10G_BASE_T_X722	0x37D2
60*be771cdaSJack F Vogel #define I40E_DEV_ID_X722_VF		0x37CD
61*be771cdaSJack F Vogel #define I40E_DEV_ID_X722_VF_HV		0x37D9
62*be771cdaSJack F Vogel #endif /* X722_SUPPORT */
63*be771cdaSJack F Vogel 
64*be771cdaSJack F Vogel #define i40e_is_40G_device(d)		((d) == I40E_DEV_ID_QSFP_A  || \
65*be771cdaSJack F Vogel 					 (d) == I40E_DEV_ID_QSFP_B  || \
66*be771cdaSJack F Vogel 					 (d) == I40E_DEV_ID_QSFP_C)
67*be771cdaSJack F Vogel 
68*be771cdaSJack F Vogel #endif /* _I40E_DEVIDS_H_ */
69