Commit dffec26d authored by Dave Airlie's avatar Dave Airlie

Drop __HAVE_CTX_BITMAP, __HAVE_SG, __HAVE_PCI_DMA, these are

fairly straightforward removals..
Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent 1b7f5737
...@@ -86,10 +86,9 @@ ...@@ -86,10 +86,9 @@
#define DRIVER_USE_AGP 0x1 #define DRIVER_USE_AGP 0x1
#define DRIVER_REQUIRE_AGP 0x2 #define DRIVER_REQUIRE_AGP 0x2
#define DRIVER_USE_MTRR 0x4 #define DRIVER_USE_MTRR 0x4
#define DRIVER_PCI_DMA 0x8
#define DRIVER_SG 0x10
#ifndef __HAVE_CTX_BITMAP
#define __HAVE_CTX_BITMAP 0
#endif
#ifndef __HAVE_DMA #ifndef __HAVE_DMA
#define __HAVE_DMA 0 #define __HAVE_DMA 0
#endif #endif
...@@ -97,12 +96,6 @@ ...@@ -97,12 +96,6 @@
#define __HAVE_IRQ 0 #define __HAVE_IRQ 0
#endif #endif
#define __REALLY_HAVE_SG (__HAVE_SG)
/*@}*/
/***********************************************************************/ /***********************************************************************/
/** \name Begin the DRM... */ /** \name Begin the DRM... */
/*@{*/ /*@{*/
...@@ -827,10 +820,8 @@ extern int DRM(rmctx)( struct inode *inode, struct file *filp, ...@@ -827,10 +820,8 @@ extern int DRM(rmctx)( struct inode *inode, struct file *filp,
extern int DRM(context_switch)(drm_device_t *dev, int old, int new); extern int DRM(context_switch)(drm_device_t *dev, int old, int new);
extern int DRM(context_switch_complete)(drm_device_t *dev, int new); extern int DRM(context_switch_complete)(drm_device_t *dev, int new);
#if __HAVE_CTX_BITMAP
extern int DRM(ctxbitmap_init)( drm_device_t *dev ); extern int DRM(ctxbitmap_init)( drm_device_t *dev );
extern void DRM(ctxbitmap_cleanup)( drm_device_t *dev ); extern void DRM(ctxbitmap_cleanup)( drm_device_t *dev );
#endif
extern int DRM(setsareactx)( struct inode *inode, struct file *filp, extern int DRM(setsareactx)( struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg ); unsigned int cmd, unsigned long arg );
...@@ -957,14 +948,12 @@ extern int DRM(proc_cleanup)(int minor, ...@@ -957,14 +948,12 @@ extern int DRM(proc_cleanup)(int minor,
struct proc_dir_entry *root, struct proc_dir_entry *root,
struct proc_dir_entry *dev_root); struct proc_dir_entry *dev_root);
#ifdef __HAVE_SG
/* Scatter Gather Support (drm_scatter.h) */ /* Scatter Gather Support (drm_scatter.h) */
extern void DRM(sg_cleanup)(drm_sg_mem_t *entry); extern void DRM(sg_cleanup)(drm_sg_mem_t *entry);
extern int DRM(sg_alloc)(struct inode *inode, struct file *filp, extern int DRM(sg_alloc)(struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg); unsigned int cmd, unsigned long arg);
extern int DRM(sg_free)(struct inode *inode, struct file *filp, extern int DRM(sg_free)(struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg); unsigned int cmd, unsigned long arg);
#endif
/* ATI PCIGART support (ati_pcigart.h) */ /* ATI PCIGART support (ati_pcigart.h) */
extern int DRM(ati_pcigart_init)(drm_device_t *dev, extern int DRM(ati_pcigart_init)(drm_device_t *dev,
......
...@@ -36,14 +36,6 @@ ...@@ -36,14 +36,6 @@
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include "drmP.h" #include "drmP.h"
#ifndef __HAVE_PCI_DMA
#define __HAVE_PCI_DMA 0
#endif
#ifndef __HAVE_SG
#define __HAVE_SG 0
#endif
/** /**
* Compute size order. Returns the exponent of the smaller power of two which * Compute size order. Returns the exponent of the smaller power of two which
* is greater or equal to given number. * is greater or equal to given number.
...@@ -519,7 +511,6 @@ int DRM(addbufs_agp)( struct inode *inode, struct file *filp, ...@@ -519,7 +511,6 @@ int DRM(addbufs_agp)( struct inode *inode, struct file *filp,
} }
#endif /* __OS_HAS_AGP */ #endif /* __OS_HAS_AGP */
#if __HAVE_PCI_DMA
int DRM(addbufs_pci)( struct inode *inode, struct file *filp, int DRM(addbufs_pci)( struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg ) unsigned int cmd, unsigned long arg )
{ {
...@@ -544,6 +535,7 @@ int DRM(addbufs_pci)( struct inode *inode, struct file *filp, ...@@ -544,6 +535,7 @@ int DRM(addbufs_pci)( struct inode *inode, struct file *filp,
drm_buf_t **temp_buflist; drm_buf_t **temp_buflist;
drm_buf_desc_t __user *argp = (void __user *)arg; drm_buf_desc_t __user *argp = (void __user *)arg;
if (!drm_core_check_feature(dev, DRIVER_PCI_DMA)) return -EINVAL;
if ( !dma ) return -EINVAL; if ( !dma ) return -EINVAL;
if ( copy_from_user( &request, argp, sizeof(request) ) ) if ( copy_from_user( &request, argp, sizeof(request) ) )
...@@ -749,9 +741,7 @@ int DRM(addbufs_pci)( struct inode *inode, struct file *filp, ...@@ -749,9 +741,7 @@ int DRM(addbufs_pci)( struct inode *inode, struct file *filp,
return 0; return 0;
} }
#endif /* __HAVE_PCI_DMA */
#if __HAVE_SG
int DRM(addbufs_sg)( struct inode *inode, struct file *filp, int DRM(addbufs_sg)( struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg ) unsigned int cmd, unsigned long arg )
{ {
...@@ -774,6 +764,8 @@ int DRM(addbufs_sg)( struct inode *inode, struct file *filp, ...@@ -774,6 +764,8 @@ int DRM(addbufs_sg)( struct inode *inode, struct file *filp,
int i; int i;
drm_buf_t **temp_buflist; drm_buf_t **temp_buflist;
if (!drm_core_check_feature(dev, DRIVER_SG)) return -EINVAL;
if ( !dma ) return -EINVAL; if ( !dma ) return -EINVAL;
if ( copy_from_user( &request, argp, sizeof(request) ) ) if ( copy_from_user( &request, argp, sizeof(request) ) )
...@@ -915,7 +907,6 @@ int DRM(addbufs_sg)( struct inode *inode, struct file *filp, ...@@ -915,7 +907,6 @@ int DRM(addbufs_sg)( struct inode *inode, struct file *filp,
atomic_dec( &dev->buf_alloc ); atomic_dec( &dev->buf_alloc );
return 0; return 0;
} }
#endif /* __HAVE_SG */
/** /**
* Add buffers for DMA transfers (ioctl). * Add buffers for DMA transfers (ioctl).
...@@ -945,16 +936,10 @@ int DRM(addbufs)( struct inode *inode, struct file *filp, ...@@ -945,16 +936,10 @@ int DRM(addbufs)( struct inode *inode, struct file *filp,
return DRM(addbufs_agp)( inode, filp, cmd, arg ); return DRM(addbufs_agp)( inode, filp, cmd, arg );
else else
#endif #endif
#if __HAVE_SG
if ( request.flags & _DRM_SG_BUFFER ) if ( request.flags & _DRM_SG_BUFFER )
return DRM(addbufs_sg)( inode, filp, cmd, arg ); return DRM(addbufs_sg)( inode, filp, cmd, arg );
else else
#endif
#if __HAVE_PCI_DMA
return DRM(addbufs_pci)( inode, filp, cmd, arg ); return DRM(addbufs_pci)( inode, filp, cmd, arg );
#else
return -EINVAL;
#endif
} }
...@@ -1186,7 +1171,7 @@ int DRM(mapbufs)( struct inode *inode, struct file *filp, ...@@ -1186,7 +1171,7 @@ int DRM(mapbufs)( struct inode *inode, struct file *filp,
if ( request.count >= dma->buf_count ) { if ( request.count >= dma->buf_count ) {
if ((drm_core_has_AGP(dev) && (dma->flags & _DRM_DMA_USE_AGP)) || if ((drm_core_has_AGP(dev) && (dma->flags & _DRM_DMA_USE_AGP)) ||
(__HAVE_SG && (dma->flags & _DRM_DMA_USE_SG)) ) { (drm_core_check_feature(dev, DRIVER_SG) && (dma->flags & _DRM_DMA_USE_SG)) ) {
drm_map_t *map = dev->agp_buffer_map; drm_map_t *map = dev->agp_buffer_map;
if ( !map ) { if ( !map ) {
......
...@@ -42,11 +42,6 @@ ...@@ -42,11 +42,6 @@
#include "drmP.h" #include "drmP.h"
#if !__HAVE_CTX_BITMAP
#error "__HAVE_CTX_BITMAP must be defined"
#endif
/******************************************************************/ /******************************************************************/
/** \name Context bitmap support */ /** \name Context bitmap support */
/*@{*/ /*@{*/
...@@ -580,3 +575,4 @@ int DRM(rmctx)( struct inode *inode, struct file *filp, ...@@ -580,3 +575,4 @@ int DRM(rmctx)( struct inode *inode, struct file *filp,
} }
/*@}*/ /*@}*/
...@@ -53,9 +53,6 @@ ...@@ -53,9 +53,6 @@
*/ */
#ifndef __HAVE_CTX_BITMAP
#define __HAVE_CTX_BITMAP 0
#endif
#ifndef __HAVE_IRQ #ifndef __HAVE_IRQ
#define __HAVE_IRQ 0 #define __HAVE_IRQ 0
#endif #endif
...@@ -68,9 +65,6 @@ ...@@ -68,9 +65,6 @@
#ifndef __HAVE_COUNTERS #ifndef __HAVE_COUNTERS
#define __HAVE_COUNTERS 0 #define __HAVE_COUNTERS 0
#endif #endif
#ifndef __HAVE_SG
#define __HAVE_SG 0
#endif
#ifndef DRIVER_IOCTLS #ifndef DRIVER_IOCTLS
#define DRIVER_IOCTLS #define DRIVER_IOCTLS
...@@ -131,10 +125,8 @@ drm_ioctl_desc_t DRM(ioctls)[] = { ...@@ -131,10 +125,8 @@ drm_ioctl_desc_t DRM(ioctls)[] = {
[DRM_IOCTL_NR(DRM_IOCTL_ADD_MAP)] = { DRM(addmap), 1, 1 }, [DRM_IOCTL_NR(DRM_IOCTL_ADD_MAP)] = { DRM(addmap), 1, 1 },
[DRM_IOCTL_NR(DRM_IOCTL_RM_MAP)] = { DRM(rmmap), 1, 0 }, [DRM_IOCTL_NR(DRM_IOCTL_RM_MAP)] = { DRM(rmmap), 1, 0 },
#if __HAVE_CTX_BITMAP
[DRM_IOCTL_NR(DRM_IOCTL_SET_SAREA_CTX)] = { DRM(setsareactx), 1, 1 }, [DRM_IOCTL_NR(DRM_IOCTL_SET_SAREA_CTX)] = { DRM(setsareactx), 1, 1 },
[DRM_IOCTL_NR(DRM_IOCTL_GET_SAREA_CTX)] = { DRM(getsareactx), 1, 0 }, [DRM_IOCTL_NR(DRM_IOCTL_GET_SAREA_CTX)] = { DRM(getsareactx), 1, 0 },
#endif
[DRM_IOCTL_NR(DRM_IOCTL_ADD_CTX)] = { DRM(addctx), 1, 1 }, [DRM_IOCTL_NR(DRM_IOCTL_ADD_CTX)] = { DRM(addctx), 1, 1 },
[DRM_IOCTL_NR(DRM_IOCTL_RM_CTX)] = { DRM(rmctx), 1, 1 }, [DRM_IOCTL_NR(DRM_IOCTL_RM_CTX)] = { DRM(rmctx), 1, 1 },
...@@ -175,10 +167,8 @@ drm_ioctl_desc_t DRM(ioctls)[] = { ...@@ -175,10 +167,8 @@ drm_ioctl_desc_t DRM(ioctls)[] = {
[DRM_IOCTL_NR(DRM_IOCTL_AGP_UNBIND)] = { DRM(agp_unbind), 1, 1 }, [DRM_IOCTL_NR(DRM_IOCTL_AGP_UNBIND)] = { DRM(agp_unbind), 1, 1 },
#endif #endif
#if __HAVE_SG
[DRM_IOCTL_NR(DRM_IOCTL_SG_ALLOC)] = { DRM(sg_alloc), 1, 1 }, [DRM_IOCTL_NR(DRM_IOCTL_SG_ALLOC)] = { DRM(sg_alloc), 1, 1 },
[DRM_IOCTL_NR(DRM_IOCTL_SG_FREE)] = { DRM(sg_free), 1, 1 }, [DRM_IOCTL_NR(DRM_IOCTL_SG_FREE)] = { DRM(sg_free), 1, 1 },
#endif
#ifdef __HAVE_VBL_IRQ #ifdef __HAVE_VBL_IRQ
[DRM_IOCTL_NR(DRM_IOCTL_WAIT_VBLANK)] = { DRM(wait_vblank), 0, 0 }, [DRM_IOCTL_NR(DRM_IOCTL_WAIT_VBLANK)] = { DRM(wait_vblank), 0, 0 },
...@@ -424,15 +414,11 @@ static int DRM(takedown)( drm_device_t *dev ) ...@@ -424,15 +414,11 @@ static int DRM(takedown)( drm_device_t *dev )
*/ */
break; break;
case _DRM_SCATTER_GATHER: case _DRM_SCATTER_GATHER:
/* Handle it, but do nothing, if HAVE_SG /* Handle it */
* isn't defined. if (drm_core_check_feature(dev, DRIVER_SG) && dev->sg) {
*/
#if __HAVE_SG
if(dev->sg) {
DRM(sg_cleanup)(dev->sg); DRM(sg_cleanup)(dev->sg);
dev->sg = NULL; dev->sg = NULL;
} }
#endif
break; break;
} }
DRM(free)(map, sizeof(*map), DRM_MEM_MAPS); DRM(free)(map, sizeof(*map), DRM_MEM_MAPS);
...@@ -484,9 +470,7 @@ static struct pci_device_id DRM(pciidlist)[] = { ...@@ -484,9 +470,7 @@ static struct pci_device_id DRM(pciidlist)[] = {
static int DRM(probe)(struct pci_dev *pdev) static int DRM(probe)(struct pci_dev *pdev)
{ {
drm_device_t *dev; drm_device_t *dev;
#if __HAVE_CTX_BITMAP
int retcode; int retcode;
#endif
int i; int i;
int is_compat = 0; int is_compat = 0;
...@@ -554,15 +538,14 @@ static int DRM(probe)(struct pci_dev *pdev) ...@@ -554,15 +538,14 @@ static int DRM(probe)(struct pci_dev *pdev)
} }
} }
#if __HAVE_CTX_BITMAP
retcode = DRM(ctxbitmap_init)( dev ); retcode = DRM(ctxbitmap_init)( dev );
if( retcode ) { if( retcode ) {
DRM_ERROR( "Cannot allocate memory for context bitmap.\n" ); DRM_ERROR( "Cannot allocate memory for context bitmap.\n" );
DRM(stub_unregister)(dev->minor); DRM(stub_unregister)(dev->minor);
DRM(takedown)( dev ); DRM(takedown)( dev );
return retcode; return retcode;
} }
#endif
DRM(numdevs)++; /* no errors, mark it reserved */ DRM(numdevs)++; /* no errors, mark it reserved */
DRM_INFO( "Initialized %s %d.%d.%d %s on minor %d: %s\n", DRM_INFO( "Initialized %s %d.%d.%d %s on minor %d: %s\n",
...@@ -635,9 +618,8 @@ static void __exit drm_cleanup( void ) ...@@ -635,9 +618,8 @@ static void __exit drm_cleanup( void )
DRM_INFO( "Module unloaded\n" ); DRM_INFO( "Module unloaded\n" );
} }
} }
#if __HAVE_CTX_BITMAP
DRM(ctxbitmap_cleanup)( dev ); DRM(ctxbitmap_cleanup)( dev );
#endif
if (drm_core_has_MTRR(dev) && drm_core_has_AGP(dev) && if (drm_core_has_MTRR(dev) && drm_core_has_AGP(dev) &&
dev->agp && dev->agp->agp_mtrr >= 0) { dev->agp && dev->agp->agp_mtrr >= 0) {
...@@ -853,9 +835,9 @@ int DRM(release)( struct inode *inode, struct file *filp ) ...@@ -853,9 +835,9 @@ int DRM(release)( struct inode *inode, struct file *filp )
pos->handle != DRM_KERNEL_CONTEXT ) { pos->handle != DRM_KERNEL_CONTEXT ) {
if (dev->fn_tbl.context_dtor) if (dev->fn_tbl.context_dtor)
dev->fn_tbl.context_dtor(dev, pos->handle); dev->fn_tbl.context_dtor(dev, pos->handle);
#if __HAVE_CTX_BITMAP
DRM(ctxbitmap_free)( dev, pos->handle ); DRM(ctxbitmap_free)( dev, pos->handle );
#endif
list_del( &pos->head ); list_del( &pos->head );
DRM(free)( pos, sizeof(*pos), DRM_MEM_CTXLIST ); DRM(free)( pos, sizeof(*pos), DRM_MEM_CTXLIST );
} }
......
...@@ -73,6 +73,9 @@ int DRM(sg_alloc)( struct inode *inode, struct file *filp, ...@@ -73,6 +73,9 @@ int DRM(sg_alloc)( struct inode *inode, struct file *filp,
DRM_DEBUG( "%s\n", __FUNCTION__ ); DRM_DEBUG( "%s\n", __FUNCTION__ );
if (drm_core_check_feature(dev, DRIVER_SG))
return -EINVAL;
if ( dev->sg ) if ( dev->sg )
return -EINVAL; return -EINVAL;
...@@ -206,6 +209,9 @@ int DRM(sg_free)( struct inode *inode, struct file *filp, ...@@ -206,6 +209,9 @@ int DRM(sg_free)( struct inode *inode, struct file *filp,
drm_scatter_gather_t request; drm_scatter_gather_t request;
drm_sg_mem_t *entry; drm_sg_mem_t *entry;
if (drm_core_check_feature(dev, DRIVER_SG))
return -EINVAL;
if ( copy_from_user( &request, if ( copy_from_user( &request,
(drm_scatter_gather_t __user *)arg, (drm_scatter_gather_t __user *)arg,
sizeof(request) ) ) sizeof(request) ) )
......
...@@ -71,7 +71,6 @@ ...@@ -71,7 +71,6 @@
*/ */
#define __HAVE_DMA 1 #define __HAVE_DMA 1
#define __HAVE_OLD_DMA 1 #define __HAVE_OLD_DMA 1
#define __HAVE_PCI_DMA 1
#define __HAVE_MULTIPLE_DMA_QUEUES 1 #define __HAVE_MULTIPLE_DMA_QUEUES 1
#define __HAVE_DMA_WAITQUEUE 1 #define __HAVE_DMA_WAITQUEUE 1
......
...@@ -934,7 +934,7 @@ static int gamma_driver_dma_quiescent(drm_device_t *dev) ...@@ -934,7 +934,7 @@ static int gamma_driver_dma_quiescent(drm_device_t *dev)
void gamma_driver_register_fns(drm_device_t *dev) void gamma_driver_register_fns(drm_device_t *dev)
{ {
dev->driver_features = DRIVER_USE_AGP | DRIVER_USE_MTRR; dev->driver_features = DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_PCI_DMA;
DRM(fops).read = gamma_fops_read; DRM(fops).read = gamma_fops_read;
DRM(fops).poll = gamma_fops_poll; DRM(fops).poll = gamma_fops_poll;
dev->fn_tbl.preinit = gamma_driver_preinit; dev->fn_tbl.preinit = gamma_driver_preinit;
......
...@@ -56,3 +56,4 @@ ...@@ -56,3 +56,4 @@
#include "drm_proc.h" #include "drm_proc.h"
#include "drm_vm.h" #include "drm_vm.h"
#include "drm_stub.h" #include "drm_stub.h"
#include "drm_scatter.h"
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
/* General customization: /* General customization:
*/ */
#define __HAVE_CTX_BITMAP 1
#define DRIVER_AUTHOR "VA Linux Systems Inc." #define DRIVER_AUTHOR "VA Linux Systems Inc."
......
...@@ -53,3 +53,4 @@ ...@@ -53,3 +53,4 @@
#include "drm_proc.h" #include "drm_proc.h"
#include "drm_vm.h" #include "drm_vm.h"
#include "drm_stub.h" #include "drm_stub.h"
#include "drm_scatter.h"
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
/* General customization: /* General customization:
*/ */
#define __HAVE_CTX_BITMAP 1
#define DRIVER_AUTHOR "VA Linux Systems Inc." #define DRIVER_AUTHOR "VA Linux Systems Inc."
......
...@@ -56,3 +56,4 @@ ...@@ -56,3 +56,4 @@
#include "drm_proc.h" #include "drm_proc.h"
#include "drm_vm.h" #include "drm_vm.h"
#include "drm_stub.h" #include "drm_stub.h"
#include "drm_scatter.h"
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
/* General customization: /* General customization:
*/ */
#define __HAVE_CTX_BITMAP 1
#define DRIVER_AUTHOR "Tungsten Graphics, Inc." #define DRIVER_AUTHOR "Tungsten Graphics, Inc."
......
...@@ -29,3 +29,4 @@ ...@@ -29,3 +29,4 @@
#include "drm_proc.h" #include "drm_proc.h"
#include "drm_vm.h" #include "drm_vm.h"
#include "drm_stub.h" #include "drm_stub.h"
#include "drm_scatter.h"
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
/* General customization: /* General customization:
*/ */
#define __HAVE_CTX_BITMAP 1
#define DRIVER_AUTHOR "Gareth Hughes, VA Linux Systems Inc." #define DRIVER_AUTHOR "Gareth Hughes, VA Linux Systems Inc."
......
...@@ -51,3 +51,4 @@ ...@@ -51,3 +51,4 @@
#include "drm_proc.h" #include "drm_proc.h"
#include "drm_vm.h" #include "drm_vm.h"
#include "drm_stub.h" #include "drm_stub.h"
#include "drm_scatter.h"
...@@ -36,10 +36,6 @@ ...@@ -36,10 +36,6 @@
/* General customization: /* General customization:
*/ */
#define __HAVE_CTX_BITMAP 1
#define __HAVE_SG 1
#define __HAVE_PCI_DMA 1
#define DRIVER_AUTHOR "Gareth Hughes, VA Linux Systems Inc." #define DRIVER_AUTHOR "Gareth Hughes, VA Linux Systems Inc."
#define DRIVER_NAME "r128" #define DRIVER_NAME "r128"
......
...@@ -1712,7 +1712,7 @@ static void r128_driver_pretakedown(drm_device_t *dev) ...@@ -1712,7 +1712,7 @@ static void r128_driver_pretakedown(drm_device_t *dev)
void r128_driver_register_fns(drm_device_t *dev) void r128_driver_register_fns(drm_device_t *dev)
{ {
dev->driver_features = DRIVER_USE_AGP | DRIVER_USE_MTRR; dev->driver_features = DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_PCI_DMA | DRIVER_SG;
dev->dev_priv_size = sizeof(drm_r128_buf_priv_t); dev->dev_priv_size = sizeof(drm_r128_buf_priv_t);
dev->fn_tbl.prerelease = r128_driver_prerelease; dev->fn_tbl.prerelease = r128_driver_prerelease;
dev->fn_tbl.pretakedown = r128_driver_pretakedown; dev->fn_tbl.pretakedown = r128_driver_pretakedown;
......
...@@ -37,9 +37,6 @@ ...@@ -37,9 +37,6 @@
/* General customization: /* General customization:
*/ */
#define __HAVE_CTX_BITMAP 1
#define __HAVE_SG 1
#define __HAVE_PCI_DMA 1
#define DRIVER_AUTHOR "Gareth Hughes, Keith Whitwell, others." #define DRIVER_AUTHOR "Gareth Hughes, Keith Whitwell, others."
......
...@@ -2582,7 +2582,7 @@ static void radeon_driver_open_helper(drm_device_t *dev, drm_file_t *filp_priv) ...@@ -2582,7 +2582,7 @@ static void radeon_driver_open_helper(drm_device_t *dev, drm_file_t *filp_priv)
void radeon_driver_register_fns(struct drm_device *dev) void radeon_driver_register_fns(struct drm_device *dev)
{ {
dev->driver_features = DRIVER_USE_AGP | DRIVER_USE_MTRR; dev->driver_features = DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_PCI_DMA | DRIVER_SG;
dev->dev_priv_size = sizeof(drm_radeon_buf_priv_t); dev->dev_priv_size = sizeof(drm_radeon_buf_priv_t);
dev->fn_tbl.prerelease = radeon_driver_prerelease; dev->fn_tbl.prerelease = radeon_driver_prerelease;
dev->fn_tbl.pretakedown = radeon_driver_pretakedown; dev->fn_tbl.pretakedown = radeon_driver_pretakedown;
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
/* General customization: /* General customization:
*/ */
#define __HAVE_CTX_BITMAP 1
#define DRIVER_AUTHOR "SIS" #define DRIVER_AUTHOR "SIS"
#define DRIVER_NAME "sis" #define DRIVER_NAME "sis"
......
...@@ -46,4 +46,5 @@ ...@@ -46,4 +46,5 @@
#include "drm_proc.h" #include "drm_proc.h"
#include "drm_vm.h" #include "drm_vm.h"
#include "drm_stub.h" #include "drm_stub.h"
#include "drm_scatter.h"
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
/* General customization: /* General customization:
*/ */
#define __HAVE_CTX_BITMAP 1
#define DRIVER_AUTHOR "VA Linux Systems Inc." #define DRIVER_AUTHOR "VA Linux Systems Inc."
......
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
#include "drm_proc.h" #include "drm_proc.h"
#include "drm_vm.h" #include "drm_vm.h"
#include "drm_stub.h" #include "drm_stub.h"
#include "drm_scatter.h"
void DRM(driver_register_fns)(drm_device_t *dev) void DRM(driver_register_fns)(drm_device_t *dev)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment