aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/agp/intel-agp.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-09-08 15:18:53 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-08 16:20:14 -0400
commit1a997ff2a0089a07a5494545d31f4366742dea43 (patch)
tree31b1922f2922c76ef1aff40cc298fd8a2e49d114 /drivers/char/agp/intel-agp.h
parente5e408fc94595aab897f613b6f4e2f5b36870a6f (diff)
intel-gtt: introduce intel_gtt_driver
Same idea as INTEL_INFO from drm/i915. This - reduces the dependancy on agp_driver - stops the what-does-IS_I965G-mean confusion (here it's just gen4, in drm/i915 it's gen >=4) - further prepares the separation of the fake agp driver from the rest. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/char/agp/intel-agp.h')
-rw-r--r--drivers/char/agp/intel-agp.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/drivers/char/agp/intel-agp.h b/drivers/char/agp/intel-agp.h
index bf03afc57cb7..ef7ca9756dc5 100644
--- a/drivers/char/agp/intel-agp.h
+++ b/drivers/char/agp/intel-agp.h
@@ -213,46 +213,6 @@
213#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_S_HB 0x0108 /* Server */ 213#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_S_HB 0x0108 /* Server */
214#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_S_IG 0x010A 214#define PCI_DEVICE_ID_INTEL_SANDYBRIDGE_S_IG 0x010A
215 215
216/* cover 915 and 945 variants */
217#define IS_I915 (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_E7221_HB || \
218 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_82915G_HB || \
219 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_82915GM_HB || \
220 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_82945G_HB || \
221 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_82945GM_HB || \
222 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_82945GME_HB)
223
224#define IS_I965 (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_82946GZ_HB || \
225 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_82G35_HB || \
226 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_82965Q_HB || \
227 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_82965G_HB || \
228 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_82965GM_HB || \
229 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_82965GME_HB)
230
231#define IS_G33 (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_G33_HB || \
232 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_Q35_HB || \
233 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_Q33_HB || \
234 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_PINEVIEW_M_HB || \
235 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_PINEVIEW_HB)
236
237#define IS_PINEVIEW (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_PINEVIEW_M_HB || \
238 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_PINEVIEW_HB)
239
240#define IS_SNB (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_HB || \
241 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_M_HB || \
242 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_SANDYBRIDGE_S_HB)
243
244#define IS_G4X (agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_EAGLELAKE_HB || \
245 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_Q45_HB || \
246 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_G45_HB || \
247 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_GM45_HB || \
248 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_G41_HB || \
249 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_B43_HB || \
250 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_D_HB || \
251 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_M_HB || \
252 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_MA_HB || \
253 agp_bridge->dev->device == PCI_DEVICE_ID_INTEL_IRONLAKE_MC2_HB || \
254 IS_SNB)
255
256int intel_gmch_probe(struct pci_dev *pdev, 216int intel_gmch_probe(struct pci_dev *pdev,
257 struct agp_bridge_data *bridge); 217 struct agp_bridge_data *bridge);
258void intel_gmch_remove(struct pci_dev *pdev); 218void intel_gmch_remove(struct pci_dev *pdev);