3 * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
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:
14 * The above copyright notice and this permission notice (including the
15 * next paragraph) shall be included in all copies or substantial portions
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.
28 #ifndef _INTEL_CHIPSET_H
29 #define _INTEL_CHIPSET_H
31 #define PCI_CHIP_ILD_G 0x0042
32 #define PCI_CHIP_ILM_G 0x0046
34 #define PCI_CHIP_SANDYBRIDGE_GT1 0x0102 /* desktop */
35 #define PCI_CHIP_SANDYBRIDGE_GT2 0x0112
36 #define PCI_CHIP_SANDYBRIDGE_GT2_PLUS 0x0122
37 #define PCI_CHIP_SANDYBRIDGE_M_GT1 0x0106 /* mobile */
38 #define PCI_CHIP_SANDYBRIDGE_M_GT2 0x0116
39 #define PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS 0x0126
40 #define PCI_CHIP_SANDYBRIDGE_S 0x010A /* server */
42 #define PCI_CHIP_IVYBRIDGE_GT1 0x0152 /* desktop */
43 #define PCI_CHIP_IVYBRIDGE_GT2 0x0162
44 #define PCI_CHIP_IVYBRIDGE_M_GT1 0x0156 /* mobile */
45 #define PCI_CHIP_IVYBRIDGE_M_GT2 0x0166
46 #define PCI_CHIP_IVYBRIDGE_S 0x015a /* server */
47 #define PCI_CHIP_IVYBRIDGE_S_GT2 0x016a /* server */
49 #define PCI_CHIP_HASWELL_GT1 0x0402 /* Desktop */
50 #define PCI_CHIP_HASWELL_GT2 0x0412
51 #define PCI_CHIP_HASWELL_M_GT1 0x0406 /* Mobile */
52 #define PCI_CHIP_HASWELL_M_GT2 0x0416
53 #define PCI_CHIP_HASWELL_M_ULT_GT2 0x0A16 /* Mobile ULT */
55 #define IS_830(dev) (dev == 0x3577)
56 #define IS_845(dev) (dev == 0x2562)
57 #define IS_85X(dev) (dev == 0x3582)
58 #define IS_865(dev) (dev == 0x2572)
60 #define IS_GEN2(dev) (IS_830(dev) || \
65 #define IS_915G(dev) (dev == 0x2582 || \
67 #define IS_915GM(dev) (dev == 0x2592)
68 #define IS_945G(dev) (dev == 0x2772)
69 #define IS_945GM(dev) (dev == 0x27A2 || \
72 #define IS_915(dev) (IS_915G(dev) || \
75 #define IS_945(dev) (IS_945G(dev) || \
80 #define IS_G33(dev) (dev == 0x29C2 || \
84 #define IS_PINEVIEW(dev) (dev == 0xa001 || \
87 #define IS_GEN3(dev) (IS_915(dev) || \
92 #define IS_I965GM(dev) (dev == 0x2A02)
94 #define IS_GEN4(dev) (dev == 0x2972 || \
111 #define IS_GM45(dev) (dev == 0x2A42)
114 #define IS_GEN5(dev) (dev == PCI_CHIP_ILD_G || \
115 dev == PCI_CHIP_ILM_G)
117 #define IS_GEN6(dev) (dev == PCI_CHIP_SANDYBRIDGE_GT1 || \
118 dev == PCI_CHIP_SANDYBRIDGE_GT2 || \
119 dev == PCI_CHIP_SANDYBRIDGE_GT2_PLUS || \
120 dev == PCI_CHIP_SANDYBRIDGE_M_GT1 || \
121 dev == PCI_CHIP_SANDYBRIDGE_M_GT2 || \
122 dev == PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS || \
123 dev == PCI_CHIP_SANDYBRIDGE_S)
125 #define IS_GEN7(devid) (IS_IVYBRIDGE(devid) || \
128 #define IS_IVYBRIDGE(dev) (dev == PCI_CHIP_IVYBRIDGE_GT1 || \
129 dev == PCI_CHIP_IVYBRIDGE_GT2 || \
130 dev == PCI_CHIP_IVYBRIDGE_M_GT1 || \
131 dev == PCI_CHIP_IVYBRIDGE_M_GT2 || \
132 dev == PCI_CHIP_IVYBRIDGE_S || \
133 dev == PCI_CHIP_IVYBRIDGE_S_GT2)
135 #define IS_HSW_GT1(devid) (devid == PCI_CHIP_HASWELL_GT1 || \
136 devid == PCI_CHIP_HASWELL_M_GT1)
137 #define IS_HSW_GT2(devid) (devid == PCI_CHIP_HASWELL_GT2 || \
138 devid == PCI_CHIP_HASWELL_M_GT2 || \
139 devid == PCI_CHIP_HASWELL_M_ULT_GT2)
141 #define IS_HASWELL(devid) (IS_HSW_GT1(devid) || \
144 #define IS_G4X(dev) (dev == 0x2E02 || \
151 #define IS_9XX(dev) (IS_GEN3(dev) || \
157 #endif /* _INTEL_CHIPSET_H */