44
44
#define PCI_CHIP_IVYBRIDGE_M_GT1 0x0156 /* mobile */
45
45
#define PCI_CHIP_IVYBRIDGE_M_GT2 0x0166
46
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_GT2_PLUS 0x0422
52
#define PCI_CHIP_HASWELL_M_GT1 0x0406 /* Mobile */
53
#define PCI_CHIP_HASWELL_M_GT2 0x0416
54
#define PCI_CHIP_HASWELL_M_GT2_PLUS 0x0426
55
#define PCI_CHIP_HASWELL_S_GT1 0x040A /* Server */
56
#define PCI_CHIP_HASWELL_S_GT2 0x041A
57
#define PCI_CHIP_HASWELL_S_GT2_PLUS 0x042A
58
#define PCI_CHIP_HASWELL_SDV_GT1 0x0C02 /* Desktop */
59
#define PCI_CHIP_HASWELL_SDV_GT2 0x0C12
60
#define PCI_CHIP_HASWELL_SDV_GT2_PLUS 0x0C22
61
#define PCI_CHIP_HASWELL_SDV_M_GT1 0x0C06 /* Mobile */
62
#define PCI_CHIP_HASWELL_SDV_M_GT2 0x0C16
63
#define PCI_CHIP_HASWELL_SDV_M_GT2_PLUS 0x0C26
64
#define PCI_CHIP_HASWELL_SDV_S_GT1 0x0C0A /* Server */
65
#define PCI_CHIP_HASWELL_SDV_S_GT2 0x0C1A
66
#define PCI_CHIP_HASWELL_SDV_S_GT2_PLUS 0x0C2A
67
#define PCI_CHIP_HASWELL_ULT_GT1 0x0A02 /* Desktop */
68
#define PCI_CHIP_HASWELL_ULT_GT2 0x0A12
69
#define PCI_CHIP_HASWELL_ULT_GT2_PLUS 0x0A22
70
#define PCI_CHIP_HASWELL_ULT_M_GT1 0x0A06 /* Mobile */
71
#define PCI_CHIP_HASWELL_ULT_M_GT2 0x0A16
72
#define PCI_CHIP_HASWELL_ULT_M_GT2_PLUS 0x0A26
73
#define PCI_CHIP_HASWELL_ULT_S_GT1 0x0A0A /* Server */
74
#define PCI_CHIP_HASWELL_ULT_S_GT2 0x0A1A
75
#define PCI_CHIP_HASWELL_ULT_S_GT2_PLUS 0x0A2A
76
#define PCI_CHIP_HASWELL_CRW_GT1 0x0D12 /* Desktop */
77
#define PCI_CHIP_HASWELL_CRW_GT2 0x0D22
78
#define PCI_CHIP_HASWELL_CRW_GT2_PLUS 0x0D32
79
#define PCI_CHIP_HASWELL_CRW_M_GT1 0x0D16 /* Mobile */
80
#define PCI_CHIP_HASWELL_CRW_M_GT2 0x0D26
81
#define PCI_CHIP_HASWELL_CRW_M_GT2_PLUS 0x0D36
82
#define PCI_CHIP_HASWELL_CRW_S_GT1 0x0D1A /* Server */
83
#define PCI_CHIP_HASWELL_CRW_S_GT2 0x0D2A
84
#define PCI_CHIP_HASWELL_CRW_S_GT2_PLUS 0x0D3A
48
86
#define IS_830(dev) (dev == 0x3577)
49
87
#define IS_845(dev) (dev == 0x2562)
115
153
dev == PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS || \
116
154
dev == PCI_CHIP_SANDYBRIDGE_S)
118
#define IS_GEN7(dev) (dev == PCI_CHIP_IVYBRIDGE_GT1 || \
119
dev == PCI_CHIP_IVYBRIDGE_GT2 || \
120
dev == PCI_CHIP_IVYBRIDGE_M_GT1 || \
121
dev == PCI_CHIP_IVYBRIDGE_M_GT2 || \
122
dev == PCI_CHIP_IVYBRIDGE_S)
156
#define IS_GEN7(devid) (IS_IVYBRIDGE(devid) || \
159
#define IS_IVYBRIDGE(dev) (dev == PCI_CHIP_IVYBRIDGE_GT1 || \
160
dev == PCI_CHIP_IVYBRIDGE_GT2 || \
161
dev == PCI_CHIP_IVYBRIDGE_M_GT1 || \
162
dev == PCI_CHIP_IVYBRIDGE_M_GT2 || \
163
dev == PCI_CHIP_IVYBRIDGE_S || \
164
dev == PCI_CHIP_IVYBRIDGE_S_GT2)
166
#define IS_HSW_GT1(devid) (devid == PCI_CHIP_HASWELL_GT1 || \
167
devid == PCI_CHIP_HASWELL_M_GT1 || \
168
devid == PCI_CHIP_HASWELL_S_GT1 || \
169
devid == PCI_CHIP_HASWELL_SDV_GT1 || \
170
devid == PCI_CHIP_HASWELL_SDV_M_GT1 || \
171
devid == PCI_CHIP_HASWELL_SDV_S_GT1 || \
172
devid == PCI_CHIP_HASWELL_ULT_GT1 || \
173
devid == PCI_CHIP_HASWELL_ULT_M_GT1 || \
174
devid == PCI_CHIP_HASWELL_ULT_S_GT1 || \
175
devid == PCI_CHIP_HASWELL_CRW_GT1 || \
176
devid == PCI_CHIP_HASWELL_CRW_M_GT1 || \
177
devid == PCI_CHIP_HASWELL_CRW_S_GT1)
178
#define IS_HSW_GT2(devid) (devid == PCI_CHIP_HASWELL_GT2 || \
179
devid == PCI_CHIP_HASWELL_M_GT2 || \
180
devid == PCI_CHIP_HASWELL_S_GT2 || \
181
devid == PCI_CHIP_HASWELL_SDV_GT2 || \
182
devid == PCI_CHIP_HASWELL_SDV_M_GT2 || \
183
devid == PCI_CHIP_HASWELL_SDV_S_GT2 || \
184
devid == PCI_CHIP_HASWELL_ULT_GT2 || \
185
devid == PCI_CHIP_HASWELL_ULT_M_GT2 || \
186
devid == PCI_CHIP_HASWELL_ULT_S_GT2 || \
187
devid == PCI_CHIP_HASWELL_CRW_GT2 || \
188
devid == PCI_CHIP_HASWELL_CRW_M_GT2 || \
189
devid == PCI_CHIP_HASWELL_CRW_S_GT2 || \
190
devid == PCI_CHIP_HASWELL_GT2_PLUS || \
191
devid == PCI_CHIP_HASWELL_M_GT2_PLUS || \
192
devid == PCI_CHIP_HASWELL_S_GT2_PLUS || \
193
devid == PCI_CHIP_HASWELL_SDV_GT2_PLUS || \
194
devid == PCI_CHIP_HASWELL_SDV_M_GT2_PLUS || \
195
devid == PCI_CHIP_HASWELL_SDV_S_GT2_PLUS || \
196
devid == PCI_CHIP_HASWELL_ULT_GT2_PLUS || \
197
devid == PCI_CHIP_HASWELL_ULT_M_GT2_PLUS || \
198
devid == PCI_CHIP_HASWELL_ULT_S_GT2_PLUS || \
199
devid == PCI_CHIP_HASWELL_CRW_GT2_PLUS || \
200
devid == PCI_CHIP_HASWELL_CRW_M_GT2_PLUS || \
201
devid == PCI_CHIP_HASWELL_CRW_S_GT2_PLUS)
203
#define IS_HASWELL(devid) (IS_HSW_GT1(devid) || \
124
206
#define IS_G4X(dev) (dev == 0x2E02 || \
125
207
dev == 0x2E12 || \