add function to generate DMA descriptors