Move ati_pcigart shared routines into drm-core module
authorJon Smirl <jonsmirl@yahoo.com>
Fri, 5 Nov 2004 17:29:14 +0000 (17:29 +0000)
committerJon Smirl <jonsmirl@yahoo.com>
Fri, 5 Nov 2004 17:29:14 +0000 (17:29 +0000)
linux-core/Makefile.kernel
linux-core/ati_pcigart.c
linux-core/r128_drv.c
linux-core/radeon_drv.c

index 5a21a73..e90c8fc 100644 (file)
@@ -11,7 +11,7 @@ drm-objs    := drm_auth.o drm_bufs.o drm_context.o drm_dma.o drm_drawable.o \
                drm_drv.o drm_fops.o drm_ioctl.o drm_irq.o \
                drm_lock.o drm_memory.o drm_proc.o drm_stub.o drm_vm.o \
                drm_sysfs.o drm_pci.o drm_agpsupport.o drm_scatter.o \
-               drm_sysfs.o drm_memory_debug.o
+               drm_sysfs.o drm_memory_debug.o ati_pcigart.o
 tdfx-objs   := tdfx_drv.o
 r128-objs   := r128_drv.o r128_cce.o r128_state.o r128_irq.o
 mga-objs    := mga_drv.o mga_dma.o mga_state.o mga_warp.o mga_irq.o
index 19d0359..66ca47c 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * \file ati_pcigart.h 
+ * \file ati_pcigart.h
  * ATI PCI GART support
  *
  * \author Gareth Hughes <gareth@valinux.com>
@@ -52,7 +52,7 @@
 # define ATI_MAX_PCIGART_PAGES         8192    /**< 32 MB aperture, 4K pages */
 # define ATI_PCIGART_PAGE_SIZE         4096    /**< PCI GART page size */
 
-static unsigned long drm_ati_alloc_pcigart_table(void)
+unsigned long drm_ati_alloc_pcigart_table(void)
 {
        unsigned long address;
        struct page *page;
@@ -167,6 +167,7 @@ int drm_ati_pcigart_init(drm_device_t * dev,
        *bus_addr = bus_address;
        return ret;
 }
+EXPORT_SYMBOL(drm_ati_pcigart_init);
 
 int drm_ati_pcigart_cleanup(drm_device_t * dev,
                            unsigned long addr, dma_addr_t bus_addr)
@@ -203,3 +204,5 @@ int drm_ati_pcigart_cleanup(drm_device_t * dev,
 
        return 1;
 }
+EXPORT_SYMBOL(drm_ati_pcigart_cleanup);
+
index 0a34625..2da872b 100644 (file)
@@ -34,7 +34,6 @@
 #include "drm.h"
 #include "r128_drm.h"
 #include "r128_drv.h"
-#include "ati_pcigart.h"
 
 #include "drm_pciids.h"
 
index fbf6b23..ed051a5 100644 (file)
@@ -34,7 +34,6 @@
 #include "drm.h"
 #include "radeon_drm.h"
 #include "radeon_drv.h"
-#include "ati_pcigart.h"
 
 #include "drm_pciids.h"