diff options
author | Ian Romanick <idr@us.ibm.com> | 2005-05-27 23:42:11 +0000 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2005-05-27 23:42:11 +0000 |
commit | 4a84416c458027462ee6112a5fa442415597f6c2 (patch) | |
tree | cd39aea11afea9b04442e5a818b220e40b3c70b9 /shared-core | |
parent | c9abd2fec509c271339d1ca3addd95df884df80a (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')
-rw-r--r-- | shared-core/i915_dma.c | 16 | ||||
-rw-r--r-- | shared-core/i915_drv.h | 1 |
2 files changed, 17 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; +} diff --git a/shared-core/i915_drv.h b/shared-core/i915_drv.h index b9615341..75480c16 100644 --- a/shared-core/i915_drv.h +++ b/shared-core/i915_drv.h @@ -80,6 +80,7 @@ typedef struct drm_i915_private { extern void i915_kernel_lost_context(drm_device_t * dev); extern void i915_driver_pretakedown(drm_device_t * dev); extern void i915_driver_prerelease(drm_device_t * dev, DRMFILE filp); +extern int i915_driver_device_is_agp(drm_device_t * dev); /* i915_irq.c */ extern int i915_irq_emit(DRM_IOCTL_ARGS); |