Rename drm_lists.h to gamma_lists.h
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 22 Apr 2003 12:14:59 +0000 (12:14 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 22 Apr 2003 12:14:59 +0000 (12:14 +0000)
linux-core/drmP.h
linux-core/i810_drv.c
linux-core/i830_drv.c
linux-core/sis_drv.c
linux/drmP.h
linux/gamma_drv.c
linux/gamma_drv.h
linux/gamma_lists.h [moved from linux/drm_lists.h with 97% similarity]
linux/i810_drv.c
linux/i830_drv.c
linux/sis_drv.c

index 9fd4149..2cdc5f0 100644 (file)
@@ -833,20 +833,6 @@ extern void          DRM(dma_immediate_bh)( void *dev );
 #endif
 #endif
 
-                               /* Buffer list support (drm_lists.h) */
-#if __HAVE_DMA_WAITLIST
-extern int          DRM(waitlist_create)(drm_waitlist_t *bl, int count);
-extern int          DRM(waitlist_destroy)(drm_waitlist_t *bl);
-extern int          DRM(waitlist_put)(drm_waitlist_t *bl, drm_buf_t *buf);
-extern drm_buf_t     *DRM(waitlist_get)(drm_waitlist_t *bl);
-#endif
-#if __HAVE_DMA_FREELIST
-extern int          DRM(freelist_create)(drm_freelist_t *bl, int count);
-extern int          DRM(freelist_destroy)(drm_freelist_t *bl);
-extern int          DRM(freelist_put)(drm_device_t *dev, drm_freelist_t *bl,
-                                      drm_buf_t *buf);
-extern drm_buf_t     *DRM(freelist_get)(drm_freelist_t *bl, int block);
-#endif
 #endif /* __HAVE_DMA */
 
 #if __REALLY_HAVE_AGP
index 439d788..0bc7938 100644 (file)
@@ -49,7 +49,6 @@
 #include "drm_init.h"
 #include "drm_ioctl.h"
 #include "drm_lock.h"
-#include "drm_lists.h"
 #include "drm_memory.h"
 #include "drm_proc.h"
 #include "drm_vm.h"
index d9a659a..0735c94 100644 (file)
@@ -51,7 +51,6 @@
 #include "drm_init.h"
 #include "drm_ioctl.h"
 #include "drm_lock.h"
-#include "drm_lists.h"
 #include "drm_memory.h"
 #include "drm_proc.h"
 #include "drm_vm.h"
index 0c917bd..3dd075d 100644 (file)
@@ -41,7 +41,6 @@
 #include "drm_fops.h"
 #include "drm_init.h"
 #include "drm_ioctl.h"
-#include "drm_lists.h"
 #include "drm_lock.h"
 #include "drm_memory.h"
 #include "drm_proc.h"
index 9fd4149..2cdc5f0 100644 (file)
@@ -833,20 +833,6 @@ extern void          DRM(dma_immediate_bh)( void *dev );
 #endif
 #endif
 
-                               /* Buffer list support (drm_lists.h) */
-#if __HAVE_DMA_WAITLIST
-extern int          DRM(waitlist_create)(drm_waitlist_t *bl, int count);
-extern int          DRM(waitlist_destroy)(drm_waitlist_t *bl);
-extern int          DRM(waitlist_put)(drm_waitlist_t *bl, drm_buf_t *buf);
-extern drm_buf_t     *DRM(waitlist_get)(drm_waitlist_t *bl);
-#endif
-#if __HAVE_DMA_FREELIST
-extern int          DRM(freelist_create)(drm_freelist_t *bl, int count);
-extern int          DRM(freelist_destroy)(drm_freelist_t *bl);
-extern int          DRM(freelist_put)(drm_device_t *dev, drm_freelist_t *bl,
-                                      drm_buf_t *buf);
-extern drm_buf_t     *DRM(freelist_get)(drm_freelist_t *bl, int block);
-#endif
 #endif /* __HAVE_DMA */
 
 #if __REALLY_HAVE_AGP
index 32b12e0..f1b8b20 100644 (file)
@@ -48,7 +48,7 @@
 #include "drm_fops.h"
 #include "drm_init.h"
 #include "drm_ioctl.h"
-#include "drm_lists.h"
+#include "gamma_lists.h"        /* NOTE */
 #include "drm_lock.h"
 #include "gamma_lock.h"                /* NOTE */
 #include "drm_memory.h"
index 2509ffb..36affa6 100644 (file)
@@ -68,6 +68,19 @@ extern int        DRM(dma_enqueue)(struct file *filp, drm_dma_t *dma);
 extern int          DRM(dma_get_buffers)(struct file *filp, drm_dma_t *dma);
 
 
+/* Gamma-specific code pulled from drm_lists.h (now renamed gamma_lists.h):
+ */
+extern int          DRM(waitlist_create)(drm_waitlist_t *bl, int count);
+extern int          DRM(waitlist_destroy)(drm_waitlist_t *bl);
+extern int          DRM(waitlist_put)(drm_waitlist_t *bl, drm_buf_t *buf);
+extern drm_buf_t     *DRM(waitlist_get)(drm_waitlist_t *bl);
+extern int          DRM(freelist_create)(drm_freelist_t *bl, int count);
+extern int          DRM(freelist_destroy)(drm_freelist_t *bl);
+extern int          DRM(freelist_put)(drm_device_t *dev, drm_freelist_t *bl,
+                                      drm_buf_t *buf);
+extern drm_buf_t     *DRM(freelist_get)(drm_freelist_t *bl, int block);
+
+
 
 #define GLINT_DRI_BUF_COUNT 256
 
similarity index 97%
rename from linux/drm_lists.h
rename to linux/gamma_lists.h
index 09b6289..cfb0778 100644 (file)
@@ -32,7 +32,6 @@
 #define __NO_VERSION__
 #include "drmP.h"
 
-#if __HAVE_DMA_WAITLIST
 
 int DRM(waitlist_create)(drm_waitlist_t *bl, int count)
 {
@@ -104,11 +103,6 @@ drm_buf_t *DRM(waitlist_get)(drm_waitlist_t *bl)
        return buf;
 }
 
-#endif /* __HAVE_DMA_WAITLIST */
-
-
-#if __HAVE_DMA_FREELIST
-
 int DRM(freelist_create)(drm_freelist_t *bl, int count)
 {
        atomic_set(&bl->count, 0);
@@ -220,4 +214,3 @@ drm_buf_t *DRM(freelist_get)(drm_freelist_t *bl, int block)
        return DRM(freelist_try)(bl);
 }
 
-#endif /* __HAVE_DMA_FREELIST */
index 439d788..0bc7938 100644 (file)
@@ -49,7 +49,6 @@
 #include "drm_init.h"
 #include "drm_ioctl.h"
 #include "drm_lock.h"
-#include "drm_lists.h"
 #include "drm_memory.h"
 #include "drm_proc.h"
 #include "drm_vm.h"
index d9a659a..0735c94 100644 (file)
@@ -51,7 +51,6 @@
 #include "drm_init.h"
 #include "drm_ioctl.h"
 #include "drm_lock.h"
-#include "drm_lists.h"
 #include "drm_memory.h"
 #include "drm_proc.h"
 #include "drm_vm.h"
index 0c917bd..3dd075d 100644 (file)
@@ -41,7 +41,6 @@
 #include "drm_fops.h"
 #include "drm_init.h"
 #include "drm_ioctl.h"
-#include "drm_lists.h"
 #include "drm_lock.h"
 #include "drm_memory.h"
 #include "drm_proc.h"