blob: 4a34b7bed1e06c8ee8754d7ec8f1cc38cf7ad479 [file] [log] [blame]
Eric Anholtcbdd6272009-01-27 17:16:11 -08001/*
2 *
3 * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
4 * All Rights Reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the
8 * "Software"), to deal in the Software without restriction, including
9 * without limitation the rights to use, copy, modify, merge, publish,
10 * distribute, sub license, and/or sell copies of the Software, and to
11 * permit persons to whom the Software is furnished to do so, subject to
12 * the following conditions:
13 *
14 * The above copyright notice and this permission notice (including the
15 * next paragraph) shall be included in all copies or substantial portions
16 * of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
21 * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
22 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 *
26 */
27
28#ifndef _INTEL_CHIPSET_H
29#define _INTEL_CHIPSET_H
30
Ben Widawsky36d18212012-12-03 17:43:29 -080031#define PCI_CHIP_I810 0x7121
32#define PCI_CHIP_I810_DC100 0x7123
33#define PCI_CHIP_I810_E 0x7125
34#define PCI_CHIP_I815 0x1132
35
36#define PCI_CHIP_I830_M 0x3577
37#define PCI_CHIP_845_G 0x2562
38#define PCI_CHIP_I855_GM 0x3582
39#define PCI_CHIP_I865_G 0x2572
40
41#define PCI_CHIP_I915_G 0x2582
42#define PCI_CHIP_E7221_G 0x258A
43#define PCI_CHIP_I915_GM 0x2592
44#define PCI_CHIP_I945_G 0x2772
45#define PCI_CHIP_I945_GM 0x27A2
46#define PCI_CHIP_I945_GME 0x27AE
47
48#define PCI_CHIP_Q35_G 0x29B2
49#define PCI_CHIP_G33_G 0x29C2
50#define PCI_CHIP_Q33_G 0x29D2
51
52#define PCI_CHIP_IGD_GM 0xA011
53#define PCI_CHIP_IGD_G 0xA001
54
Ville Syrjälä6e55fd72013-02-18 20:22:21 +020055#define IS_IGDGM(devid) ((devid) == PCI_CHIP_IGD_GM)
56#define IS_IGDG(devid) ((devid) == PCI_CHIP_IGD_G)
57#define IS_IGD(devid) (IS_IGDG(devid) || IS_IGDGM(devid))
Ben Widawsky36d18212012-12-03 17:43:29 -080058
59#define PCI_CHIP_I965_G 0x29A2
60#define PCI_CHIP_I965_Q 0x2992
61#define PCI_CHIP_I965_G_1 0x2982
62#define PCI_CHIP_I946_GZ 0x2972
Ville Syrjälä6e55fd72013-02-18 20:22:21 +020063#define PCI_CHIP_I965_GM 0x2A02
64#define PCI_CHIP_I965_GME 0x2A12
Ben Widawsky36d18212012-12-03 17:43:29 -080065
Ville Syrjälä6e55fd72013-02-18 20:22:21 +020066#define PCI_CHIP_GM45_GM 0x2A42
Ben Widawsky36d18212012-12-03 17:43:29 -080067
Ville Syrjälä6e55fd72013-02-18 20:22:21 +020068#define PCI_CHIP_IGD_E_G 0x2E02
69#define PCI_CHIP_Q45_G 0x2E12
70#define PCI_CHIP_G45_G 0x2E22
71#define PCI_CHIP_G41_G 0x2E32
Ben Widawsky36d18212012-12-03 17:43:29 -080072
Ville Syrjälä6e55fd72013-02-18 20:22:21 +020073#define PCI_CHIP_ILD_G 0x0042
74#define PCI_CHIP_ILM_G 0x0046
Eric Anholt1d318e22011-12-20 13:03:37 -080075
76#define PCI_CHIP_SANDYBRIDGE_GT1 0x0102 /* desktop */
77#define PCI_CHIP_SANDYBRIDGE_GT2 0x0112
78#define PCI_CHIP_SANDYBRIDGE_GT2_PLUS 0x0122
79#define PCI_CHIP_SANDYBRIDGE_M_GT1 0x0106 /* mobile */
80#define PCI_CHIP_SANDYBRIDGE_M_GT2 0x0116
81#define PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS 0x0126
82#define PCI_CHIP_SANDYBRIDGE_S 0x010A /* server */
83
84#define PCI_CHIP_IVYBRIDGE_GT1 0x0152 /* desktop */
85#define PCI_CHIP_IVYBRIDGE_GT2 0x0162
86#define PCI_CHIP_IVYBRIDGE_M_GT1 0x0156 /* mobile */
87#define PCI_CHIP_IVYBRIDGE_M_GT2 0x0166
88#define PCI_CHIP_IVYBRIDGE_S 0x015a /* server */
Eugeni Dodonove057a562012-03-29 21:03:29 -030089#define PCI_CHIP_IVYBRIDGE_S_GT2 0x016a /* server */
Eric Anholt1d318e22011-12-20 13:03:37 -080090
Ville Syrjälä6e55fd72013-02-18 20:22:21 +020091#define PCI_CHIP_HASWELL_GT1 0x0402 /* Desktop */
92#define PCI_CHIP_HASWELL_GT2 0x0412
Rodrigo Vivi150c3552013-05-13 17:48:39 -030093#define PCI_CHIP_HASWELL_GT3 0x0422
Ville Syrjälä6e55fd72013-02-18 20:22:21 +020094#define PCI_CHIP_HASWELL_M_GT1 0x0406 /* Mobile */
95#define PCI_CHIP_HASWELL_M_GT2 0x0416
Rodrigo Vivi150c3552013-05-13 17:48:39 -030096#define PCI_CHIP_HASWELL_M_GT3 0x0426
Ville Syrjälä6e55fd72013-02-18 20:22:21 +020097#define PCI_CHIP_HASWELL_S_GT1 0x040A /* Server */
98#define PCI_CHIP_HASWELL_S_GT2 0x041A
Rodrigo Vivi150c3552013-05-13 17:48:39 -030099#define PCI_CHIP_HASWELL_S_GT3 0x042A
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300100#define PCI_CHIP_HASWELL_B_GT1 0x040B /* Reserved */
101#define PCI_CHIP_HASWELL_B_GT2 0x041B
102#define PCI_CHIP_HASWELL_B_GT3 0x042B
103#define PCI_CHIP_HASWELL_E_GT1 0x040E /* Reserved */
104#define PCI_CHIP_HASWELL_E_GT2 0x041E
105#define PCI_CHIP_HASWELL_E_GT3 0x042E
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200106#define PCI_CHIP_HASWELL_SDV_GT1 0x0C02 /* Desktop */
107#define PCI_CHIP_HASWELL_SDV_GT2 0x0C12
Rodrigo Vivi150c3552013-05-13 17:48:39 -0300108#define PCI_CHIP_HASWELL_SDV_GT3 0x0C22
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200109#define PCI_CHIP_HASWELL_SDV_M_GT1 0x0C06 /* Mobile */
110#define PCI_CHIP_HASWELL_SDV_M_GT2 0x0C16
Rodrigo Vivi150c3552013-05-13 17:48:39 -0300111#define PCI_CHIP_HASWELL_SDV_M_GT3 0x0C26
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200112#define PCI_CHIP_HASWELL_SDV_S_GT1 0x0C0A /* Server */
113#define PCI_CHIP_HASWELL_SDV_S_GT2 0x0C1A
Rodrigo Vivi150c3552013-05-13 17:48:39 -0300114#define PCI_CHIP_HASWELL_SDV_S_GT3 0x0C2A
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300115#define PCI_CHIP_HASWELL_SDV_B_GT1 0x0C0B /* Reserved */
116#define PCI_CHIP_HASWELL_SDV_B_GT2 0x0C1B
117#define PCI_CHIP_HASWELL_SDV_B_GT3 0x0C2B
118#define PCI_CHIP_HASWELL_SDV_E_GT1 0x0C0E /* Reserved */
119#define PCI_CHIP_HASWELL_SDV_E_GT2 0x0C1E
120#define PCI_CHIP_HASWELL_SDV_E_GT3 0x0C2E
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200121#define PCI_CHIP_HASWELL_ULT_GT1 0x0A02 /* Desktop */
122#define PCI_CHIP_HASWELL_ULT_GT2 0x0A12
Rodrigo Vivi150c3552013-05-13 17:48:39 -0300123#define PCI_CHIP_HASWELL_ULT_GT3 0x0A22
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200124#define PCI_CHIP_HASWELL_ULT_M_GT1 0x0A06 /* Mobile */
125#define PCI_CHIP_HASWELL_ULT_M_GT2 0x0A16
Rodrigo Vivi150c3552013-05-13 17:48:39 -0300126#define PCI_CHIP_HASWELL_ULT_M_GT3 0x0A26
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200127#define PCI_CHIP_HASWELL_ULT_S_GT1 0x0A0A /* Server */
128#define PCI_CHIP_HASWELL_ULT_S_GT2 0x0A1A
Rodrigo Vivi150c3552013-05-13 17:48:39 -0300129#define PCI_CHIP_HASWELL_ULT_S_GT3 0x0A2A
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300130#define PCI_CHIP_HASWELL_ULT_B_GT1 0x0A0B /* Reserved */
131#define PCI_CHIP_HASWELL_ULT_B_GT2 0x0A1B
132#define PCI_CHIP_HASWELL_ULT_B_GT3 0x0A2B
133#define PCI_CHIP_HASWELL_ULT_E_GT1 0x0A0E /* Reserved */
134#define PCI_CHIP_HASWELL_ULT_E_GT2 0x0A1E
135#define PCI_CHIP_HASWELL_ULT_E_GT3 0x0A2E
Kenneth Graunkeca678bc2013-03-01 15:37:01 -0800136#define PCI_CHIP_HASWELL_CRW_GT1 0x0D02 /* Desktop */
137#define PCI_CHIP_HASWELL_CRW_GT2 0x0D12
Rodrigo Vivi150c3552013-05-13 17:48:39 -0300138#define PCI_CHIP_HASWELL_CRW_GT3 0x0D22
Kenneth Graunkeca678bc2013-03-01 15:37:01 -0800139#define PCI_CHIP_HASWELL_CRW_M_GT1 0x0D06 /* Mobile */
140#define PCI_CHIP_HASWELL_CRW_M_GT2 0x0D16
Rodrigo Vivi150c3552013-05-13 17:48:39 -0300141#define PCI_CHIP_HASWELL_CRW_M_GT3 0x0D26
Kenneth Graunkeca678bc2013-03-01 15:37:01 -0800142#define PCI_CHIP_HASWELL_CRW_S_GT1 0x0D0A /* Server */
143#define PCI_CHIP_HASWELL_CRW_S_GT2 0x0D1A
Rodrigo Vivi150c3552013-05-13 17:48:39 -0300144#define PCI_CHIP_HASWELL_CRW_S_GT3 0x0D2A
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300145#define PCI_CHIP_HASWELL_CRW_B_GT1 0x0D0B /* Reserved */
146#define PCI_CHIP_HASWELL_CRW_B_GT2 0x0D1B
147#define PCI_CHIP_HASWELL_CRW_B_GT3 0x0D2B
148#define PCI_CHIP_HASWELL_CRW_E_GT1 0x0D0E /* Reserved */
149#define PCI_CHIP_HASWELL_CRW_E_GT2 0x0D1E
150#define PCI_CHIP_HASWELL_CRW_E_GT3 0x0D2E
Ben Widawsky6ea20a02012-12-04 13:56:14 -0800151#define BDW_SPARE 0x2
152#define BDW_ULT 0x6
153#define BDW_SERVER 0xa
154#define BDW_IRIS 0xb
155#define BDW_WORKSTATION 0xd
156#define BDW_ULX 0xe
Kenneth Graunke61721332012-03-19 13:55:19 -0700157
Ben Widawsky36d18212012-12-03 17:43:29 -0800158#define PCI_CHIP_VALLEYVIEW_PO 0x0f30 /* VLV PO board */
Jesse Barnesef866c72013-02-02 11:10:24 +0100159#define PCI_CHIP_VALLEYVIEW_1 0x0f31
160#define PCI_CHIP_VALLEYVIEW_2 0x0f32
161#define PCI_CHIP_VALLEYVIEW_3 0x0f33
Jesse Barnes9d9cb852012-03-18 16:51:18 -0500162
Ville Syrjäläbb1f4262013-02-13 23:05:45 +0200163#define PCI_CHIP_CHERRYVIEW_0 0x22b0
164#define PCI_CHIP_CHERRYVIEW_1 0x22b1
165#define PCI_CHIP_CHERRYVIEW_2 0x22b2
166#define PCI_CHIP_CHERRYVIEW_3 0x22b3
167
Damien Lespiauc19a9862014-01-20 19:40:39 +0000168#define PCI_CHIP_SKYLAKE_DT_GT1 0x1902
Ben Widawsky4309bfd2015-10-22 12:06:59 -0700169#define PCI_CHIP_SKYLAKE_ULT_GT1 0x1906
170#define PCI_CHIP_SKYLAKE_SRV_GT1 0x190A /* Reserved */
Michał Winiarskie3623d32016-02-17 11:40:19 +0100171#define PCI_CHIP_SKYLAKE_H_GT1 0x190B
Ben Widawsky4309bfd2015-10-22 12:06:59 -0700172#define PCI_CHIP_SKYLAKE_ULX_GT1 0x190E /* Reserved */
173#define PCI_CHIP_SKYLAKE_DT_GT2 0x1912
174#define PCI_CHIP_SKYLAKE_FUSED0_GT2 0x1913 /* Reserved */
175#define PCI_CHIP_SKYLAKE_FUSED1_GT2 0x1915 /* Reserved */
176#define PCI_CHIP_SKYLAKE_ULT_GT2 0x1916
177#define PCI_CHIP_SKYLAKE_FUSED2_GT2 0x1917 /* Reserved */
178#define PCI_CHIP_SKYLAKE_SRV_GT2 0x191A /* Reserved */
Damien Lespiauc19a9862014-01-20 19:40:39 +0000179#define PCI_CHIP_SKYLAKE_HALO_GT2 0x191B
Damien Lespiauc19a9862014-01-20 19:40:39 +0000180#define PCI_CHIP_SKYLAKE_WKS_GT2 0x191D
Ben Widawsky4309bfd2015-10-22 12:06:59 -0700181#define PCI_CHIP_SKYLAKE_ULX_GT2 0x191E
182#define PCI_CHIP_SKYLAKE_MOBILE_GT2 0x1921 /* Reserved */
Michał Winiarskie3623d32016-02-17 11:40:19 +0100183#define PCI_CHIP_SKYLAKE_ULT_GT3_0 0x1923
184#define PCI_CHIP_SKYLAKE_ULT_GT3_1 0x1926
185#define PCI_CHIP_SKYLAKE_ULT_GT3_2 0x1927
Ben Widawskycad0e032015-10-22 12:15:50 -0700186#define PCI_CHIP_SKYLAKE_SRV_GT4 0x192A
Michał Winiarskie3623d32016-02-17 11:40:19 +0100187#define PCI_CHIP_SKYLAKE_HALO_GT3 0x192B /* Reserved */
188#define PCI_CHIP_SKYLAKE_SRV_GT3 0x192D
Ben Widawskycad0e032015-10-22 12:15:50 -0700189#define PCI_CHIP_SKYLAKE_DT_GT4 0x1932
190#define PCI_CHIP_SKYLAKE_SRV_GT4X 0x193A
191#define PCI_CHIP_SKYLAKE_H_GT4 0x193B
192#define PCI_CHIP_SKYLAKE_WKS_GT4 0x193D
Damien Lespiauc19a9862014-01-20 19:40:39 +0000193
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700194#define PCI_CHIP_KABYLAKE_ULT_GT2 0x5916
195#define PCI_CHIP_KABYLAKE_ULT_GT1_5 0x5913
196#define PCI_CHIP_KABYLAKE_ULT_GT1 0x5906
Rodrigo Vivi22b6e332016-06-23 14:01:33 -0700197#define PCI_CHIP_KABYLAKE_ULT_GT3_0 0x5923
198#define PCI_CHIP_KABYLAKE_ULT_GT3_1 0x5926
199#define PCI_CHIP_KABYLAKE_ULT_GT3_2 0x5927
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700200#define PCI_CHIP_KABYLAKE_ULT_GT2F 0x5921
201#define PCI_CHIP_KABYLAKE_ULX_GT1_5 0x5915
202#define PCI_CHIP_KABYLAKE_ULX_GT1 0x590E
Matt Atwood50426f32018-04-24 12:42:39 -0700203#define PCI_CHIP_KABYLAKE_ULX_GT2_0 0x591E
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700204#define PCI_CHIP_KABYLAKE_DT_GT2 0x5912
Anuj Phogat7c711882017-09-20 12:11:03 -0700205#define PCI_CHIP_KABYLAKE_M_GT2 0x5917
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700206#define PCI_CHIP_KABYLAKE_DT_GT1 0x5902
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700207#define PCI_CHIP_KABYLAKE_HALO_GT2 0x591B
208#define PCI_CHIP_KABYLAKE_HALO_GT4 0x593B
Rodrigo Vivi22b6e332016-06-23 14:01:33 -0700209#define PCI_CHIP_KABYLAKE_HALO_GT1_0 0x5908
210#define PCI_CHIP_KABYLAKE_HALO_GT1_1 0x590B
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700211#define PCI_CHIP_KABYLAKE_SRV_GT2 0x591A
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700212#define PCI_CHIP_KABYLAKE_SRV_GT1 0x590A
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700213#define PCI_CHIP_KABYLAKE_WKS_GT2 0x591D
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700214
José Roberto de Souza7164abe2018-06-19 16:45:21 -0700215#define PCI_CHIP_AMBERLAKE_ULX_GT2_1 0x591C
216#define PCI_CHIP_AMBERLAKE_ULX_GT2_2 0x87C0
217
Damien Lespiaue9ea1f42015-05-15 19:34:12 +0100218#define PCI_CHIP_BROXTON_0 0x0A84
219#define PCI_CHIP_BROXTON_1 0x1A84
220#define PCI_CHIP_BROXTON_2 0x5A84
Rodrigo Viviea07de92016-03-01 17:07:04 -0800221#define PCI_CHIP_BROXTON_3 0x1A85
222#define PCI_CHIP_BROXTON_4 0x5A85
Damien Lespiaue9ea1f42015-05-15 19:34:12 +0100223
Ben Widawsky3e81f8b2016-11-10 10:28:02 -0800224#define PCI_CHIP_GLK 0x3184
225#define PCI_CHIP_GLK_2X6 0x3185
226
Anusha Srivatsa0733f372017-06-21 11:17:35 -0700227#define PCI_CHIP_COFFEELAKE_S_GT1_1 0x3E90
228#define PCI_CHIP_COFFEELAKE_S_GT1_2 0x3E93
Anuj Phogatd3cb5882018-01-10 15:51:02 -0800229#define PCI_CHIP_COFFEELAKE_S_GT1_3 0x3E99
Anusha Srivatsa0733f372017-06-21 11:17:35 -0700230#define PCI_CHIP_COFFEELAKE_S_GT2_1 0x3E91
231#define PCI_CHIP_COFFEELAKE_S_GT2_2 0x3E92
232#define PCI_CHIP_COFFEELAKE_S_GT2_3 0x3E96
Rodrigo Vivi6e300312018-08-08 22:38:41 -0700233#define PCI_CHIP_COFFEELAKE_S_GT2_4 0x3E98
234#define PCI_CHIP_COFFEELAKE_S_GT2_5 0x3E9A
Anusha Srivatsa2b48faf2017-06-21 11:17:36 -0700235#define PCI_CHIP_COFFEELAKE_H_GT2_1 0x3E9B
236#define PCI_CHIP_COFFEELAKE_H_GT2_2 0x3E94
José Roberto de Souza591c1d72018-06-19 16:45:20 -0700237#define PCI_CHIP_COFFEELAKE_U_GT2_1 0x3EA9
238#define PCI_CHIP_COFFEELAKE_U_GT3_1 0x3EA5
239#define PCI_CHIP_COFFEELAKE_U_GT3_2 0x3EA6
240#define PCI_CHIP_COFFEELAKE_U_GT3_3 0x3EA7
241#define PCI_CHIP_COFFEELAKE_U_GT3_4 0x3EA8
242
243#define PCI_CHIP_WHISKEYLAKE_U_GT1_1 0x3EA1
244#define PCI_CHIP_WHISKEYLAKE_U_GT2_1 0x3EA0
245#define PCI_CHIP_WHISKEYLAKE_U_GT3_1 0x3EA2
246#define PCI_CHIP_WHISKEYLAKE_U_GT3_2 0x3EA3
247#define PCI_CHIP_WHISKEYLAKE_U_GT3_3 0x3EA4
Anusha Srivatsa0733f372017-06-21 11:17:35 -0700248
Rodrigo Vivi7b123812018-02-07 22:46:43 -0800249#define PCI_CHIP_CANNONLAKE_0 0x5A51
250#define PCI_CHIP_CANNONLAKE_1 0x5A59
251#define PCI_CHIP_CANNONLAKE_2 0x5A41
252#define PCI_CHIP_CANNONLAKE_3 0x5A49
253#define PCI_CHIP_CANNONLAKE_4 0x5A52
254#define PCI_CHIP_CANNONLAKE_5 0x5A5A
255#define PCI_CHIP_CANNONLAKE_6 0x5A42
256#define PCI_CHIP_CANNONLAKE_7 0x5A4A
257#define PCI_CHIP_CANNONLAKE_8 0x5A50
258#define PCI_CHIP_CANNONLAKE_9 0x5A40
259#define PCI_CHIP_CANNONLAKE_10 0x5A54
260#define PCI_CHIP_CANNONLAKE_11 0x5A5C
261#define PCI_CHIP_CANNONLAKE_12 0x5A44
262#define PCI_CHIP_CANNONLAKE_13 0x5A4C
Rodrigo Vivi6b624bf2016-12-12 16:06:02 -0800263
Paulo Zanoni1ac3ecd2018-04-25 17:09:37 -0700264#define PCI_CHIP_ICELAKE_11_0 0x8A50
265#define PCI_CHIP_ICELAKE_11_1 0x8A51
266#define PCI_CHIP_ICELAKE_11_2 0x8A5C
267#define PCI_CHIP_ICELAKE_11_3 0x8A5D
268#define PCI_CHIP_ICELAKE_11_4 0x8A52
269#define PCI_CHIP_ICELAKE_11_5 0x8A5A
270#define PCI_CHIP_ICELAKE_11_6 0x8A5B
271#define PCI_CHIP_ICELAKE_11_7 0x8A71
272#define PCI_CHIP_ICELAKE_11_8 0x8A70
273
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200274#define IS_MOBILE(devid) ((devid) == PCI_CHIP_I855_GM || \
275 (devid) == PCI_CHIP_I915_GM || \
276 (devid) == PCI_CHIP_I945_GM || \
277 (devid) == PCI_CHIP_I945_GME || \
278 (devid) == PCI_CHIP_I965_GM || \
279 (devid) == PCI_CHIP_I965_GME || \
280 (devid) == PCI_CHIP_GM45_GM || IS_IGD(devid) || \
281 (devid) == PCI_CHIP_IVYBRIDGE_M_GT1 || \
282 (devid) == PCI_CHIP_IVYBRIDGE_M_GT2)
Eric Anholtcbdd6272009-01-27 17:16:11 -0800283
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200284#define IS_G45(devid) ((devid) == PCI_CHIP_IGD_E_G || \
285 (devid) == PCI_CHIP_Q45_G || \
286 (devid) == PCI_CHIP_G45_G || \
287 (devid) == PCI_CHIP_G41_G)
288#define IS_GM45(devid) ((devid) == PCI_CHIP_GM45_GM)
Ben Widawsky36d18212012-12-03 17:43:29 -0800289#define IS_G4X(devid) (IS_G45(devid) || IS_GM45(devid))
Eric Anholtf6dc9642009-10-22 16:37:56 -0700290
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200291#define IS_ILD(devid) ((devid) == PCI_CHIP_ILD_G)
292#define IS_ILM(devid) ((devid) == PCI_CHIP_ILM_G)
Eric Anholtf6dc9642009-10-22 16:37:56 -0700293
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200294#define IS_915(devid) ((devid) == PCI_CHIP_I915_G || \
295 (devid) == PCI_CHIP_E7221_G || \
296 (devid) == PCI_CHIP_I915_GM)
Eric Anholtf6dc9642009-10-22 16:37:56 -0700297
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200298#define IS_945GM(devid) ((devid) == PCI_CHIP_I945_GM || \
299 (devid) == PCI_CHIP_I945_GME)
Eric Anholtf6dc9642009-10-22 16:37:56 -0700300
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200301#define IS_945(devid) ((devid) == PCI_CHIP_I945_G || \
302 (devid) == PCI_CHIP_I945_GM || \
303 (devid) == PCI_CHIP_I945_GME || \
Ben Widawsky36d18212012-12-03 17:43:29 -0800304 IS_G33(devid))
Eric Anholtf6dc9642009-10-22 16:37:56 -0700305
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200306#define IS_G33(devid) ((devid) == PCI_CHIP_G33_G || \
307 (devid) == PCI_CHIP_Q33_G || \
308 (devid) == PCI_CHIP_Q35_G || IS_IGD(devid))
Eric Anholtf6dc9642009-10-22 16:37:56 -0700309
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200310#define IS_GEN2(devid) ((devid) == PCI_CHIP_I830_M || \
311 (devid) == PCI_CHIP_845_G || \
312 (devid) == PCI_CHIP_I855_GM || \
313 (devid) == PCI_CHIP_I865_G)
Eric Anholtcbdd6272009-01-27 17:16:11 -0800314
Ben Widawsky36d18212012-12-03 17:43:29 -0800315#define IS_GEN3(devid) (IS_945(devid) || IS_915(devid))
Eric Anholtcbdd6272009-01-27 17:16:11 -0800316
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200317#define IS_GEN4(devid) ((devid) == PCI_CHIP_I965_G || \
318 (devid) == PCI_CHIP_I965_Q || \
319 (devid) == PCI_CHIP_I965_G_1 || \
320 (devid) == PCI_CHIP_I965_GM || \
321 (devid) == PCI_CHIP_I965_GME || \
322 (devid) == PCI_CHIP_I946_GZ || \
Ben Widawsky36d18212012-12-03 17:43:29 -0800323 IS_G4X(devid))
Jesse Barnes9d9cb852012-03-18 16:51:18 -0500324
Ben Widawsky36d18212012-12-03 17:43:29 -0800325#define IS_GEN5(devid) (IS_ILD(devid) || IS_ILM(devid))
Eric Anholtf6dc9642009-10-22 16:37:56 -0700326
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200327#define IS_GEN6(devid) ((devid) == PCI_CHIP_SANDYBRIDGE_GT1 || \
328 (devid) == PCI_CHIP_SANDYBRIDGE_GT2 || \
329 (devid) == PCI_CHIP_SANDYBRIDGE_GT2_PLUS || \
330 (devid) == PCI_CHIP_SANDYBRIDGE_M_GT1 || \
331 (devid) == PCI_CHIP_SANDYBRIDGE_M_GT2 || \
332 (devid) == PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS || \
333 (devid) == PCI_CHIP_SANDYBRIDGE_S)
Eric Anholt1d318e22011-12-20 13:03:37 -0800334
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200335#define IS_GEN7(devid) (IS_IVYBRIDGE(devid) || \
Ville Syrjälä93d12592013-02-18 20:50:01 +0200336 IS_HASWELL(devid) || \
337 IS_VALLEYVIEW(devid))
Kenneth Graunke61721332012-03-19 13:55:19 -0700338
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200339#define IS_IVYBRIDGE(devid) ((devid) == PCI_CHIP_IVYBRIDGE_GT1 || \
340 (devid) == PCI_CHIP_IVYBRIDGE_GT2 || \
341 (devid) == PCI_CHIP_IVYBRIDGE_M_GT1 || \
342 (devid) == PCI_CHIP_IVYBRIDGE_M_GT2 || \
343 (devid) == PCI_CHIP_IVYBRIDGE_S || \
Ville Syrjälä93d12592013-02-18 20:50:01 +0200344 (devid) == PCI_CHIP_IVYBRIDGE_S_GT2)
Ben Widawsky36d18212012-12-03 17:43:29 -0800345
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200346#define IS_VALLEYVIEW(devid) ((devid) == PCI_CHIP_VALLEYVIEW_PO || \
347 (devid) == PCI_CHIP_VALLEYVIEW_1 || \
348 (devid) == PCI_CHIP_VALLEYVIEW_2 || \
349 (devid) == PCI_CHIP_VALLEYVIEW_3)
Kenneth Graunke61721332012-03-19 13:55:19 -0700350
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200351#define IS_HSW_GT1(devid) ((devid) == PCI_CHIP_HASWELL_GT1 || \
352 (devid) == PCI_CHIP_HASWELL_M_GT1 || \
353 (devid) == PCI_CHIP_HASWELL_S_GT1 || \
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300354 (devid) == PCI_CHIP_HASWELL_B_GT1 || \
355 (devid) == PCI_CHIP_HASWELL_E_GT1 || \
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200356 (devid) == PCI_CHIP_HASWELL_SDV_GT1 || \
357 (devid) == PCI_CHIP_HASWELL_SDV_M_GT1 || \
358 (devid) == PCI_CHIP_HASWELL_SDV_S_GT1 || \
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300359 (devid) == PCI_CHIP_HASWELL_SDV_B_GT1 || \
360 (devid) == PCI_CHIP_HASWELL_SDV_E_GT1 || \
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200361 (devid) == PCI_CHIP_HASWELL_ULT_GT1 || \
362 (devid) == PCI_CHIP_HASWELL_ULT_M_GT1 || \
363 (devid) == PCI_CHIP_HASWELL_ULT_S_GT1 || \
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300364 (devid) == PCI_CHIP_HASWELL_ULT_B_GT1 || \
365 (devid) == PCI_CHIP_HASWELL_ULT_E_GT1 || \
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200366 (devid) == PCI_CHIP_HASWELL_CRW_GT1 || \
367 (devid) == PCI_CHIP_HASWELL_CRW_M_GT1 || \
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300368 (devid) == PCI_CHIP_HASWELL_CRW_S_GT1 || \
369 (devid) == PCI_CHIP_HASWELL_CRW_B_GT1 || \
370 (devid) == PCI_CHIP_HASWELL_CRW_E_GT1)
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200371#define IS_HSW_GT2(devid) ((devid) == PCI_CHIP_HASWELL_GT2 || \
372 (devid) == PCI_CHIP_HASWELL_M_GT2 || \
373 (devid) == PCI_CHIP_HASWELL_S_GT2 || \
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300374 (devid) == PCI_CHIP_HASWELL_B_GT2 || \
375 (devid) == PCI_CHIP_HASWELL_E_GT2 || \
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200376 (devid) == PCI_CHIP_HASWELL_SDV_GT2 || \
377 (devid) == PCI_CHIP_HASWELL_SDV_M_GT2 || \
378 (devid) == PCI_CHIP_HASWELL_SDV_S_GT2 || \
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300379 (devid) == PCI_CHIP_HASWELL_SDV_B_GT2 || \
380 (devid) == PCI_CHIP_HASWELL_SDV_E_GT2 || \
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200381 (devid) == PCI_CHIP_HASWELL_ULT_GT2 || \
382 (devid) == PCI_CHIP_HASWELL_ULT_M_GT2 || \
383 (devid) == PCI_CHIP_HASWELL_ULT_S_GT2 || \
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300384 (devid) == PCI_CHIP_HASWELL_ULT_B_GT2 || \
385 (devid) == PCI_CHIP_HASWELL_ULT_E_GT2 || \
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200386 (devid) == PCI_CHIP_HASWELL_CRW_GT2 || \
387 (devid) == PCI_CHIP_HASWELL_CRW_M_GT2 || \
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300388 (devid) == PCI_CHIP_HASWELL_CRW_S_GT2 || \
389 (devid) == PCI_CHIP_HASWELL_CRW_B_GT2 || \
390 (devid) == PCI_CHIP_HASWELL_CRW_E_GT2)
Rodrigo Vivi150c3552013-05-13 17:48:39 -0300391#define IS_HSW_GT3(devid) ((devid) == PCI_CHIP_HASWELL_GT3 || \
392 (devid) == PCI_CHIP_HASWELL_M_GT3 || \
393 (devid) == PCI_CHIP_HASWELL_S_GT3 || \
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300394 (devid) == PCI_CHIP_HASWELL_B_GT3 || \
395 (devid) == PCI_CHIP_HASWELL_E_GT3 || \
Rodrigo Vivi150c3552013-05-13 17:48:39 -0300396 (devid) == PCI_CHIP_HASWELL_SDV_GT3 || \
397 (devid) == PCI_CHIP_HASWELL_SDV_M_GT3 || \
398 (devid) == PCI_CHIP_HASWELL_SDV_S_GT3 || \
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300399 (devid) == PCI_CHIP_HASWELL_SDV_B_GT3 || \
400 (devid) == PCI_CHIP_HASWELL_SDV_E_GT3 || \
Rodrigo Vivi150c3552013-05-13 17:48:39 -0300401 (devid) == PCI_CHIP_HASWELL_ULT_GT3 || \
402 (devid) == PCI_CHIP_HASWELL_ULT_M_GT3 || \
403 (devid) == PCI_CHIP_HASWELL_ULT_S_GT3 || \
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300404 (devid) == PCI_CHIP_HASWELL_ULT_B_GT3 || \
405 (devid) == PCI_CHIP_HASWELL_ULT_E_GT3 || \
Rodrigo Vivi150c3552013-05-13 17:48:39 -0300406 (devid) == PCI_CHIP_HASWELL_CRW_GT3 || \
407 (devid) == PCI_CHIP_HASWELL_CRW_M_GT3 || \
Rodrigo Vivi1669a672013-05-13 17:48:40 -0300408 (devid) == PCI_CHIP_HASWELL_CRW_S_GT3 || \
409 (devid) == PCI_CHIP_HASWELL_CRW_B_GT3 || \
410 (devid) == PCI_CHIP_HASWELL_CRW_E_GT3)
Kenneth Graunke61721332012-03-19 13:55:19 -0700411
Ville Syrjälä6e55fd72013-02-18 20:22:21 +0200412#define IS_HASWELL(devid) (IS_HSW_GT1(devid) || \
Rodrigo Vivi150c3552013-05-13 17:48:39 -0300413 IS_HSW_GT2(devid) || \
414 IS_HSW_GT3(devid))
Eric Anholt1d318e22011-12-20 13:03:37 -0800415
Ben Widawsky6ea20a02012-12-04 13:56:14 -0800416#define IS_BROADWELL(devid) (((devid & 0xff00) != 0x1600) ? 0 : \
417 (((devid & 0x00f0) >> 4) > 3) ? 0 : \
418 ((devid & 0x000f) == BDW_SPARE) ? 1 : \
419 ((devid & 0x000f) == BDW_ULT) ? 1 : \
420 ((devid & 0x000f) == BDW_IRIS) ? 1 : \
421 ((devid & 0x000f) == BDW_SERVER) ? 1 : \
422 ((devid & 0x000f) == BDW_WORKSTATION) ? 1 : \
423 ((devid & 0x000f) == BDW_ULX) ? 1 : 0)
424
Ville Syrjäläbb1f4262013-02-13 23:05:45 +0200425#define IS_CHERRYVIEW(devid) ((devid) == PCI_CHIP_CHERRYVIEW_0 || \
426 (devid) == PCI_CHIP_CHERRYVIEW_1 || \
427 (devid) == PCI_CHIP_CHERRYVIEW_2 || \
428 (devid) == PCI_CHIP_CHERRYVIEW_3)
Ben Widawsky6ea20a02012-12-04 13:56:14 -0800429
Ville Syrjäläbb1f4262013-02-13 23:05:45 +0200430#define IS_GEN8(devid) (IS_BROADWELL(devid) || \
431 IS_CHERRYVIEW(devid))
Ben Widawsky6ea20a02012-12-04 13:56:14 -0800432
Michał Winiarskie3623d32016-02-17 11:40:19 +0100433#define IS_SKL_GT1(devid) ((devid) == PCI_CHIP_SKYLAKE_DT_GT1 || \
434 (devid) == PCI_CHIP_SKYLAKE_ULT_GT1 || \
435 (devid) == PCI_CHIP_SKYLAKE_SRV_GT1 || \
436 (devid) == PCI_CHIP_SKYLAKE_H_GT1 || \
437 (devid) == PCI_CHIP_SKYLAKE_ULX_GT1)
Damien Lespiauc19a9862014-01-20 19:40:39 +0000438
Ben Widawsky4309bfd2015-10-22 12:06:59 -0700439#define IS_SKL_GT2(devid) ((devid) == PCI_CHIP_SKYLAKE_DT_GT2 || \
440 (devid) == PCI_CHIP_SKYLAKE_FUSED0_GT2 || \
441 (devid) == PCI_CHIP_SKYLAKE_FUSED1_GT2 || \
442 (devid) == PCI_CHIP_SKYLAKE_ULT_GT2 || \
443 (devid) == PCI_CHIP_SKYLAKE_FUSED2_GT2 || \
Damien Lespiauc19a9862014-01-20 19:40:39 +0000444 (devid) == PCI_CHIP_SKYLAKE_SRV_GT2 || \
Ben Widawsky4309bfd2015-10-22 12:06:59 -0700445 (devid) == PCI_CHIP_SKYLAKE_HALO_GT2 || \
446 (devid) == PCI_CHIP_SKYLAKE_WKS_GT2 || \
447 (devid) == PCI_CHIP_SKYLAKE_ULX_GT2 || \
448 (devid) == PCI_CHIP_SKYLAKE_MOBILE_GT2)
Damien Lespiauc19a9862014-01-20 19:40:39 +0000449
Michał Winiarskie3623d32016-02-17 11:40:19 +0100450#define IS_SKL_GT3(devid) ((devid) == PCI_CHIP_SKYLAKE_ULT_GT3_0 || \
451 (devid) == PCI_CHIP_SKYLAKE_ULT_GT3_1 || \
452 (devid) == PCI_CHIP_SKYLAKE_ULT_GT3_2 || \
453 (devid) == PCI_CHIP_SKYLAKE_HALO_GT3 || \
454 (devid) == PCI_CHIP_SKYLAKE_SRV_GT3)
Ben Widawskycad0e032015-10-22 12:15:50 -0700455
456#define IS_SKL_GT4(devid) ((devid) == PCI_CHIP_SKYLAKE_SRV_GT4 || \
457 (devid) == PCI_CHIP_SKYLAKE_DT_GT4 || \
458 (devid) == PCI_CHIP_SKYLAKE_SRV_GT4X || \
459 (devid) == PCI_CHIP_SKYLAKE_H_GT4 || \
460 (devid) == PCI_CHIP_SKYLAKE_WKS_GT4)
Damien Lespiauc19a9862014-01-20 19:40:39 +0000461
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700462#define IS_KBL_GT1(devid) ((devid) == PCI_CHIP_KABYLAKE_ULT_GT1_5 || \
463 (devid) == PCI_CHIP_KABYLAKE_ULX_GT1_5 || \
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700464 (devid) == PCI_CHIP_KABYLAKE_ULT_GT1 || \
465 (devid) == PCI_CHIP_KABYLAKE_ULX_GT1 || \
466 (devid) == PCI_CHIP_KABYLAKE_DT_GT1 || \
Rodrigo Vivi22b6e332016-06-23 14:01:33 -0700467 (devid) == PCI_CHIP_KABYLAKE_HALO_GT1_0 || \
468 (devid) == PCI_CHIP_KABYLAKE_HALO_GT1_1 || \
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700469 (devid) == PCI_CHIP_KABYLAKE_SRV_GT1)
470
471#define IS_KBL_GT2(devid) ((devid) == PCI_CHIP_KABYLAKE_ULT_GT2 || \
472 (devid) == PCI_CHIP_KABYLAKE_ULT_GT2F || \
Matt Atwood50426f32018-04-24 12:42:39 -0700473 (devid) == PCI_CHIP_KABYLAKE_ULX_GT2_0 || \
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700474 (devid) == PCI_CHIP_KABYLAKE_DT_GT2 || \
Anuj Phogat7c711882017-09-20 12:11:03 -0700475 (devid) == PCI_CHIP_KABYLAKE_M_GT2 || \
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700476 (devid) == PCI_CHIP_KABYLAKE_HALO_GT2 || \
477 (devid) == PCI_CHIP_KABYLAKE_SRV_GT2 || \
José Roberto de Souza7164abe2018-06-19 16:45:21 -0700478 (devid) == PCI_CHIP_KABYLAKE_WKS_GT2 || \
479 (devid) == PCI_CHIP_AMBERLAKE_ULX_GT2_1 || \
480 (devid) == PCI_CHIP_AMBERLAKE_ULX_GT2_2)
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700481
Rodrigo Vivi22b6e332016-06-23 14:01:33 -0700482#define IS_KBL_GT3(devid) ((devid) == PCI_CHIP_KABYLAKE_ULT_GT3_0 || \
483 (devid) == PCI_CHIP_KABYLAKE_ULT_GT3_1 || \
Rodrigo Vivi7996a872016-06-27 17:02:34 -0700484 (devid) == PCI_CHIP_KABYLAKE_ULT_GT3_2)
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700485
Rodrigo Vivi7996a872016-06-27 17:02:34 -0700486#define IS_KBL_GT4(devid) ((devid) == PCI_CHIP_KABYLAKE_HALO_GT4)
Rodrigo Vivi242f77c2015-09-18 11:26:39 -0700487
488#define IS_KABYLAKE(devid) (IS_KBL_GT1(devid) || \
489 IS_KBL_GT2(devid) || \
490 IS_KBL_GT3(devid) || \
491 IS_KBL_GT4(devid))
492
Damien Lespiauc19a9862014-01-20 19:40:39 +0000493#define IS_SKYLAKE(devid) (IS_SKL_GT1(devid) || \
494 IS_SKL_GT2(devid) || \
Ben Widawskycad0e032015-10-22 12:15:50 -0700495 IS_SKL_GT3(devid) || \
496 IS_SKL_GT4(devid))
Damien Lespiauc19a9862014-01-20 19:40:39 +0000497
Damien Lespiaue9ea1f42015-05-15 19:34:12 +0100498#define IS_BROXTON(devid) ((devid) == PCI_CHIP_BROXTON_0 || \
499 (devid) == PCI_CHIP_BROXTON_1 || \
Rodrigo Viviea07de92016-03-01 17:07:04 -0800500 (devid) == PCI_CHIP_BROXTON_2 || \
501 (devid) == PCI_CHIP_BROXTON_3 || \
502 (devid) == PCI_CHIP_BROXTON_4)
Damien Lespiaue9ea1f42015-05-15 19:34:12 +0100503
Ben Widawsky3e81f8b2016-11-10 10:28:02 -0800504#define IS_GEMINILAKE(devid) ((devid) == PCI_CHIP_GLK || \
505 (devid) == PCI_CHIP_GLK_2X6)
506
Anusha Srivatsa0733f372017-06-21 11:17:35 -0700507#define IS_CFL_S(devid) ((devid) == PCI_CHIP_COFFEELAKE_S_GT1_1 || \
508 (devid) == PCI_CHIP_COFFEELAKE_S_GT1_2 || \
Anuj Phogatd3cb5882018-01-10 15:51:02 -0800509 (devid) == PCI_CHIP_COFFEELAKE_S_GT1_3 || \
Anusha Srivatsa0733f372017-06-21 11:17:35 -0700510 (devid) == PCI_CHIP_COFFEELAKE_S_GT2_1 || \
511 (devid) == PCI_CHIP_COFFEELAKE_S_GT2_2 || \
Anuj Phogatd3cb5882018-01-10 15:51:02 -0800512 (devid) == PCI_CHIP_COFFEELAKE_S_GT2_3 || \
Rodrigo Vivi6e300312018-08-08 22:38:41 -0700513 (devid) == PCI_CHIP_COFFEELAKE_S_GT2_4 || \
514 (devid) == PCI_CHIP_COFFEELAKE_S_GT2_5)
Anusha Srivatsa0733f372017-06-21 11:17:35 -0700515
Anusha Srivatsa2b48faf2017-06-21 11:17:36 -0700516#define IS_CFL_H(devid) ((devid) == PCI_CHIP_COFFEELAKE_H_GT2_1 || \
517 (devid) == PCI_CHIP_COFFEELAKE_H_GT2_2)
518
José Roberto de Souza591c1d72018-06-19 16:45:20 -0700519#define IS_CFL_U(devid) ((devid) == PCI_CHIP_COFFEELAKE_U_GT2_1 || \
Anuj Phogatd3cb5882018-01-10 15:51:02 -0800520 (devid) == PCI_CHIP_COFFEELAKE_U_GT3_1 || \
Anusha Srivatsa4c986522017-06-21 11:17:37 -0700521 (devid) == PCI_CHIP_COFFEELAKE_U_GT3_2 || \
522 (devid) == PCI_CHIP_COFFEELAKE_U_GT3_3 || \
Anuj Phogatd3cb5882018-01-10 15:51:02 -0800523 (devid) == PCI_CHIP_COFFEELAKE_U_GT3_4 || \
José Roberto de Souza591c1d72018-06-19 16:45:20 -0700524 (devid) == PCI_CHIP_WHISKEYLAKE_U_GT1_1 || \
525 (devid) == PCI_CHIP_WHISKEYLAKE_U_GT2_1 || \
526 (devid) == PCI_CHIP_WHISKEYLAKE_U_GT3_1 || \
527 (devid) == PCI_CHIP_WHISKEYLAKE_U_GT3_2 || \
528 (devid) == PCI_CHIP_WHISKEYLAKE_U_GT3_3)
Anusha Srivatsa4c986522017-06-21 11:17:37 -0700529
Anusha Srivatsa2b48faf2017-06-21 11:17:36 -0700530#define IS_COFFEELAKE(devid) (IS_CFL_S(devid) || \
Anusha Srivatsa4c986522017-06-21 11:17:37 -0700531 IS_CFL_H(devid) || \
532 IS_CFL_U(devid))
Anusha Srivatsa0733f372017-06-21 11:17:35 -0700533
Ben Widawsky3e81f8b2016-11-10 10:28:02 -0800534#define IS_GEN9(devid) (IS_SKYLAKE(devid) || \
535 IS_BROXTON(devid) || \
536 IS_KABYLAKE(devid) || \
Anusha Srivatsa0733f372017-06-21 11:17:35 -0700537 IS_GEMINILAKE(devid) || \
538 IS_COFFEELAKE(devid))
Damien Lespiauc19a9862014-01-20 19:40:39 +0000539
Rodrigo Vivi7b123812018-02-07 22:46:43 -0800540#define IS_CANNONLAKE(devid) ((devid) == PCI_CHIP_CANNONLAKE_0 || \
541 (devid) == PCI_CHIP_CANNONLAKE_1 || \
542 (devid) == PCI_CHIP_CANNONLAKE_2 || \
543 (devid) == PCI_CHIP_CANNONLAKE_3 || \
544 (devid) == PCI_CHIP_CANNONLAKE_4 || \
545 (devid) == PCI_CHIP_CANNONLAKE_5 || \
546 (devid) == PCI_CHIP_CANNONLAKE_6 || \
547 (devid) == PCI_CHIP_CANNONLAKE_7 || \
548 (devid) == PCI_CHIP_CANNONLAKE_8 || \
549 (devid) == PCI_CHIP_CANNONLAKE_9 || \
550 (devid) == PCI_CHIP_CANNONLAKE_10 || \
551 (devid) == PCI_CHIP_CANNONLAKE_11 || \
552 (devid) == PCI_CHIP_CANNONLAKE_12 || \
553 (devid) == PCI_CHIP_CANNONLAKE_13)
Rodrigo Vivi6b624bf2016-12-12 16:06:02 -0800554
555#define IS_GEN10(devid) (IS_CANNONLAKE(devid))
Eric Anholtcbdd6272009-01-27 17:16:11 -0800556
Paulo Zanoni1ac3ecd2018-04-25 17:09:37 -0700557#define IS_ICELAKE_11(devid) ((devid) == PCI_CHIP_ICELAKE_11_0 || \
558 (devid) == PCI_CHIP_ICELAKE_11_1 || \
559 (devid) == PCI_CHIP_ICELAKE_11_2 || \
560 (devid) == PCI_CHIP_ICELAKE_11_3 || \
561 (devid) == PCI_CHIP_ICELAKE_11_4 || \
562 (devid) == PCI_CHIP_ICELAKE_11_5 || \
563 (devid) == PCI_CHIP_ICELAKE_11_6 || \
564 (devid) == PCI_CHIP_ICELAKE_11_7 || \
565 (devid) == PCI_CHIP_ICELAKE_11_8)
566
567#define IS_ICELAKE(devid) (IS_ICELAKE_11(devid))
568
569#define IS_GEN11(devid) (IS_ICELAKE_11(devid))
570
Rodrigo Vivi68da7812017-06-30 14:24:55 -0700571#define IS_9XX(dev) (IS_GEN3(dev) || \
572 IS_GEN4(dev) || \
573 IS_GEN5(dev) || \
574 IS_GEN6(dev) || \
575 IS_GEN7(dev) || \
576 IS_GEN8(dev) || \
577 IS_GEN9(dev) || \
Paulo Zanoni1ac3ecd2018-04-25 17:09:37 -0700578 IS_GEN10(dev) || \
579 IS_GEN11(dev))
Rodrigo Vivi68da7812017-06-30 14:24:55 -0700580
Eric Anholtcbdd6272009-01-27 17:16:11 -0800581#endif /* _INTEL_CHIPSET_H */