/* Convert Memory and Peripheral to source and destination.  */
unsigned long DMAPTOM(unsigned long ulControl)
/* Convert Memory and Peripheral to source and destination.  */
unsigned long DMAPTOM(unsigned long ulControl)
{
    unsigned long ulTemp;
    ulTemp = ulControl & 0xFFFFF03F;
    ulTemp |= ((ulControl & 0x300) << 2);
    ulTemp |= ((ulControl & 0x040) << 1);
    ulTemp |= ((ulControl & 0xC00) >> 2);
    ulTemp |= ((ulControl & 0x080) >> 1);
    return ulTemp;
}