Date: Thu, 13 Nov 1997 22:37:43 -0800 (PST) Message-Id: <199711140637.WAA20709@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: "CLEE" , djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: DMA programming in DOS Precedence: bulk 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