Eric Anholt | cbdd627 | 2009-01-27 17:16:11 -0800 | [diff] [blame] | 1 | /* |
| 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 Widawsky | 36d1821 | 2012-12-03 17:43:29 -0800 | [diff] [blame] | 31 | #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ä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 55 | #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 Widawsky | 36d1821 | 2012-12-03 17:43:29 -0800 | [diff] [blame] | 58 | |
| 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ä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 63 | #define PCI_CHIP_I965_GM 0x2A02 |
| 64 | #define PCI_CHIP_I965_GME 0x2A12 |
Ben Widawsky | 36d1821 | 2012-12-03 17:43:29 -0800 | [diff] [blame] | 65 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 66 | #define PCI_CHIP_GM45_GM 0x2A42 |
Ben Widawsky | 36d1821 | 2012-12-03 17:43:29 -0800 | [diff] [blame] | 67 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 68 | #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 Widawsky | 36d1821 | 2012-12-03 17:43:29 -0800 | [diff] [blame] | 72 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 73 | #define PCI_CHIP_ILD_G 0x0042 |
| 74 | #define PCI_CHIP_ILM_G 0x0046 |
Eric Anholt | 1d318e2 | 2011-12-20 13:03:37 -0800 | [diff] [blame] | 75 | |
| 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 Dodonov | e057a56 | 2012-03-29 21:03:29 -0300 | [diff] [blame] | 89 | #define PCI_CHIP_IVYBRIDGE_S_GT2 0x016a /* server */ |
Eric Anholt | 1d318e2 | 2011-12-20 13:03:37 -0800 | [diff] [blame] | 90 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 91 | #define PCI_CHIP_HASWELL_GT1 0x0402 /* Desktop */ |
| 92 | #define PCI_CHIP_HASWELL_GT2 0x0412 |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 93 | #define PCI_CHIP_HASWELL_GT3 0x0422 |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 94 | #define PCI_CHIP_HASWELL_M_GT1 0x0406 /* Mobile */ |
| 95 | #define PCI_CHIP_HASWELL_M_GT2 0x0416 |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 96 | #define PCI_CHIP_HASWELL_M_GT3 0x0426 |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 97 | #define PCI_CHIP_HASWELL_S_GT1 0x040A /* Server */ |
| 98 | #define PCI_CHIP_HASWELL_S_GT2 0x041A |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 99 | #define PCI_CHIP_HASWELL_S_GT3 0x042A |
Rodrigo Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 100 | #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ä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 106 | #define PCI_CHIP_HASWELL_SDV_GT1 0x0C02 /* Desktop */ |
| 107 | #define PCI_CHIP_HASWELL_SDV_GT2 0x0C12 |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 108 | #define PCI_CHIP_HASWELL_SDV_GT3 0x0C22 |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 109 | #define PCI_CHIP_HASWELL_SDV_M_GT1 0x0C06 /* Mobile */ |
| 110 | #define PCI_CHIP_HASWELL_SDV_M_GT2 0x0C16 |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 111 | #define PCI_CHIP_HASWELL_SDV_M_GT3 0x0C26 |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 112 | #define PCI_CHIP_HASWELL_SDV_S_GT1 0x0C0A /* Server */ |
| 113 | #define PCI_CHIP_HASWELL_SDV_S_GT2 0x0C1A |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 114 | #define PCI_CHIP_HASWELL_SDV_S_GT3 0x0C2A |
Rodrigo Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 115 | #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ä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 121 | #define PCI_CHIP_HASWELL_ULT_GT1 0x0A02 /* Desktop */ |
| 122 | #define PCI_CHIP_HASWELL_ULT_GT2 0x0A12 |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 123 | #define PCI_CHIP_HASWELL_ULT_GT3 0x0A22 |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 124 | #define PCI_CHIP_HASWELL_ULT_M_GT1 0x0A06 /* Mobile */ |
| 125 | #define PCI_CHIP_HASWELL_ULT_M_GT2 0x0A16 |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 126 | #define PCI_CHIP_HASWELL_ULT_M_GT3 0x0A26 |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 127 | #define PCI_CHIP_HASWELL_ULT_S_GT1 0x0A0A /* Server */ |
| 128 | #define PCI_CHIP_HASWELL_ULT_S_GT2 0x0A1A |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 129 | #define PCI_CHIP_HASWELL_ULT_S_GT3 0x0A2A |
Rodrigo Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 130 | #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 Graunke | ca678bc | 2013-03-01 15:37:01 -0800 | [diff] [blame] | 136 | #define PCI_CHIP_HASWELL_CRW_GT1 0x0D02 /* Desktop */ |
| 137 | #define PCI_CHIP_HASWELL_CRW_GT2 0x0D12 |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 138 | #define PCI_CHIP_HASWELL_CRW_GT3 0x0D22 |
Kenneth Graunke | ca678bc | 2013-03-01 15:37:01 -0800 | [diff] [blame] | 139 | #define PCI_CHIP_HASWELL_CRW_M_GT1 0x0D06 /* Mobile */ |
| 140 | #define PCI_CHIP_HASWELL_CRW_M_GT2 0x0D16 |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 141 | #define PCI_CHIP_HASWELL_CRW_M_GT3 0x0D26 |
Kenneth Graunke | ca678bc | 2013-03-01 15:37:01 -0800 | [diff] [blame] | 142 | #define PCI_CHIP_HASWELL_CRW_S_GT1 0x0D0A /* Server */ |
| 143 | #define PCI_CHIP_HASWELL_CRW_S_GT2 0x0D1A |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 144 | #define PCI_CHIP_HASWELL_CRW_S_GT3 0x0D2A |
Rodrigo Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 145 | #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 Widawsky | 6ea20a0 | 2012-12-04 13:56:14 -0800 | [diff] [blame] | 151 | #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 Graunke | 6172133 | 2012-03-19 13:55:19 -0700 | [diff] [blame] | 157 | |
Ben Widawsky | 36d1821 | 2012-12-03 17:43:29 -0800 | [diff] [blame] | 158 | #define PCI_CHIP_VALLEYVIEW_PO 0x0f30 /* VLV PO board */ |
Jesse Barnes | ef866c7 | 2013-02-02 11:10:24 +0100 | [diff] [blame] | 159 | #define PCI_CHIP_VALLEYVIEW_1 0x0f31 |
| 160 | #define PCI_CHIP_VALLEYVIEW_2 0x0f32 |
| 161 | #define PCI_CHIP_VALLEYVIEW_3 0x0f33 |
Jesse Barnes | 9d9cb85 | 2012-03-18 16:51:18 -0500 | [diff] [blame] | 162 | |
Ville Syrjälä | bb1f426 | 2013-02-13 23:05:45 +0200 | [diff] [blame] | 163 | #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 Lespiau | c19a986 | 2014-01-20 19:40:39 +0000 | [diff] [blame] | 168 | #define PCI_CHIP_SKYLAKE_DT_GT1 0x1902 |
Ben Widawsky | 4309bfd | 2015-10-22 12:06:59 -0700 | [diff] [blame] | 169 | #define PCI_CHIP_SKYLAKE_ULT_GT1 0x1906 |
| 170 | #define PCI_CHIP_SKYLAKE_SRV_GT1 0x190A /* Reserved */ |
Michał Winiarski | e3623d3 | 2016-02-17 11:40:19 +0100 | [diff] [blame] | 171 | #define PCI_CHIP_SKYLAKE_H_GT1 0x190B |
Ben Widawsky | 4309bfd | 2015-10-22 12:06:59 -0700 | [diff] [blame] | 172 | #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 Lespiau | c19a986 | 2014-01-20 19:40:39 +0000 | [diff] [blame] | 179 | #define PCI_CHIP_SKYLAKE_HALO_GT2 0x191B |
Damien Lespiau | c19a986 | 2014-01-20 19:40:39 +0000 | [diff] [blame] | 180 | #define PCI_CHIP_SKYLAKE_WKS_GT2 0x191D |
Ben Widawsky | 4309bfd | 2015-10-22 12:06:59 -0700 | [diff] [blame] | 181 | #define PCI_CHIP_SKYLAKE_ULX_GT2 0x191E |
| 182 | #define PCI_CHIP_SKYLAKE_MOBILE_GT2 0x1921 /* Reserved */ |
Michał Winiarski | e3623d3 | 2016-02-17 11:40:19 +0100 | [diff] [blame] | 183 | #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 Widawsky | cad0e03 | 2015-10-22 12:15:50 -0700 | [diff] [blame] | 186 | #define PCI_CHIP_SKYLAKE_SRV_GT4 0x192A |
Michał Winiarski | e3623d3 | 2016-02-17 11:40:19 +0100 | [diff] [blame] | 187 | #define PCI_CHIP_SKYLAKE_HALO_GT3 0x192B /* Reserved */ |
| 188 | #define PCI_CHIP_SKYLAKE_SRV_GT3 0x192D |
Ben Widawsky | cad0e03 | 2015-10-22 12:15:50 -0700 | [diff] [blame] | 189 | #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 Lespiau | c19a986 | 2014-01-20 19:40:39 +0000 | [diff] [blame] | 193 | |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 194 | #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 Vivi | 22b6e33 | 2016-06-23 14:01:33 -0700 | [diff] [blame] | 197 | #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 Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 200 | #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 Atwood | 50426f3 | 2018-04-24 12:42:39 -0700 | [diff] [blame] | 203 | #define PCI_CHIP_KABYLAKE_ULX_GT2_0 0x591E |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 204 | #define PCI_CHIP_KABYLAKE_DT_GT2 0x5912 |
Anuj Phogat | 7c71188 | 2017-09-20 12:11:03 -0700 | [diff] [blame] | 205 | #define PCI_CHIP_KABYLAKE_M_GT2 0x5917 |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 206 | #define PCI_CHIP_KABYLAKE_DT_GT1 0x5902 |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 207 | #define PCI_CHIP_KABYLAKE_HALO_GT2 0x591B |
| 208 | #define PCI_CHIP_KABYLAKE_HALO_GT4 0x593B |
Rodrigo Vivi | 22b6e33 | 2016-06-23 14:01:33 -0700 | [diff] [blame] | 209 | #define PCI_CHIP_KABYLAKE_HALO_GT1_0 0x5908 |
| 210 | #define PCI_CHIP_KABYLAKE_HALO_GT1_1 0x590B |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 211 | #define PCI_CHIP_KABYLAKE_SRV_GT2 0x591A |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 212 | #define PCI_CHIP_KABYLAKE_SRV_GT1 0x590A |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 213 | #define PCI_CHIP_KABYLAKE_WKS_GT2 0x591D |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 214 | |
José Roberto de Souza | 7164abe | 2018-06-19 16:45:21 -0700 | [diff] [blame] | 215 | #define PCI_CHIP_AMBERLAKE_ULX_GT2_1 0x591C |
| 216 | #define PCI_CHIP_AMBERLAKE_ULX_GT2_2 0x87C0 |
| 217 | |
Damien Lespiau | e9ea1f4 | 2015-05-15 19:34:12 +0100 | [diff] [blame] | 218 | #define PCI_CHIP_BROXTON_0 0x0A84 |
| 219 | #define PCI_CHIP_BROXTON_1 0x1A84 |
| 220 | #define PCI_CHIP_BROXTON_2 0x5A84 |
Rodrigo Vivi | ea07de9 | 2016-03-01 17:07:04 -0800 | [diff] [blame] | 221 | #define PCI_CHIP_BROXTON_3 0x1A85 |
| 222 | #define PCI_CHIP_BROXTON_4 0x5A85 |
Damien Lespiau | e9ea1f4 | 2015-05-15 19:34:12 +0100 | [diff] [blame] | 223 | |
Ben Widawsky | 3e81f8b | 2016-11-10 10:28:02 -0800 | [diff] [blame] | 224 | #define PCI_CHIP_GLK 0x3184 |
| 225 | #define PCI_CHIP_GLK_2X6 0x3185 |
| 226 | |
Anusha Srivatsa | 0733f37 | 2017-06-21 11:17:35 -0700 | [diff] [blame] | 227 | #define PCI_CHIP_COFFEELAKE_S_GT1_1 0x3E90 |
| 228 | #define PCI_CHIP_COFFEELAKE_S_GT1_2 0x3E93 |
Anuj Phogat | d3cb588 | 2018-01-10 15:51:02 -0800 | [diff] [blame] | 229 | #define PCI_CHIP_COFFEELAKE_S_GT1_3 0x3E99 |
Anusha Srivatsa | 0733f37 | 2017-06-21 11:17:35 -0700 | [diff] [blame] | 230 | #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 Vivi | 6e30031 | 2018-08-08 22:38:41 -0700 | [diff] [blame] | 233 | #define PCI_CHIP_COFFEELAKE_S_GT2_4 0x3E98 |
| 234 | #define PCI_CHIP_COFFEELAKE_S_GT2_5 0x3E9A |
Anusha Srivatsa | 2b48faf | 2017-06-21 11:17:36 -0700 | [diff] [blame] | 235 | #define PCI_CHIP_COFFEELAKE_H_GT2_1 0x3E9B |
| 236 | #define PCI_CHIP_COFFEELAKE_H_GT2_2 0x3E94 |
José Roberto de Souza | 591c1d7 | 2018-06-19 16:45:20 -0700 | [diff] [blame] | 237 | #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 Srivatsa | 0733f37 | 2017-06-21 11:17:35 -0700 | [diff] [blame] | 248 | |
Rodrigo Vivi | 7b12381 | 2018-02-07 22:46:43 -0800 | [diff] [blame] | 249 | #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 Vivi | 6b624bf | 2016-12-12 16:06:02 -0800 | [diff] [blame] | 263 | |
Paulo Zanoni | 1ac3ecd | 2018-04-25 17:09:37 -0700 | [diff] [blame] | 264 | #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ä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 274 | #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 Anholt | cbdd627 | 2009-01-27 17:16:11 -0800 | [diff] [blame] | 283 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 284 | #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 Widawsky | 36d1821 | 2012-12-03 17:43:29 -0800 | [diff] [blame] | 289 | #define IS_G4X(devid) (IS_G45(devid) || IS_GM45(devid)) |
Eric Anholt | f6dc964 | 2009-10-22 16:37:56 -0700 | [diff] [blame] | 290 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 291 | #define IS_ILD(devid) ((devid) == PCI_CHIP_ILD_G) |
| 292 | #define IS_ILM(devid) ((devid) == PCI_CHIP_ILM_G) |
Eric Anholt | f6dc964 | 2009-10-22 16:37:56 -0700 | [diff] [blame] | 293 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 294 | #define IS_915(devid) ((devid) == PCI_CHIP_I915_G || \ |
| 295 | (devid) == PCI_CHIP_E7221_G || \ |
| 296 | (devid) == PCI_CHIP_I915_GM) |
Eric Anholt | f6dc964 | 2009-10-22 16:37:56 -0700 | [diff] [blame] | 297 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 298 | #define IS_945GM(devid) ((devid) == PCI_CHIP_I945_GM || \ |
| 299 | (devid) == PCI_CHIP_I945_GME) |
Eric Anholt | f6dc964 | 2009-10-22 16:37:56 -0700 | [diff] [blame] | 300 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 301 | #define IS_945(devid) ((devid) == PCI_CHIP_I945_G || \ |
| 302 | (devid) == PCI_CHIP_I945_GM || \ |
| 303 | (devid) == PCI_CHIP_I945_GME || \ |
Ben Widawsky | 36d1821 | 2012-12-03 17:43:29 -0800 | [diff] [blame] | 304 | IS_G33(devid)) |
Eric Anholt | f6dc964 | 2009-10-22 16:37:56 -0700 | [diff] [blame] | 305 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 306 | #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 Anholt | f6dc964 | 2009-10-22 16:37:56 -0700 | [diff] [blame] | 309 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 310 | #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 Anholt | cbdd627 | 2009-01-27 17:16:11 -0800 | [diff] [blame] | 314 | |
Ben Widawsky | 36d1821 | 2012-12-03 17:43:29 -0800 | [diff] [blame] | 315 | #define IS_GEN3(devid) (IS_945(devid) || IS_915(devid)) |
Eric Anholt | cbdd627 | 2009-01-27 17:16:11 -0800 | [diff] [blame] | 316 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 317 | #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 Widawsky | 36d1821 | 2012-12-03 17:43:29 -0800 | [diff] [blame] | 323 | IS_G4X(devid)) |
Jesse Barnes | 9d9cb85 | 2012-03-18 16:51:18 -0500 | [diff] [blame] | 324 | |
Ben Widawsky | 36d1821 | 2012-12-03 17:43:29 -0800 | [diff] [blame] | 325 | #define IS_GEN5(devid) (IS_ILD(devid) || IS_ILM(devid)) |
Eric Anholt | f6dc964 | 2009-10-22 16:37:56 -0700 | [diff] [blame] | 326 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 327 | #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 Anholt | 1d318e2 | 2011-12-20 13:03:37 -0800 | [diff] [blame] | 334 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 335 | #define IS_GEN7(devid) (IS_IVYBRIDGE(devid) || \ |
Ville Syrjälä | 93d1259 | 2013-02-18 20:50:01 +0200 | [diff] [blame] | 336 | IS_HASWELL(devid) || \ |
| 337 | IS_VALLEYVIEW(devid)) |
Kenneth Graunke | 6172133 | 2012-03-19 13:55:19 -0700 | [diff] [blame] | 338 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 339 | #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ä | 93d1259 | 2013-02-18 20:50:01 +0200 | [diff] [blame] | 344 | (devid) == PCI_CHIP_IVYBRIDGE_S_GT2) |
Ben Widawsky | 36d1821 | 2012-12-03 17:43:29 -0800 | [diff] [blame] | 345 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 346 | #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 Graunke | 6172133 | 2012-03-19 13:55:19 -0700 | [diff] [blame] | 350 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 351 | #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 Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 354 | (devid) == PCI_CHIP_HASWELL_B_GT1 || \ |
| 355 | (devid) == PCI_CHIP_HASWELL_E_GT1 || \ |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 356 | (devid) == PCI_CHIP_HASWELL_SDV_GT1 || \ |
| 357 | (devid) == PCI_CHIP_HASWELL_SDV_M_GT1 || \ |
| 358 | (devid) == PCI_CHIP_HASWELL_SDV_S_GT1 || \ |
Rodrigo Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 359 | (devid) == PCI_CHIP_HASWELL_SDV_B_GT1 || \ |
| 360 | (devid) == PCI_CHIP_HASWELL_SDV_E_GT1 || \ |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 361 | (devid) == PCI_CHIP_HASWELL_ULT_GT1 || \ |
| 362 | (devid) == PCI_CHIP_HASWELL_ULT_M_GT1 || \ |
| 363 | (devid) == PCI_CHIP_HASWELL_ULT_S_GT1 || \ |
Rodrigo Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 364 | (devid) == PCI_CHIP_HASWELL_ULT_B_GT1 || \ |
| 365 | (devid) == PCI_CHIP_HASWELL_ULT_E_GT1 || \ |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 366 | (devid) == PCI_CHIP_HASWELL_CRW_GT1 || \ |
| 367 | (devid) == PCI_CHIP_HASWELL_CRW_M_GT1 || \ |
Rodrigo Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 368 | (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ä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 371 | #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 Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 374 | (devid) == PCI_CHIP_HASWELL_B_GT2 || \ |
| 375 | (devid) == PCI_CHIP_HASWELL_E_GT2 || \ |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 376 | (devid) == PCI_CHIP_HASWELL_SDV_GT2 || \ |
| 377 | (devid) == PCI_CHIP_HASWELL_SDV_M_GT2 || \ |
| 378 | (devid) == PCI_CHIP_HASWELL_SDV_S_GT2 || \ |
Rodrigo Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 379 | (devid) == PCI_CHIP_HASWELL_SDV_B_GT2 || \ |
| 380 | (devid) == PCI_CHIP_HASWELL_SDV_E_GT2 || \ |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 381 | (devid) == PCI_CHIP_HASWELL_ULT_GT2 || \ |
| 382 | (devid) == PCI_CHIP_HASWELL_ULT_M_GT2 || \ |
| 383 | (devid) == PCI_CHIP_HASWELL_ULT_S_GT2 || \ |
Rodrigo Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 384 | (devid) == PCI_CHIP_HASWELL_ULT_B_GT2 || \ |
| 385 | (devid) == PCI_CHIP_HASWELL_ULT_E_GT2 || \ |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 386 | (devid) == PCI_CHIP_HASWELL_CRW_GT2 || \ |
| 387 | (devid) == PCI_CHIP_HASWELL_CRW_M_GT2 || \ |
Rodrigo Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 388 | (devid) == PCI_CHIP_HASWELL_CRW_S_GT2 || \ |
| 389 | (devid) == PCI_CHIP_HASWELL_CRW_B_GT2 || \ |
| 390 | (devid) == PCI_CHIP_HASWELL_CRW_E_GT2) |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 391 | #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 Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 394 | (devid) == PCI_CHIP_HASWELL_B_GT3 || \ |
| 395 | (devid) == PCI_CHIP_HASWELL_E_GT3 || \ |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 396 | (devid) == PCI_CHIP_HASWELL_SDV_GT3 || \ |
| 397 | (devid) == PCI_CHIP_HASWELL_SDV_M_GT3 || \ |
| 398 | (devid) == PCI_CHIP_HASWELL_SDV_S_GT3 || \ |
Rodrigo Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 399 | (devid) == PCI_CHIP_HASWELL_SDV_B_GT3 || \ |
| 400 | (devid) == PCI_CHIP_HASWELL_SDV_E_GT3 || \ |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 401 | (devid) == PCI_CHIP_HASWELL_ULT_GT3 || \ |
| 402 | (devid) == PCI_CHIP_HASWELL_ULT_M_GT3 || \ |
| 403 | (devid) == PCI_CHIP_HASWELL_ULT_S_GT3 || \ |
Rodrigo Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 404 | (devid) == PCI_CHIP_HASWELL_ULT_B_GT3 || \ |
| 405 | (devid) == PCI_CHIP_HASWELL_ULT_E_GT3 || \ |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 406 | (devid) == PCI_CHIP_HASWELL_CRW_GT3 || \ |
| 407 | (devid) == PCI_CHIP_HASWELL_CRW_M_GT3 || \ |
Rodrigo Vivi | 1669a67 | 2013-05-13 17:48:40 -0300 | [diff] [blame] | 408 | (devid) == PCI_CHIP_HASWELL_CRW_S_GT3 || \ |
| 409 | (devid) == PCI_CHIP_HASWELL_CRW_B_GT3 || \ |
| 410 | (devid) == PCI_CHIP_HASWELL_CRW_E_GT3) |
Kenneth Graunke | 6172133 | 2012-03-19 13:55:19 -0700 | [diff] [blame] | 411 | |
Ville Syrjälä | 6e55fd7 | 2013-02-18 20:22:21 +0200 | [diff] [blame] | 412 | #define IS_HASWELL(devid) (IS_HSW_GT1(devid) || \ |
Rodrigo Vivi | 150c355 | 2013-05-13 17:48:39 -0300 | [diff] [blame] | 413 | IS_HSW_GT2(devid) || \ |
| 414 | IS_HSW_GT3(devid)) |
Eric Anholt | 1d318e2 | 2011-12-20 13:03:37 -0800 | [diff] [blame] | 415 | |
Ben Widawsky | 6ea20a0 | 2012-12-04 13:56:14 -0800 | [diff] [blame] | 416 | #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ä | bb1f426 | 2013-02-13 23:05:45 +0200 | [diff] [blame] | 425 | #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 Widawsky | 6ea20a0 | 2012-12-04 13:56:14 -0800 | [diff] [blame] | 429 | |
Ville Syrjälä | bb1f426 | 2013-02-13 23:05:45 +0200 | [diff] [blame] | 430 | #define IS_GEN8(devid) (IS_BROADWELL(devid) || \ |
| 431 | IS_CHERRYVIEW(devid)) |
Ben Widawsky | 6ea20a0 | 2012-12-04 13:56:14 -0800 | [diff] [blame] | 432 | |
Michał Winiarski | e3623d3 | 2016-02-17 11:40:19 +0100 | [diff] [blame] | 433 | #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 Lespiau | c19a986 | 2014-01-20 19:40:39 +0000 | [diff] [blame] | 438 | |
Ben Widawsky | 4309bfd | 2015-10-22 12:06:59 -0700 | [diff] [blame] | 439 | #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 Lespiau | c19a986 | 2014-01-20 19:40:39 +0000 | [diff] [blame] | 444 | (devid) == PCI_CHIP_SKYLAKE_SRV_GT2 || \ |
Ben Widawsky | 4309bfd | 2015-10-22 12:06:59 -0700 | [diff] [blame] | 445 | (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 Lespiau | c19a986 | 2014-01-20 19:40:39 +0000 | [diff] [blame] | 449 | |
Michał Winiarski | e3623d3 | 2016-02-17 11:40:19 +0100 | [diff] [blame] | 450 | #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 Widawsky | cad0e03 | 2015-10-22 12:15:50 -0700 | [diff] [blame] | 455 | |
| 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 Lespiau | c19a986 | 2014-01-20 19:40:39 +0000 | [diff] [blame] | 461 | |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 462 | #define IS_KBL_GT1(devid) ((devid) == PCI_CHIP_KABYLAKE_ULT_GT1_5 || \ |
| 463 | (devid) == PCI_CHIP_KABYLAKE_ULX_GT1_5 || \ |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 464 | (devid) == PCI_CHIP_KABYLAKE_ULT_GT1 || \ |
| 465 | (devid) == PCI_CHIP_KABYLAKE_ULX_GT1 || \ |
| 466 | (devid) == PCI_CHIP_KABYLAKE_DT_GT1 || \ |
Rodrigo Vivi | 22b6e33 | 2016-06-23 14:01:33 -0700 | [diff] [blame] | 467 | (devid) == PCI_CHIP_KABYLAKE_HALO_GT1_0 || \ |
| 468 | (devid) == PCI_CHIP_KABYLAKE_HALO_GT1_1 || \ |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 469 | (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 Atwood | 50426f3 | 2018-04-24 12:42:39 -0700 | [diff] [blame] | 473 | (devid) == PCI_CHIP_KABYLAKE_ULX_GT2_0 || \ |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 474 | (devid) == PCI_CHIP_KABYLAKE_DT_GT2 || \ |
Anuj Phogat | 7c71188 | 2017-09-20 12:11:03 -0700 | [diff] [blame] | 475 | (devid) == PCI_CHIP_KABYLAKE_M_GT2 || \ |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 476 | (devid) == PCI_CHIP_KABYLAKE_HALO_GT2 || \ |
| 477 | (devid) == PCI_CHIP_KABYLAKE_SRV_GT2 || \ |
José Roberto de Souza | 7164abe | 2018-06-19 16:45:21 -0700 | [diff] [blame] | 478 | (devid) == PCI_CHIP_KABYLAKE_WKS_GT2 || \ |
| 479 | (devid) == PCI_CHIP_AMBERLAKE_ULX_GT2_1 || \ |
| 480 | (devid) == PCI_CHIP_AMBERLAKE_ULX_GT2_2) |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 481 | |
Rodrigo Vivi | 22b6e33 | 2016-06-23 14:01:33 -0700 | [diff] [blame] | 482 | #define IS_KBL_GT3(devid) ((devid) == PCI_CHIP_KABYLAKE_ULT_GT3_0 || \ |
| 483 | (devid) == PCI_CHIP_KABYLAKE_ULT_GT3_1 || \ |
Rodrigo Vivi | 7996a87 | 2016-06-27 17:02:34 -0700 | [diff] [blame] | 484 | (devid) == PCI_CHIP_KABYLAKE_ULT_GT3_2) |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 485 | |
Rodrigo Vivi | 7996a87 | 2016-06-27 17:02:34 -0700 | [diff] [blame] | 486 | #define IS_KBL_GT4(devid) ((devid) == PCI_CHIP_KABYLAKE_HALO_GT4) |
Rodrigo Vivi | 242f77c | 2015-09-18 11:26:39 -0700 | [diff] [blame] | 487 | |
| 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 Lespiau | c19a986 | 2014-01-20 19:40:39 +0000 | [diff] [blame] | 493 | #define IS_SKYLAKE(devid) (IS_SKL_GT1(devid) || \ |
| 494 | IS_SKL_GT2(devid) || \ |
Ben Widawsky | cad0e03 | 2015-10-22 12:15:50 -0700 | [diff] [blame] | 495 | IS_SKL_GT3(devid) || \ |
| 496 | IS_SKL_GT4(devid)) |
Damien Lespiau | c19a986 | 2014-01-20 19:40:39 +0000 | [diff] [blame] | 497 | |
Damien Lespiau | e9ea1f4 | 2015-05-15 19:34:12 +0100 | [diff] [blame] | 498 | #define IS_BROXTON(devid) ((devid) == PCI_CHIP_BROXTON_0 || \ |
| 499 | (devid) == PCI_CHIP_BROXTON_1 || \ |
Rodrigo Vivi | ea07de9 | 2016-03-01 17:07:04 -0800 | [diff] [blame] | 500 | (devid) == PCI_CHIP_BROXTON_2 || \ |
| 501 | (devid) == PCI_CHIP_BROXTON_3 || \ |
| 502 | (devid) == PCI_CHIP_BROXTON_4) |
Damien Lespiau | e9ea1f4 | 2015-05-15 19:34:12 +0100 | [diff] [blame] | 503 | |
Ben Widawsky | 3e81f8b | 2016-11-10 10:28:02 -0800 | [diff] [blame] | 504 | #define IS_GEMINILAKE(devid) ((devid) == PCI_CHIP_GLK || \ |
| 505 | (devid) == PCI_CHIP_GLK_2X6) |
| 506 | |
Anusha Srivatsa | 0733f37 | 2017-06-21 11:17:35 -0700 | [diff] [blame] | 507 | #define IS_CFL_S(devid) ((devid) == PCI_CHIP_COFFEELAKE_S_GT1_1 || \ |
| 508 | (devid) == PCI_CHIP_COFFEELAKE_S_GT1_2 || \ |
Anuj Phogat | d3cb588 | 2018-01-10 15:51:02 -0800 | [diff] [blame] | 509 | (devid) == PCI_CHIP_COFFEELAKE_S_GT1_3 || \ |
Anusha Srivatsa | 0733f37 | 2017-06-21 11:17:35 -0700 | [diff] [blame] | 510 | (devid) == PCI_CHIP_COFFEELAKE_S_GT2_1 || \ |
| 511 | (devid) == PCI_CHIP_COFFEELAKE_S_GT2_2 || \ |
Anuj Phogat | d3cb588 | 2018-01-10 15:51:02 -0800 | [diff] [blame] | 512 | (devid) == PCI_CHIP_COFFEELAKE_S_GT2_3 || \ |
Rodrigo Vivi | 6e30031 | 2018-08-08 22:38:41 -0700 | [diff] [blame] | 513 | (devid) == PCI_CHIP_COFFEELAKE_S_GT2_4 || \ |
| 514 | (devid) == PCI_CHIP_COFFEELAKE_S_GT2_5) |
Anusha Srivatsa | 0733f37 | 2017-06-21 11:17:35 -0700 | [diff] [blame] | 515 | |
Anusha Srivatsa | 2b48faf | 2017-06-21 11:17:36 -0700 | [diff] [blame] | 516 | #define IS_CFL_H(devid) ((devid) == PCI_CHIP_COFFEELAKE_H_GT2_1 || \ |
| 517 | (devid) == PCI_CHIP_COFFEELAKE_H_GT2_2) |
| 518 | |
José Roberto de Souza | 591c1d7 | 2018-06-19 16:45:20 -0700 | [diff] [blame] | 519 | #define IS_CFL_U(devid) ((devid) == PCI_CHIP_COFFEELAKE_U_GT2_1 || \ |
Anuj Phogat | d3cb588 | 2018-01-10 15:51:02 -0800 | [diff] [blame] | 520 | (devid) == PCI_CHIP_COFFEELAKE_U_GT3_1 || \ |
Anusha Srivatsa | 4c98652 | 2017-06-21 11:17:37 -0700 | [diff] [blame] | 521 | (devid) == PCI_CHIP_COFFEELAKE_U_GT3_2 || \ |
| 522 | (devid) == PCI_CHIP_COFFEELAKE_U_GT3_3 || \ |
Anuj Phogat | d3cb588 | 2018-01-10 15:51:02 -0800 | [diff] [blame] | 523 | (devid) == PCI_CHIP_COFFEELAKE_U_GT3_4 || \ |
José Roberto de Souza | 591c1d7 | 2018-06-19 16:45:20 -0700 | [diff] [blame] | 524 | (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 Srivatsa | 4c98652 | 2017-06-21 11:17:37 -0700 | [diff] [blame] | 529 | |
Anusha Srivatsa | 2b48faf | 2017-06-21 11:17:36 -0700 | [diff] [blame] | 530 | #define IS_COFFEELAKE(devid) (IS_CFL_S(devid) || \ |
Anusha Srivatsa | 4c98652 | 2017-06-21 11:17:37 -0700 | [diff] [blame] | 531 | IS_CFL_H(devid) || \ |
| 532 | IS_CFL_U(devid)) |
Anusha Srivatsa | 0733f37 | 2017-06-21 11:17:35 -0700 | [diff] [blame] | 533 | |
Ben Widawsky | 3e81f8b | 2016-11-10 10:28:02 -0800 | [diff] [blame] | 534 | #define IS_GEN9(devid) (IS_SKYLAKE(devid) || \ |
| 535 | IS_BROXTON(devid) || \ |
| 536 | IS_KABYLAKE(devid) || \ |
Anusha Srivatsa | 0733f37 | 2017-06-21 11:17:35 -0700 | [diff] [blame] | 537 | IS_GEMINILAKE(devid) || \ |
| 538 | IS_COFFEELAKE(devid)) |
Damien Lespiau | c19a986 | 2014-01-20 19:40:39 +0000 | [diff] [blame] | 539 | |
Rodrigo Vivi | 7b12381 | 2018-02-07 22:46:43 -0800 | [diff] [blame] | 540 | #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 Vivi | 6b624bf | 2016-12-12 16:06:02 -0800 | [diff] [blame] | 554 | |
| 555 | #define IS_GEN10(devid) (IS_CANNONLAKE(devid)) |
Eric Anholt | cbdd627 | 2009-01-27 17:16:11 -0800 | [diff] [blame] | 556 | |
Paulo Zanoni | 1ac3ecd | 2018-04-25 17:09:37 -0700 | [diff] [blame] | 557 | #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 Vivi | 68da781 | 2017-06-30 14:24:55 -0700 | [diff] [blame] | 571 | #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 Zanoni | 1ac3ecd | 2018-04-25 17:09:37 -0700 | [diff] [blame] | 578 | IS_GEN10(dev) || \ |
| 579 | IS_GEN11(dev)) |
Rodrigo Vivi | 68da781 | 2017-06-30 14:24:55 -0700 | [diff] [blame] | 580 | |
Eric Anholt | cbdd627 | 2009-01-27 17:16:11 -0800 | [diff] [blame] | 581 | #endif /* _INTEL_CHIPSET_H */ |