From 53e950b344d84a98fda4cff6d03b90651a625f18 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Thu, 16 Jun 2005 19:58:00 +0000 Subject: Force AGP always for Intel chipsets. Fixes bug #3552 --- linux-core/i810_dma.c | 16 ++++++++++++++++ linux-core/i810_drv.c | 1 + linux-core/i830_dma.c | 16 ++++++++++++++++ linux-core/i830_drv.c | 1 + 4 files changed, 34 insertions(+) (limited to 'linux-core') 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, -- cgit v1.2.3