From 300e0866d68d40af9271a588bd93522e4e7a339c Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 7 Feb 2005 10:44:28 +0000 Subject: fix agp detection on linux --- linux-core/drmP.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'linux-core/drmP.h') 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) { } -- cgit v1.2.3