X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Charles Sandmann Newsgroups: comp.os.msdos.djgpp Subject: Re: Sample code for DMA buffer allocation via XMS? Date: Thu, 27 Oct 2005 23:23:51 CDT Organization: Rice University, Houston, TX Lines: 7 Message-ID: <4361a7d7.sandmann@clio.rice.edu> References: <4360ac62$1_1 AT news DOT ecore DOT net> NNTP-Posting-Host: clio.rice.edu X-Trace: joe.rice.edu 1130474562 116 128.42.105.3 (28 Oct 2005 04:42:42 GMT) X-Complaints-To: abuse AT rice DOT edu NNTP-Posting-Date: Fri, 28 Oct 2005 04:42:42 +0000 (UTC) X-NewsEditor: ED-1.5.9 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > I need to allocate DMA buffers from within a DJGPP application. This depends on the environment you are using. Under PMODE without VCPI, you have 1:1 mapping on any malloc() memory. Under CWSDPMI you can use the the example files in http://clio.rice.edu/djgpp/cwsdma2.zip (or older cwsdma.zip in same place) as an example to map the memory.