Create dma.cpp

user level API