summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2005-02-07 10:44:28 +0000
committerDave Airlie <airlied@linux.ie>2005-02-07 10:44:28 +0000
commit300e0866d68d40af9271a588bd93522e4e7a339c (patch)
tree392388ba6c75a21c1085ce8697e754438cfb108b /linux-core
parent5a332a0f61760d8c13a01ba9f9208fafcafc3bb4 (diff)
fix agp detection on linux
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drmP.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index e5789c65..d417f97d 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -999,6 +999,11 @@ static __inline__ struct drm_map *drm_core_findmap(struct drm_device *dev,
return NULL;
}
+static __inline__ int drm_device_is_agp(drm_device_t *dev)
+{
+ return pci_find_capability(dev->pdev, PCI_CAP_ID_AGP);
+}
+
static __inline__ void drm_core_dropmap(struct drm_map *map)
{
}