Jeff Kirsher | ae06c70 | 2018-03-22 10:08:48 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Jeff Kirsher | 51dce24 | 2018-04-26 08:08:09 -0700 | [diff] [blame] | 2 | /* Copyright(c) 2013 - 2018 Intel Corporation. */ |
Shannon Nelson | d72c95e | 2015-08-31 19:54:50 -0400 | [diff] [blame] | 3 | |
| 4 | #ifndef _I40E_DEVIDS_H_ |
| 5 | #define _I40E_DEVIDS_H_ |
| 6 | |
| 7 | /* Device IDs */ |
Aleksandr Loktionov | e576e76 | 2019-03-29 15:08:31 -0700 | [diff] [blame] | 8 | #define I40E_DEV_ID_X710_N3000 0x0CF8 |
| 9 | #define I40E_DEV_ID_XXV710_N3000 0x0D58 |
Shannon Nelson | d72c95e | 2015-08-31 19:54:50 -0400 | [diff] [blame] | 10 | #define I40E_DEV_ID_SFP_XL710 0x1572 |
| 11 | #define I40E_DEV_ID_QEMU 0x1574 |
Shannon Nelson | d72c95e | 2015-08-31 19:54:50 -0400 | [diff] [blame] | 12 | #define I40E_DEV_ID_KX_B 0x1580 |
| 13 | #define I40E_DEV_ID_KX_C 0x1581 |
| 14 | #define I40E_DEV_ID_QSFP_A 0x1583 |
| 15 | #define I40E_DEV_ID_QSFP_B 0x1584 |
| 16 | #define I40E_DEV_ID_QSFP_C 0x1585 |
| 17 | #define I40E_DEV_ID_10G_BASE_T 0x1586 |
| 18 | #define I40E_DEV_ID_20G_KR2 0x1587 |
| 19 | #define I40E_DEV_ID_20G_KR2_A 0x1588 |
| 20 | #define I40E_DEV_ID_10G_BASE_T4 0x1589 |
Carolyn Wyborny | 3123237 | 2016-11-21 13:03:48 -0800 | [diff] [blame] | 21 | #define I40E_DEV_ID_25G_B 0x158A |
| 22 | #define I40E_DEV_ID_25G_SFP28 0x158B |
Aleksandr Loktionov | 2e45d3f | 2019-03-29 15:08:38 -0700 | [diff] [blame] | 23 | #define I40E_DEV_ID_10G_BASE_T_BC 0x15FF |
| 24 | #define I40E_DEV_ID_10G_B 0x104F |
| 25 | #define I40E_DEV_ID_10G_SFP 0x104E |
Damian Milosek | d80a476 | 2019-09-20 02:17:23 -0700 | [diff] [blame] | 26 | #define I40E_IS_X710TL_DEVICE(d) \ |
| 27 | ((d) == I40E_DEV_ID_10G_BASE_T_BC) |
Anjali Singhai Jain | 35dae51 | 2015-12-22 14:25:03 -0800 | [diff] [blame] | 28 | #define I40E_DEV_ID_KX_X722 0x37CE |
| 29 | #define I40E_DEV_ID_QSFP_X722 0x37CF |
Shannon Nelson | d72c95e | 2015-08-31 19:54:50 -0400 | [diff] [blame] | 30 | #define I40E_DEV_ID_SFP_X722 0x37D0 |
| 31 | #define I40E_DEV_ID_1G_BASE_T_X722 0x37D1 |
| 32 | #define I40E_DEV_ID_10G_BASE_T_X722 0x37D2 |
Catherine Sullivan | d6bf58c | 2016-03-18 12:18:08 -0700 | [diff] [blame] | 33 | #define I40E_DEV_ID_SFP_I_X722 0x37D3 |
Shannon Nelson | d72c95e | 2015-08-31 19:54:50 -0400 | [diff] [blame] | 34 | |
| 35 | #define i40e_is_40G_device(d) ((d) == I40E_DEV_ID_QSFP_A || \ |
| 36 | (d) == I40E_DEV_ID_QSFP_B || \ |
| 37 | (d) == I40E_DEV_ID_QSFP_C) |
| 38 | |
| 39 | #endif /* _I40E_DEVIDS_H_ */ |