ide: add ide_dma_prepare() helper