diff options
author | Jose Fonseca <jrfonseca@users.sourceforge.net> | 2003-06-14 15:18:49 +0000 |
---|---|---|
committer | Jose Fonseca <jrfonseca@users.sourceforge.net> | 2003-06-14 15:18:49 +0000 |
commit | fdf320a1b8025dd4b33670fddae9df2890ee6c5b (patch) | |
tree | 0fdb5c6507aa5f19f67821714896bd12716ffce3 /linux-core | |
parent | 0b01c70d59f6e038b8f90f7be98fb77d771ecc1a (diff) |
Move the linux AGP includes into drm_agp.h and only define the AGP data
structures if AGP support is enabled in the kernel (__REALLY_HAVE_AGP).
This fixes the compile errors on kernels without AGP support.
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drmP.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h index d927e890..3d352a6d 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -66,10 +66,6 @@ #ifdef CONFIG_MTRR #include <asm/mtrr.h> #endif -#if defined(CONFIG_AGP) || defined(CONFIG_AGP_MODULE) -#include <linux/types.h> -#include <linux/agp_backend.h> -#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,41) #define HAS_WORKQUEUE 0 #else @@ -90,9 +86,6 @@ /** \name DRM template customization defaults */ /*@{*/ -#ifndef __HAVE_AGP -#define __HAVE_AGP 0 -#endif #ifndef __HAVE_MTRR #define __HAVE_MTRR 0 #endif @@ -112,8 +105,6 @@ #define __HAVE_DMA_FREELIST 0 #endif -#define __REALLY_HAVE_AGP (__HAVE_AGP && (defined(CONFIG_AGP) || \ - defined(CONFIG_AGP_MODULE))) #define __REALLY_HAVE_MTRR (__HAVE_MTRR && defined(CONFIG_MTRR)) #define __REALLY_HAVE_SG (__HAVE_SG) |