From: damon AT WRONG DOT redshift DOT com (Damon Casale) Newsgroups: comp.os.msdos.djgpp Subject: Re: Using DMA for hard disk access? Date: Fri, 02 Mar 2001 16:39:24 GMT Organization: Posted via Supernews, http://www.supernews.com Message-ID: <3a9fcc5b.817126705@news.redshift.com> References: <3a9e955b DOT 2750392 AT news DOT redshift DOT com> <3405-Thu01Mar2001215625+0200-eliz AT is DOT elta DOT co DOT il> <3a9ebeb5 DOT 501470 AT news DOT redshift DOT com> <2427-Fri02Mar2001125426+0200-eliz AT is DOT elta DOT co DOT il> X-Newsreader: Forte Free Agent 1.11/32.235 X-Complaints-To: newsabuse AT supernews DOT com Lines: 34 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Fri, 02 Mar 2001 12:54:26 +0200, "Eli Zaretskii" wrote: >> >Keep in mind that while DMA moves data from the disk to memory or >> >back, the system bus is not available. Therefore, you will have bus >> >contention with any other device that goes through the bus. VGA, for >> >example. >> >> Would plain memory access (regardless of what it is) be going through >> the same bus? > >It depends. On most modern motherboards, the main memory doesn't go >through the system bus, AFAIK. Hmm! Interesting. >> >> I'm not entirely sure how to tell the hard drive what sectors I want >> >> to read or write, but I _think_ I know how to use the DMA I/O ports. >> >> Where would I look for more detailed info on this? >> > >> >In case you didn't see it, the DJGPP FAQ has something about using DMA >> >in section 18.13. >> >> Yup, saw that already. Thanks tho. :-) > >You should probably study some good book about DMA programming in >conjunction with PC and disk I/O. The Undocumented PC is one of my >favorites. Just ordered that one from Amazon.com. Thanks for the tip, tho. ^_- Damon Casale, damon AT WRONG DOT redshift DOT com (remove the obvious) Did the memory forget to take the bus? ;-)