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 /linux-core/mga_drv.c | |
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 'linux-core/mga_drv.c')
-rw-r--r-- | linux-core/mga_drv.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/linux-core/mga_drv.c b/linux-core/mga_drv.c index c04de5a3..c8bb042d 100644 --- a/linux-core/mga_drv.c +++ b/linux-core/mga_drv.c @@ -148,8 +148,7 @@ MODULE_LICENSE("GPL and additional rights"); * \param dev The device to be tested. * * \returns - * If the device is a PCI G450, zero is returned. Otherwise non-zero is - * returned. + * If the device is a PCI G450, zero is returned. Otherwise 2 is returned. */ int mga_driver_device_is_agp(drm_device_t * dev) { @@ -176,5 +175,5 @@ int mga_driver_device_is_agp(drm_device_t * dev) return 0; } - return 1; + return 2; } |