From: Benny Newsgroups: comp.os.msdos.djgpp Subject: Re: Accessing PCI memory Date: 15 Jul 1997 02:06:25 GMT Organization: EuroNet Internet Lines: 25 Message-ID: <33CADBB5.B8188C78@euronet.beNOSPAM> References: <33CA3306 DOT 2F2E AT signal DOT dra DOT hmg DOT gb> NNTP-Posting-Host: dialwa016.ib.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Gordon Brown wrote: > > If I have a PCI board located in the PC memory space at 0x3d000000 how > do I access this memory using DJGPP. Maybe this way (it works for my PCI graphics card, don't know if it is ok though): #include main() { char *virtualscreen = malloc(1024*1024); // 1mb __djgpp_map_physical_memory(virtualscreen, 1024*1024, 0x3d000000); SetMode(0x13); memset(virtualscreen, 1, 320*200); // clear screen blue getch(); SetMode(3); } 'hope that helps... -- Benny.