Mail Archives: djgpp/1997/11/03/20:15:49
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.
----------------------------------------------------------
Masayuki Satoh NEC Software Tohoku, Ltd.
- Raw text -