changes to allow compilation of dmaManager.c and portal.c by kernel
first draft of changes to allow simple_manual to run in kernel