Create dma.cpp

this is the user API.Have tested with M2M.