diff options
author | Dave Airlie <airlied@redhat.com> | 2008-05-29 10:09:59 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-07-14 10:45:01 +1000 |
commit | c0e09200dc0813972442e550a5905a132768e56c (patch) | |
tree | d38e635a30ff8b0a2b98b9d7f97cab1501f8209e | |
parent | bce7f793daec3e65ec5c5705d2457b81fe7b5725 (diff) |
drm: reorganise drm tree to be more future proof.
With the coming of kernel based modesetting and the memory manager stuff,
the everything in one directory approach was getting very ugly and
starting to be unmanageable.
This restructures the drm along the lines of other kernel components.
It creates a drivers/gpu/drm directory and moves the hw drivers into
subdirectores. It moves the includes into an include/drm, and
sets up the unifdef for the userspace headers we should be exporting.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/Makefile | 1 | ||||
-rw-r--r-- | drivers/char/Makefile | 1 | ||||
-rw-r--r-- | drivers/char/drm/Makefile | 40 | ||||
-rw-r--r-- | drivers/gpu/Makefile | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/Kconfig (renamed from drivers/char/drm/Kconfig) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/Makefile | 26 | ||||
-rw-r--r-- | drivers/gpu/drm/README.drm (renamed from drivers/char/drm/README.drm) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/ati_pcigart.c (renamed from drivers/char/drm/ati_pcigart.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_agpsupport.c (renamed from drivers/char/drm/drm_agpsupport.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_auth.c (renamed from drivers/char/drm/drm_auth.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_bufs.c (renamed from drivers/char/drm/drm_bufs.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_context.c (renamed from drivers/char/drm/drm_context.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_dma.c (renamed from drivers/char/drm/drm_dma.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_drawable.c (renamed from drivers/char/drm/drm_drawable.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_drv.c (renamed from drivers/char/drm/drm_drv.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_fops.c (renamed from drivers/char/drm/drm_fops.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_hashtab.c (renamed from drivers/char/drm/drm_hashtab.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_ioc32.c (renamed from drivers/char/drm/drm_ioc32.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_ioctl.c (renamed from drivers/char/drm/drm_ioctl.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_irq.c (renamed from drivers/char/drm/drm_irq.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_lock.c (renamed from drivers/char/drm/drm_lock.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_memory.c (renamed from drivers/char/drm/drm_memory.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_mm.c (renamed from drivers/char/drm/drm_mm.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_pci.c (renamed from drivers/char/drm/drm_pci.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_proc.c (renamed from drivers/char/drm/drm_proc.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_scatter.c (renamed from drivers/char/drm/drm_scatter.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_sman.c (renamed from drivers/char/drm/drm_sman.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_stub.c (renamed from drivers/char/drm/drm_stub.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_sysfs.c (renamed from drivers/char/drm/drm_sysfs.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_vm.c (renamed from drivers/char/drm/drm_vm.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/i810/Makefile | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/i810/i810_dma.c (renamed from drivers/char/drm/i810_dma.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/i810/i810_drv.c (renamed from drivers/char/drm/i810_drv.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/i810/i810_drv.h (renamed from drivers/char/drm/i810_drv.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/i830/Makefile | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/i830/i830_dma.c (renamed from drivers/char/drm/i830_dma.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/i830/i830_drv.c (renamed from drivers/char/drm/i830_drv.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/i830/i830_drv.h (renamed from drivers/char/drm/i830_drv.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/i830/i830_irq.c (renamed from drivers/char/drm/i830_irq.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/Makefile | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c (renamed from drivers/char/drm/i915_dma.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c (renamed from drivers/char/drm/i915_drv.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h (renamed from drivers/char/drm/i915_drv.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_ioc32.c (renamed from drivers/char/drm/i915_ioc32.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_irq.c (renamed from drivers/char/drm/i915_irq.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_mem.c (renamed from drivers/char/drm/i915_mem.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/mga/Makefile | 11 | ||||
-rw-r--r-- | drivers/gpu/drm/mga/mga_dma.c (renamed from drivers/char/drm/mga_dma.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/mga/mga_drv.c (renamed from drivers/char/drm/mga_drv.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/mga/mga_drv.h (renamed from drivers/char/drm/mga_drv.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/mga/mga_ioc32.c (renamed from drivers/char/drm/mga_ioc32.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/mga/mga_irq.c (renamed from drivers/char/drm/mga_irq.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/mga/mga_state.c (renamed from drivers/char/drm/mga_state.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/mga/mga_ucode.h (renamed from drivers/char/drm/mga_ucode.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/mga/mga_warp.c (renamed from drivers/char/drm/mga_warp.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/r128/Makefile | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/r128/r128_cce.c (renamed from drivers/char/drm/r128_cce.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/r128/r128_drv.c (renamed from drivers/char/drm/r128_drv.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/r128/r128_drv.h (renamed from drivers/char/drm/r128_drv.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/r128/r128_ioc32.c (renamed from drivers/char/drm/r128_ioc32.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/r128/r128_irq.c (renamed from drivers/char/drm/r128_irq.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/r128/r128_state.c (renamed from drivers/char/drm/r128_state.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/Makefile | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/r300_cmdbuf.c (renamed from drivers/char/drm/r300_cmdbuf.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/r300_reg.h (renamed from drivers/char/drm/r300_reg.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_cp.c (renamed from drivers/char/drm/radeon_cp.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_drv.c (renamed from drivers/char/drm/radeon_drv.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_drv.h (renamed from drivers/char/drm/radeon_drv.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_ioc32.c (renamed from drivers/char/drm/radeon_ioc32.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_irq.c (renamed from drivers/char/drm/radeon_irq.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_mem.c (renamed from drivers/char/drm/radeon_mem.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_microcode.h (renamed from drivers/char/drm/radeon_microcode.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_state.c (renamed from drivers/char/drm/radeon_state.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/savage/Makefile | 9 | ||||
-rw-r--r-- | drivers/gpu/drm/savage/savage_bci.c (renamed from drivers/char/drm/savage_bci.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/savage/savage_drv.c (renamed from drivers/char/drm/savage_drv.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/savage/savage_drv.h (renamed from drivers/char/drm/savage_drv.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/savage/savage_state.c (renamed from drivers/char/drm/savage_state.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/sis/Makefile | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/sis/sis_drv.c (renamed from drivers/char/drm/sis_drv.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/sis/sis_drv.h (renamed from drivers/char/drm/sis_drv.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/sis/sis_mm.c (renamed from drivers/char/drm/sis_mm.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/tdfx/Makefile | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/tdfx/tdfx_drv.c (renamed from drivers/char/drm/tdfx_drv.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/tdfx/tdfx_drv.h (renamed from drivers/char/drm/tdfx_drv.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/via/Makefile | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/via/via_3d_reg.h (renamed from drivers/char/drm/via_3d_reg.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/via/via_dma.c (renamed from drivers/char/drm/via_dma.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/via/via_dmablit.c (renamed from drivers/char/drm/via_dmablit.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/via/via_dmablit.h (renamed from drivers/char/drm/via_dmablit.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/via/via_drv.c (renamed from drivers/char/drm/via_drv.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/via/via_drv.h (renamed from drivers/char/drm/via_drv.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/via/via_irq.c (renamed from drivers/char/drm/via_irq.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/via/via_map.c (renamed from drivers/char/drm/via_map.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/via/via_mm.c (renamed from drivers/char/drm/via_mm.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/via/via_verifier.c (renamed from drivers/char/drm/via_verifier.c) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/via/via_verifier.h (renamed from drivers/char/drm/via_verifier.h) | 0 | ||||
-rw-r--r-- | drivers/gpu/drm/via/via_video.c (renamed from drivers/char/drm/via_video.c) | 0 | ||||
-rw-r--r-- | drivers/video/Kconfig | 2 | ||||
-rw-r--r-- | include/Kbuild | 1 | ||||
-rw-r--r-- | include/drm/Kbuild | 10 | ||||
-rw-r--r-- | include/drm/drm.h (renamed from drivers/char/drm/drm.h) | 0 | ||||
-rw-r--r-- | include/drm/drmP.h (renamed from drivers/char/drm/drmP.h) | 0 | ||||
-rw-r--r-- | include/drm/drm_core.h (renamed from drivers/char/drm/drm_core.h) | 0 | ||||
-rw-r--r-- | include/drm/drm_hashtab.h (renamed from drivers/char/drm/drm_hashtab.h) | 0 | ||||
-rw-r--r-- | include/drm/drm_memory.h (renamed from drivers/char/drm/drm_memory.h) | 0 | ||||
-rw-r--r-- | include/drm/drm_memory_debug.h (renamed from drivers/char/drm/drm_memory_debug.h) | 0 | ||||
-rw-r--r-- | include/drm/drm_os_linux.h (renamed from drivers/char/drm/drm_os_linux.h) | 0 | ||||
-rw-r--r-- | include/drm/drm_pciids.h (renamed from drivers/char/drm/drm_pciids.h) | 0 | ||||
-rw-r--r-- | include/drm/drm_sarea.h (renamed from drivers/char/drm/drm_sarea.h) | 0 | ||||
-rw-r--r-- | include/drm/drm_sman.h (renamed from drivers/char/drm/drm_sman.h) | 0 | ||||
-rw-r--r-- | include/drm/i810_drm.h (renamed from drivers/char/drm/i810_drm.h) | 0 | ||||
-rw-r--r-- | include/drm/i830_drm.h (renamed from drivers/char/drm/i830_drm.h) | 0 | ||||
-rw-r--r-- | include/drm/i915_drm.h (renamed from drivers/char/drm/i915_drm.h) | 0 | ||||
-rw-r--r-- | include/drm/mga_drm.h (renamed from drivers/char/drm/mga_drm.h) | 0 | ||||
-rw-r--r-- | include/drm/r128_drm.h (renamed from drivers/char/drm/r128_drm.h) | 0 | ||||
-rw-r--r-- | include/drm/radeon_drm.h (renamed from drivers/char/drm/radeon_drm.h) | 0 | ||||
-rw-r--r-- | include/drm/savage_drm.h (renamed from drivers/char/drm/savage_drm.h) | 0 | ||||
-rw-r--r-- | include/drm/sis_drm.h (renamed from drivers/char/drm/sis_drm.h) | 0 | ||||
-rw-r--r-- | include/drm/via_drm.h (renamed from drivers/char/drm/via_drm.h) | 0 |
120 files changed, 132 insertions, 42 deletions
diff --git a/drivers/Makefile b/drivers/Makefile index f65deda72d6..fda44679dff 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -10,6 +10,7 @@ obj-$(CONFIG_PCI) += pci/ obj-$(CONFIG_PARISC) += parisc/ obj-$(CONFIG_RAPIDIO) += rapidio/ obj-y += video/ +obj-y += gpu/ obj-$(CONFIG_ACPI) += acpi/ # PnP must come after ACPI since it will eventually need to check if acpi # was used and do nothing if so diff --git a/drivers/char/Makefile b/drivers/char/Makefile index 4c1c584e9eb..81630a68475 100644 --- a/drivers/char/Makefile +++ b/drivers/char/Makefile @@ -101,7 +101,6 @@ obj-$(CONFIG_TELCLOCK) += tlclk.o obj-$(CONFIG_MWAVE) += mwave/ obj-$(CONFIG_AGP) += agp/ -obj-$(CONFIG_DRM) += drm/ obj-$(CONFIG_PCMCIA) += pcmcia/ obj-$(CONFIG_IPMI_HANDLER) += ipmi/ diff --git a/drivers/char/drm/Makefile b/drivers/char/drm/Makefile deleted file mode 100644 index 1283ded88ea..00000000000 --- a/drivers/char/drm/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -# -# Makefile for the drm device driver. This driver provides support for the -# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. - -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_agpsupport.o drm_scatter.o ati_pcigart.o drm_pci.o \ - drm_sysfs.o drm_hashtab.o drm_sman.o drm_mm.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 -i810-objs := i810_drv.o i810_dma.o -i830-objs := i830_drv.o i830_dma.o i830_irq.o -i915-objs := i915_drv.o i915_dma.o i915_irq.o i915_mem.o -radeon-objs := radeon_drv.o radeon_cp.o radeon_state.o radeon_mem.o radeon_irq.o r300_cmdbuf.o -sis-objs := sis_drv.o sis_mm.o -savage-objs := savage_drv.o savage_bci.o savage_state.o -via-objs := via_irq.o via_drv.o via_map.o via_mm.o via_dma.o via_verifier.o via_video.o via_dmablit.o - -ifeq ($(CONFIG_COMPAT),y) -drm-objs += drm_ioc32.o -radeon-objs += radeon_ioc32.o -mga-objs += mga_ioc32.o -r128-objs += r128_ioc32.o -i915-objs += i915_ioc32.o |