Mail Archives: djgpp/1997/11/04/12:31:54
satoh AT asd DOT tnes DOT nec DOT co DOT jp wrote:
>
> Hello all,
>
> I'm writing a NIC board driver using gcc compiler (DJGPP V2).
> I allocate memory on PC's memory using malloc() function and
> I have to set the physical address to register of the board.
> ( This board performs PCI bus master device.)
> But malloc() function returns virtual memory address, and I
> have no idea to translate malloc'ed virtual memory address into
> physical address.
>
> Does anyone know how to allocate DMAable large memory on PC
> and translate the virtual memory address into physiacal address.
On
ftp://x2ftp.oulu.fi/pub/msdos/programming/djgpp2/
I saw something about doing DMA with a soundblaster, IIRC
it was in gccfaq10.zip, but I might be wrong.
It explained the methods quite good and had an example of
programming a soundblaster.
--
Ciao
Tom
*************************************************************
* Thomas Demmer *
* Lehrstuhl fuer Stroemungsmechanik *
* Ruhr-Uni-Bochum *
* Universitaetsstr. 150 *
* D-44780 Bochum *
* Tel: +49 234 700 6434 *
* Fax: +49 234 709 4162 *
* http://www.lstm.ruhr-uni-bochum.de/~demmer *
*************************************************************
- Raw text -