1be771cdaSJack F Vogel /****************************************************************************** 2be771cdaSJack F Vogel 3f4cc2d17SEric Joyner Copyright (c) 2013-2018, 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 34be771cdaSJack F Vogel #ifndef _I40E_DEVIDS_H_ 35be771cdaSJack F Vogel #define _I40E_DEVIDS_H_ 36be771cdaSJack F Vogel 37be771cdaSJack F Vogel /* Vendor ID */ 38be771cdaSJack F Vogel #define I40E_INTEL_VENDOR_ID 0x8086 39be771cdaSJack F Vogel 40be771cdaSJack F Vogel /* Device IDs */ 41b4a7ce06SEric Joyner #define I40E_DEV_ID_X710_N3000 0x0CF8 42b4a7ce06SEric Joyner #define I40E_DEV_ID_XXV710_N3000 0x0D58 43be771cdaSJack F Vogel #define I40E_DEV_ID_SFP_XL710 0x1572 44be771cdaSJack F Vogel #define I40E_DEV_ID_QEMU 0x1574 45be771cdaSJack F Vogel #define I40E_DEV_ID_KX_B 0x1580 46be771cdaSJack F Vogel #define I40E_DEV_ID_KX_C 0x1581 47be771cdaSJack F Vogel #define I40E_DEV_ID_QSFP_A 0x1583 48be771cdaSJack F Vogel #define I40E_DEV_ID_QSFP_B 0x1584 49be771cdaSJack F Vogel #define I40E_DEV_ID_QSFP_C 0x1585 50be771cdaSJack F Vogel #define I40E_DEV_ID_10G_BASE_T 0x1586 51be771cdaSJack F Vogel #define I40E_DEV_ID_20G_KR2 0x1587 52be771cdaSJack F Vogel #define I40E_DEV_ID_20G_KR2_A 0x1588 53be771cdaSJack F Vogel #define I40E_DEV_ID_10G_BASE_T4 0x1589 544294f337SSean Bruno #define I40E_DEV_ID_25G_B 0x158A 554294f337SSean Bruno #define I40E_DEV_ID_25G_SFP28 0x158B 562984a8ddSEric Joyner #define I40E_DEV_ID_10G_BASE_T_BC 0x15FF 572984a8ddSEric Joyner #define I40E_DEV_ID_10G_B 0x104F 582984a8ddSEric Joyner #define I40E_DEV_ID_10G_SFP 0x104E 592984a8ddSEric Joyner #define I40E_DEV_ID_5G_BASE_T_BC 0x101F 60*b7b40e4aSKrzysztof Galazka #define I40E_DEV_ID_1G_BASE_T_BC 0x0DD2 612984a8ddSEric Joyner #define I40E_IS_X710TL_DEVICE(d) \ 622984a8ddSEric Joyner (((d) == I40E_DEV_ID_10G_BASE_T_BC) || \ 63*b7b40e4aSKrzysztof Galazka ((d) == I40E_DEV_ID_5G_BASE_T_BC) || \ 64*b7b40e4aSKrzysztof Galazka ((d) == I40E_DEV_ID_1G_BASE_T_BC)) 65be771cdaSJack F Vogel #define I40E_DEV_ID_VF 0x154C 66be771cdaSJack F Vogel #define I40E_DEV_ID_VF_HV 0x1571 67ceebc2f3SEric Joyner #define I40E_DEV_ID_ADAPTIVE_VF 0x1889 684294f337SSean Bruno #define I40E_DEV_ID_KX_X722 0x37CE 694294f337SSean Bruno #define I40E_DEV_ID_QSFP_X722 0x37CF 704294f337SSean Bruno #define I40E_DEV_ID_SFP_X722 0x37D0 714294f337SSean Bruno #define I40E_DEV_ID_1G_BASE_T_X722 0x37D1 724294f337SSean Bruno #define I40E_DEV_ID_10G_BASE_T_X722 0x37D2 734294f337SSean Bruno #define I40E_DEV_ID_SFP_I_X722 0x37D3 744294f337SSean Bruno #define I40E_DEV_ID_X722_VF 0x37CD 75be771cdaSJack F Vogel 76be771cdaSJack F Vogel #define i40e_is_40G_device(d) ((d) == I40E_DEV_ID_QSFP_A || \ 77be771cdaSJack F Vogel (d) == I40E_DEV_ID_QSFP_B || \ 78be771cdaSJack F Vogel (d) == I40E_DEV_ID_QSFP_C) 79be771cdaSJack F Vogel 80ceebc2f3SEric Joyner #define i40e_is_25G_device(d) ((d) == I40E_DEV_ID_25G_B || \ 81ceebc2f3SEric Joyner (d) == I40E_DEV_ID_25G_SFP28) 82ceebc2f3SEric Joyner 83be771cdaSJack F Vogel #endif /* _I40E_DEVIDS_H_ */ 84