drm: add test for AGP devices and driver override for it.
authorDave Airlie <airlied@starflyer.(none)>
Sun, 10 Jul 2005 07:31:26 +0000 (17:31 +1000)
committerDave Airlie <airlied@linux.ie>
Sun, 10 Jul 2005 07:31:26 +0000 (17:31 +1000)
commitcda173806644d2af22ffd9896eed8ef99b97d356
tree374ad48818df951a03c59d54ec75d5b19d4a24c3
parentceb9c27aa7d61c70f4c75f017d9fbc9de50034f1
drm: add test for AGP devices and driver override for it.

Added device_is_agp callback to drm_driver.  This function is called by the
platform-specific drm_device_is_agp function.  Added implementation of this
function the the Linux-specific portion of the MGA driver to detect PCI G450
cards.  Added code to the Linux-specific portion of the generic DRM layer to
not initialize AGP infrastructure if the card is not AGP (this matches what
already existed in BSD).

Fix up i810/i830 and i915 drivers to always return AGP as they don't always
report the capability.

Fix the MGA to not report AGP for a card that has an AGP chip behind a PCI
bridge.

From: Ian Romanick, Dave Airlie, Alan Hourihane
Signed-off-by: Dave Airlie <airlied@linux.ie>
13 files changed:
drivers/char/drm/drmP.h
drivers/char/drm/drm_stub.c
drivers/char/drm/i810_dma.c
drivers/char/drm/i810_drv.c
drivers/char/drm/i810_drv.h
drivers/char/drm/i830_dma.c
drivers/char/drm/i830_drv.c
drivers/char/drm/i830_drv.h
drivers/char/drm/i915_dma.c
drivers/char/drm/i915_drv.c
drivers/char/drm/i915_drv.h
drivers/char/drm/mga_drv.c
drivers/char/drm/mga_drv.h