From 81da79d1ed038ff8968abcf1cde3362035603861 Mon Sep 17 00:00:00 2001 From: Rik Faith Date: Fri, 21 Jul 2000 14:20:57 +0000 Subject: Changes to make AGP optional for in-kernel builds --- linux/drmP.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'linux/drmP.h') diff --git a/linux/drmP.h b/linux/drmP.h index d8791bf9..ce55c15b 100644 --- a/linux/drmP.h +++ b/linux/drmP.h @@ -50,10 +50,7 @@ #ifdef CONFIG_MTRR #include #endif -#if defined(CONFIG_AGP) || defined(CONFIG_AGP_MODULE) -#define DRM_AGP -#endif -#ifdef DRM_AGP +#ifdef CONFIG_DRM_AGP #include #include #endif @@ -410,7 +407,7 @@ typedef struct drm_device_dma { wait_queue_head_t waiting; /* Processes waiting on free bufs */ } drm_device_dma_t; -#ifdef DRM_AGP +#ifdef CONFIG_DRM_AGP typedef struct drm_agp_mem { unsigned long handle; agp_memory *memory; @@ -524,7 +521,7 @@ typedef struct drm_device { wait_queue_head_t buf_readers; /* Processes waiting to read */ wait_queue_head_t buf_writers; /* Processes waiting to ctx switch */ -#ifdef DRM_AGP +#ifdef CONFIG_DRM_AGP drm_agp_head_t *agp; #endif unsigned long *ctx_bitmap; @@ -601,7 +598,7 @@ extern void drm_free_pages(unsigned long address, int order, extern void *drm_ioremap(unsigned long offset, unsigned long size); extern void drm_ioremapfree(void *pt, unsigned long size); -#ifdef DRM_AGP +#ifdef CONFIG_DRM_AGP extern agp_memory *drm_alloc_agp(int pages, u32 type); extern int drm_free_agp(agp_memory *handle, int pages); extern int drm_bind_agp(agp_memory *handle, unsigned int start); @@ -725,7 +722,7 @@ extern void drm_ctxbitmap_cleanup(drm_device_t *dev); extern int drm_ctxbitmap_next(drm_device_t *dev); extern void drm_ctxbitmap_free(drm_device_t *dev, int ctx_handle); -#ifdef DRM_AGP +#ifdef CONFIG_DRM_AGP /* AGP/GART support (agpsupport.c) */ extern drm_agp_head_t *drm_agp_init(void); extern void drm_agp_uninit(void); -- cgit v1.2.3