Mail Archives: djgpp/1997/11/14/01:40:05
At 04:03 11/14/1997 +0900, CLEE wrote:
>Hi,
>I want to use DMA data transfer.
>I am testing the code of network device driver.
>But, I don't know how to use DMA. So I can't use DMA transfer.
>In DOS environment, how can I use DMA?
DMA is a fairly difficult beast. I believe (having never tried) that the
appropriate steps are:
* Get a buffer in the low 1M of memory.
* Feed its address to the DMA controller, some port.
* Usually you need a hardware interrupt handler to refill the buffer when
it's finished.
>
>Do you know available funtions?
There's no DMA facilities built in. The only source I can think of is
Allegro, which uses DMA for sound. There are probably tutorials out there
somewhere, too.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -