delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/03/20:15:49

From: satoh AT asd DOT tnes DOT nec DOT co DOT jp
Message-Id: <199711040117.KAA11803@asd.tnes.nec.co.jp>
MIME-Version: 1.0
Date: Tue, 04 Nov 1997 10:11:33 +0900
To: djgpp AT delorie DOT com
Subject: DMA transfer

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019