- outb( cMASKPORT[channel], 0x04 | (channel & 0x3) ); // mask channel\r
- outb( cCLEARPORT[channel], 0x00 );\r
- outb( cMODEPORT[channel], (0x44 + (!read)*4) | (channel & 0x3) );\r
- outb( cADDRPORT[channel], LOWB(DMA_ADDRESS(channel)) ); // send address\r
- outb( cADDRPORT[channel], HIB(DMA_ADDRESS(channel)) ); // send address\r
- outb( cPAGEPORT[channel], HIW(DMA_ADDRESS(channel)) ); // send page\r
- outb( cCOUNTPORT[channel], LOWB(length) ); // send size\r
- outb( cCOUNTPORT[channel], HIB(length) ); // send size\r
- outb( cMASKPORT[channel], channel & 0x3 ); // unmask channel\r
- dma_addresses[channel] = (char*)DMA_ADDRESS(channel);\r
- dma_addresses[channel] += 0xC0000000;\r
+ outb( cMASKPORT[chan], 0x04 | (chan & 0x3) ); // mask channel\r
+ outb( cCLEARPORT[chan], 0x00 );\r
+ outb( cMODEPORT[chan], (0x44 + (!read)*4) | (chan & 0x3) );\r
+ outb( cADDRPORT[chan], LOWB(DMA_ADDRESS(chan)) ); // send address\r
+ outb( cADDRPORT[chan], HIB(DMA_ADDRESS(chan)) ); // send address\r
+ outb( cPAGEPORT[chan], HIW(DMA_ADDRESS(chan)) ); // send page\r
+ outb( cCOUNTPORT[chan], LOWB(length) ); // send size\r
+ outb( cCOUNTPORT[chan], HIB(length) ); // send size\r
+ outb( cMASKPORT[chan], chan & 0x3 ); // unmask channel\r
+ dma_addresses[chan] = (char*)DMA_ADDRESS(chan);\r
+ dma_addresses[chan] += KERNEL_BASE;\r