Hi all, Motivated by some irc discussions and a quick patch from Dave I've decided to clean up drmP.h. This series creates two new header files: - "drm_internal.h" for stuff private to drm.ko - <drm/drm_legacy.h> for declaratations which are only used by non-kms legacy drivers. Result is a net reduction of drmP.h by almost 300 lines. It now resembles a sane-ish header a lot more. This is on top of the drm_irq module option patche I've submitted already. And I like Dave's patch for ati_pcigart stuff better, so will rebase the series and drop mine once it has landed in drm-next. To squeeze this into 3.18 I'll send a pull request later this week (since -rc5 will happen likely this w/e). Comments highly welcome. Thanks, Daniel Daniel Vetter (15): drm: Move dma functions into drm_legacy.h drm: Move sg functions into drm_legacy.h drm: Move drm_legacy_vma_flush into drm_legacy.h drm: Create drm legacy driver header drm: Move ati pci gart into <drm/drm_legacy.h> drm: Move __drm_pci_free to drm_legacy.c drm: Drop drm_sysfs_class from drmP.h drm: Move piles of functions from drmP.h to drm_internal.h drm: unexport drm_global_mutex drm: Purge ioctl forward declarations from drmP.h drm: Move drm_memory.c map support declarations to <drm/drm_legacy.h> drm: Move legacy buffer structures to <drm/drm_legacy.h> drm: Move LOCK_TEST_WITH_RETURN to <drm/drm_legacy.h> drm: Move drm_class to drm_internal.h drm: Move DRM_MAGIC_HASH_ORDER into drm_drv.c drivers/gpu/drm/ati_pcigart.c | 1 + drivers/gpu/drm/drm_auth.c | 1 + drivers/gpu/drm/drm_bufs.c | 4 +- drivers/gpu/drm/drm_crtc.c | 1 + drivers/gpu/drm/drm_debugfs.c | 1 + drivers/gpu/drm/drm_dma.c | 11 +- drivers/gpu/drm/drm_drv.c | 3 + drivers/gpu/drm/drm_fops.c | 4 +- drivers/gpu/drm/drm_gem.c | 1 + drivers/gpu/drm/drm_info.c | 1 + drivers/gpu/drm/drm_internal.h | 71 ++++++++ drivers/gpu/drm/drm_ioctl.c | 230 +++++++++++++------------- drivers/gpu/drm/drm_legacy.h | 18 ++ drivers/gpu/drm/drm_lock.c | 1 + drivers/gpu/drm/drm_memory.c | 12 +- drivers/gpu/drm/drm_pci.c | 5 +- drivers/gpu/drm/drm_prime.c | 1 + drivers/gpu/drm/drm_scatter.c | 9 +- drivers/gpu/drm/drm_sysfs.c | 1 + drivers/gpu/drm/drm_vm.c | 2 +- drivers/gpu/drm/i810/i810_dma.c | 8 +- drivers/gpu/drm/i810/i810_drv.h | 2 + drivers/gpu/drm/i915/i915_dma.c | 1 + drivers/gpu/drm/i915/i915_drv.h | 9 +- drivers/gpu/drm/mga/mga_dma.c | 28 ++-- drivers/gpu/drm/mga/mga_drv.h | 2 + drivers/gpu/drm/mgag200/mgag200_drv.h | 2 - drivers/gpu/drm/r128/r128_cce.c | 22 +-- drivers/gpu/drm/r128/r128_drv.h | 2 + drivers/gpu/drm/radeon/r600_cp.c | 24 +-- drivers/gpu/drm/radeon/radeon_cp.c | 24 +-- drivers/gpu/drm/radeon/radeon_drv.h | 1 + drivers/gpu/drm/savage/savage_bci.c | 16 +- drivers/gpu/drm/savage/savage_drv.h | 2 + drivers/gpu/drm/sis/sis_drv.h | 2 + drivers/gpu/drm/via/via_dma.c | 4 +- drivers/gpu/drm/via/via_drv.h | 2 + drivers/gpu/drm/via/via_map.c | 4 +- drivers/gpu/drm/via/via_verifier.c | 1 + include/drm/drmP.h | 299 +--------------------------------- include/drm/drm_legacy.h | 226 +++++++++++++++++++++++++ 41 files changed, 561 insertions(+), 498 deletions(-) create mode 100644 include/drm/drm_legacy.h -- 1.9.3 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel