summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2005-06-16 19:58:00 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2005-06-16 19:58:00 +0000
commit53e950b344d84a98fda4cff6d03b90651a625f18 (patch)
tree9ede9791774f2e09541cdd2b38a99d2e766d48a7
parent1567753415d420c626ae145457539bfee1414df8 (diff)
Force AGP always for Intel chipsets.
Fixes bug #3552
-rw-r--r--linux-core/i810_dma.c16
-rw-r--r--linux-core/i810_drv.c1
-rw-r--r--linux-core/i830_dma.c16
-rw-r--r--linux-core/i830_drv.c1
4 files changed, 34 insertions, 0 deletions
diff --git a/linux-core/i810_dma.c b/linux-core/i810_dma.c
index 81c084f1..a99a4a61 100644
--- a/linux-core/i810_dma.c
+++ b/linux-core/i810_dma.c
@@ -1386,3 +1386,19 @@ drm_ioctl_desc_t i810_ioctls[] = {
};
int i810_max_ioctl = DRM_ARRAY_SIZE(i810_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 i810 is AGP.
+ */
+int i810_driver_device_is_agp(drm_device_t * dev)
+{
+ return 1;
+}
diff --git a/linux-core/i810_drv.c b/linux-core/i810_drv.c
index 3a7ae24a..95b71083 100644
--- a/linux-core/i810_drv.c
+++ b/linux-core/i810_drv.c
@@ -85,6 +85,7 @@ static struct drm_driver driver = {
.dev_priv_size = sizeof(drm_i810_buf_priv_t),
.pretakedown = i810_driver_pretakedown,
.prerelease = i810_driver_prerelease,
+ .device_is_agp = i810_driver_device_is_agp,
.release = i810_driver_release,
.dma_quiescent = i810_driver_dma_quiescent,
.reclaim_buffers = i810_reclaim_buffers,
diff --git a/linux-core/i830_dma.c b/linux-core/i830_dma.c
index 90ce43ea..75480ccf 100644
--- a/linux-core/i830_dma.c
+++ b/linux-core/i830_dma.c
@@ -1568,3 +1568,19 @@ drm_ioctl_desc_t i830_ioctls[] = {
};
int i830_max_ioctl = DRM_ARRAY_SIZE(i830_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 i8xx is AGP.
+ */
+int i830_driver_device_is_agp(drm_device_t * dev)
+{
+ return 1;
+}
diff --git a/linux-core/i830_drv.c b/linux-core/i830_drv.c
index e5e069b8..d735aea7 100644
--- a/linux-core/i830_drv.c
+++ b/linux-core/i830_drv.c
@@ -90,6 +90,7 @@ static struct drm_driver driver = {
.dev_priv_size = sizeof(drm_i830_buf_priv_t),
.pretakedown = i830_driver_pretakedown,
.prerelease = i830_driver_prerelease,
+ .device_is_agp = i830_driver_device_is_agp,
.release = i830_driver_release,
.dma_quiescent = i830_driver_dma_quiescent,
.reclaim_buffers = i830_reclaim_buffers,