dma: Introduce dma_get_cfg() interface