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