delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/14/01:40:05

Date: Thu, 13 Nov 1997 22:37:43 -0800 (PST)
Message-Id: <199711140637.WAA20709@adit.ap.net>
Mime-Version: 1.0
To: "CLEE" <cylee AT cselab DOT snu DOT ac DOT kr>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: DMA programming in DOS

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019