drm: Move dma functions into drm_legacy.h