Date: Wed, 5 Jun 1996 09:10:59 +0200 (IST) From: Eli Zaretskii To: Bryanston School Cc: DJGPP Subject: Re: Accessing physical memory In-Reply-To: <000000244892916766384@bryanston.co.uk> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 4 Jun 1996, Bryanston School wrote: > >> Is there a way to access physical memory at a specified address without > >> using farptrs or Fat DS? > > > >What's wrong with these two methods? Without knowing what is it that you > >are looking for, it is hard to advise you about other ways. > > > > farptrs: I could use these, but I would prefer to just use > pointers. > > I have a PCI video capture board which uses physical memory > to store the data - can I just allocate a buffer in memory > using malloc(), then map the card into this? Will this work, > or will the memory allocated be shuffled around? If what you need is to access a buffer of captured data, you can use `dosmemget' or `movedata' library functions to move the data from the board to a buffer allocated with `malloc', then access that buffer as usual. This should be faster than if you were to access the board repeatedly, even if you did map it into your address space, because every access gets slowed down by the slow bus operation.