summaryrefslogtreecommitdiff
path: root/linux/tdfx_drv.c
diff options
context:
space:
mode:
authorRik Faith <faith@alephnull.com>2000-07-21 14:20:57 +0000
committerRik Faith <faith@alephnull.com>2000-07-21 14:20:57 +0000
commit81da79d1ed038ff8968abcf1cde3362035603861 (patch)
treeaf8d628fec94dc69839ee0dcf2686567947c4db3 /linux/tdfx_drv.c
parent6d1ce8fe7727ee0a704a8a7464b22559ce9831fd (diff)
Changes to make AGP optional for in-kernel builds
Diffstat (limited to 'linux/tdfx_drv.c')
-rw-r--r--linux/tdfx_drv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/tdfx_drv.c b/linux/tdfx_drv.c
index 97bd4180..47039cd6 100644
--- a/linux/tdfx_drv.c
+++ b/linux/tdfx_drv.c
@@ -94,7 +94,7 @@ static drm_ioctl_desc_t tdfx_ioctls[] = {
[DRM_IOCTL_NR(DRM_IOCTL_LOCK)] = { tdfx_lock, 1, 0 },
[DRM_IOCTL_NR(DRM_IOCTL_UNLOCK)] = { tdfx_unlock, 1, 0 },
[DRM_IOCTL_NR(DRM_IOCTL_FINISH)] = { drm_finish, 1, 0 },
-#ifdef DRM_AGP
+#ifdef CONFIG_DRM_AGP
[DRM_IOCTL_NR(DRM_IOCTL_AGP_ACQUIRE)] = {drm_agp_acquire, 1, 1},
[DRM_IOCTL_NR(DRM_IOCTL_AGP_RELEASE)] = {drm_agp_release, 1, 1},
[DRM_IOCTL_NR(DRM_IOCTL_AGP_ENABLE)] = {drm_agp_enable, 1, 1},
@@ -230,7 +230,7 @@ static int tdfx_takedown(drm_device_t *dev)
}
dev->magiclist[i].head = dev->magiclist[i].tail = NULL;
}
-#ifdef DRM_AGP
+#ifdef CONFIG_DRM_AGP
/* Clear AGP information */
if (dev->agp) {
drm_agp_mem_t *temp;
@@ -330,7 +330,7 @@ int tdfx_init(void)
drm_mem_init();
drm_proc_init(dev);
-#ifdef DRM_AGP
+#ifdef CONFIG_DRM_AGP
dev->agp = drm_agp_init();
#endif
if((retcode = drm_ctxbitmap_init(dev))) {
@@ -368,7 +368,7 @@ void tdfx_cleanup(void)
}
drm_ctxbitmap_cleanup(dev);
tdfx_takedown(dev);
-#ifdef DRM_AGP
+#ifdef CONFIG_DRM_AGP
if (dev->agp) {
drm_agp_uninit();
drm_free(dev->agp, sizeof(*dev->agp), DRM_MEM_AGPLISTS);