xref: /freebsd/sys/dev/ice/ice_drv_info.h (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /*  Copyright (c) 2021, Intel Corporation
3  *  All rights reserved.
4  *
5  *  Redistribution and use in source and binary forms, with or without
6  *  modification, are permitted provided that the following conditions are met:
7  *
8  *   1. Redistributions of source code must retain the above copyright notice,
9  *      this list of conditions and the following disclaimer.
10  *
11  *   2. Redistributions in binary form must reproduce the above copyright
12  *      notice, this list of conditions and the following disclaimer in the
13  *      documentation and/or other materials provided with the distribution.
14  *
15  *   3. Neither the name of the Intel Corporation nor the names of its
16  *      contributors may be used to endorse or promote products derived from
17  *      this software without specific prior written permission.
18  *
19  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20  *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22  *  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23  *  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24  *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25  *  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26  *  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27  *  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28  *  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29  *  POSSIBILITY OF SUCH DAMAGE.
30  */
31 /*$FreeBSD$*/
32 
33 /**
34  * @file ice_drv_info.h
35  * @brief device IDs and driver version
36  *
37  * Contains the device IDs tables and the driver version string.
38  *
39  * This file contains static or constant definitions intended to be included
40  * exactly once in the main driver interface file. It implicitly depends on
41  * the main driver header file.
42  *
43  * These definitions could be placed directly in the interface file, but are
44  * kept separate for organizational purposes.
45  */
46 
47 /**
48  * @var ice_driver_version
49  * @brief driver version string
50  *
51  * Driver version information, used for display as part of an informational
52  * sysctl, and as part of the driver information sent to the firmware at load.
53  *
54  * @var ice_major_version
55  * @brief driver major version number
56  *
57  * @var ice_minor_version
58  * @brief driver minor version number
59  *
60  * @var ice_patch_version
61  * @brief driver patch version number
62  *
63  * @var ice_rc_version
64  * @brief driver release candidate version number
65  */
66 const char ice_driver_version[] = "1.34.2-k";
67 const uint8_t ice_major_version = 1;
68 const uint8_t ice_minor_version = 34;
69 const uint8_t ice_patch_version = 2;
70 const uint8_t ice_rc_version = 0;
71 
72 #define PVIDV(vendor, devid, name) \
73 	PVID(vendor, devid, name " - 1.34.2-k")
74 #define PVIDV_OEM(vendor, devid, svid, sdevid, revid, name) \
75 	PVID_OEM(vendor, devid, svid, sdevid, revid, name " - 1.34.2-k")
76 
77 /**
78  * @var ice_vendor_info_array
79  * @brief array of PCI devices supported by this driver
80  *
81  * Array of PCI devices which are supported by this driver. Used to determine
82  * whether a given device should be loaded by this driver. This information is
83  * also exported as part of the module information for other tools to analyze.
84  *
85  * @remark Each type of device ID needs to be listed from most-specific entry
86  * to most-generic entry; e.g. PVIDV_OEM()s for a device ID must come before
87  * the PVIDV() for it.
88  */
89 static pci_vendor_info_t ice_vendor_info_array[] = {
90 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_BACKPLANE,
91 		"Intel(R) Ethernet Controller E810-C for backplane"),
92 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_QSFP,
93 		ICE_INTEL_VENDOR_ID, 0x0001, 0,
94 		"Intel(R) Ethernet Network Adapter E810-C-Q1"),
95 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_QSFP,
96 		ICE_INTEL_VENDOR_ID, 0x0002, 0,
97 		"Intel(R) Ethernet Network Adapter E810-C-Q2"),
98 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_QSFP,
99 		ICE_INTEL_VENDOR_ID, 0x0003, 0,
100 		"Intel(R) Ethernet Network Adapter E810-C-Q1"),
101 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_QSFP,
102 		ICE_INTEL_VENDOR_ID, 0x0004, 0,
103 		"Intel(R) Ethernet Network Adapter E810-C-Q2"),
104 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_QSFP,
105 		ICE_INTEL_VENDOR_ID, 0x0005, 0,
106 		"Intel(R) Ethernet Network Adapter E810-C-Q1 for OCP3.0"),
107 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_QSFP,
108 		ICE_INTEL_VENDOR_ID, 0x0006, 0,
109 		"Intel(R) Ethernet Network Adapter E810-C-Q2 for OCP3.0"),
110 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_QSFP,
111 		ICE_INTEL_VENDOR_ID, 0x0007, 0,
112 		"Intel(R) Ethernet Network Adapter E810-C-Q1 for OCP3.0"),
113 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_QSFP,
114 		ICE_INTEL_VENDOR_ID, 0x0008, 0,
115 		"Intel(R) Ethernet Network Adapter E810-C-Q2 for OCP3.0"),
116 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_QSFP,
117 		ICE_INTEL_VENDOR_ID, 0x000D, 0,
118 		"Intel(R) Ethernet Network Adapter E810-L-Q2 for OCP3.0"),
119 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_QSFP,
120 		ICE_INTEL_VENDOR_ID, 0x000E, 0,
121 		"Intel(R) Ethernet Network Adapter E810-2C-Q2"),
122 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_QSFP,
123 		"Intel(R) Ethernet Controller E810-C for QSFP"),
124 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_SFP,
125 		ICE_INTEL_VENDOR_ID, 0x0005, 0,
126 		"Intel(R) Ethernet Network Adapter E810-XXV-4"),
127 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_SFP,
128 		ICE_INTEL_VENDOR_ID, 0x0006, 0,
129 		"Intel(R) Ethernet Network Adapter E810-XXV-4"),
130 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_SFP,
131 		ICE_INTEL_VENDOR_ID, 0x0007, 0,
132 		"Intel(R) Ethernet Network Adapter E810-XXV-4"),
133 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_SFP,
134 		ICE_INTEL_VENDOR_ID, 0x0008, 0,
135 		"Intel(R) Ethernet Network Adapter E810-XXV-2"),
136 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_SFP,
137 		ICE_INTEL_VENDOR_ID, 0x000C, 0,
138 		"Intel(R) Ethernet Network Adapter E810-XXV-4 for OCP 3.0"),
139 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810C_SFP,
140 		"Intel(R) Ethernet Controller E810-C for SFP"),
141 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E822C_BACKPLANE,
142 	      "Intel(R) Ethernet Connection E822-C for backplane"),
143 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E822C_QSFP,
144 	      "Intel(R) Ethernet Connection E822-C for QSFP"),
145 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E822C_SFP,
146 	      "Intel(R) Ethernet Connection E822-C for SFP"),
147 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E822C_10G_BASE_T,
148 	      "Intel(R) Ethernet Connection E822-C/X557-AT 10GBASE-T"),
149 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E822C_SGMII,
150 	      "Intel(R) Ethernet Connection E822-C 1GbE"),
151 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E822L_BACKPLANE,
152 	      "Intel(R) Ethernet Connection E822-L for backplane"),
153 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E822L_SFP,
154 	      "Intel(R) Ethernet Connection E822-L for SFP"),
155 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E822L_10G_BASE_T,
156 	      "Intel(R) Ethernet Connection E822-L/X557-AT 10GBASE-T"),
157 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E822L_SGMII,
158 	      "Intel(R) Ethernet Connection E822-L 1GbE"),
159 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E823L_BACKPLANE,
160 	      "Intel(R) Ethernet Connection E823-L for backplane"),
161 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E823L_SFP,
162 	      "Intel(R) Ethernet Connection E823-L for SFP"),
163 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E823L_QSFP,
164 	      "Intel(R) Ethernet Connection E823-L for QSFP"),
165 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E823L_10G_BASE_T,
166 	      "Intel(R) Ethernet Connection E823-L/X557-AT 10GBASE-T"),
167 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E823L_1GBE,
168 	      "Intel(R) Ethernet Connection E823-L 1GbE"),
169 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E823C_BACKPLANE,
170 	      "Intel(R) Ethernet Connection E823-C for backplane"),
171 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E823C_QSFP,
172 	      "Intel(R) Ethernet Connection E823-C for QSFP"),
173 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E823C_SFP,
174 	      "Intel(R) Ethernet Connection E823-C for SFP"),
175 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E823C_10G_BASE_T,
176 	      "Intel(R) Ethernet Connection E823-C/X557-AT 10GBASE-T"),
177 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E823C_SGMII,
178 	      "Intel(R) Ethernet Connection E823-C 1GbE"),
179 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810_XXV_BACKPLANE,
180 	      "Intel(R) Ethernet Controller E810-XXV for backplane"),
181 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810_XXV_QSFP,
182 		"Intel(R) Ethernet Controller E810-XXV for QSFP"),
183 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810_XXV_SFP,
184 		ICE_INTEL_VENDOR_ID, 0x0003, 0,
185 		"Intel(R) Ethernet Network Adapter E810-XXV-2"),
186 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810_XXV_SFP,
187 		ICE_INTEL_VENDOR_ID, 0x0004, 0,
188 		"Intel(R) Ethernet Network Adapter E810-XXV-2"),
189 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810_XXV_SFP,
190 		ICE_INTEL_VENDOR_ID, 0x0005, 0,
191 		"Intel(R) Ethernet Network Adapter E810-XXV-2 for OCP 3.0"),
192 	PVIDV_OEM(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810_XXV_SFP,
193 		ICE_INTEL_VENDOR_ID, 0x0006, 0,
194 		"Intel(R) Ethernet Network Adapter E810-XXV-2 for OCP 3.0"),
195 	PVIDV(ICE_INTEL_VENDOR_ID, ICE_DEV_ID_E810_XXV_SFP,
196 		"Intel(R) Ethernet Controller E810-XXV for SFP"),
197 	PVID_END
198 };
199 
200