summaryrefslogtreecommitdiff
path: root/shared-core/i915_dma.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2005-05-27 23:42:11 +0000
committerIan Romanick <idr@us.ibm.com>2005-05-27 23:42:11 +0000
commit4a84416c458027462ee6112a5fa442415597f6c2 (patch)
treecd39aea11afea9b04442e5a818b220e40b3c70b9 /shared-core/i915_dma.c
parentc9abd2fec509c271339d1ca3addd95df884df80a (diff)
Modify drm_driver::device_is_agp to return a tri-state value to indicate
that a device absolutely is, absolutely is not, or may or may not be AGP. Modify the i915 DRM to use this to force all i9x5 devices to be "AGP" (even the PCI-e devices). Reported by: Lukas Hejtmanek
Diffstat (limited to 'shared-core/i915_dma.c')
-rw-r--r--shared-core/i915_dma.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c
index 9c27706b..03ee2394 100644
--- a/shared-core/i915_dma.c
+++ b/shared-core/i915_dma.c
@@ -726,3 +726,19 @@ drm_ioctl_desc_t i915_ioctls[] = {
};
int i915_max_ioctl = DRM_ARRAY_SIZE(i915_ioctls);
+
+/**
+ * Determine if the device really is AGP or not.
+ *
+ * All Intel graphics chipsets are treated as AGP, even if they are really
+ * PCI-e.
+ *
+ * \param dev The device to be tested.
+ *
+ * \returns
+ * A value of 1 is always retured to indictate every i9x5 is AGP.
+ */
+int i915_driver_device_is_agp(drm_device_t * dev)
+{
+ return 1;
+}