[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DMS-physical address problem



Hello out there,

I'm trying to implement a DMA transfer from our PCI card (with AMCC
chip) to the main memory of the PC.
The software will be developed with WATCOM C++ 10.6 and will run under
DOS4GW.

Until now I'm able to get a small area inside the first one MB of the
memory and for this area I have the linear and the physical address. The
allocation is done by using a DPMI interupt function.

Now I need a big piece of memory in the upper memory area. Does anyone
knows a way to get the physical address of a malloc()'ed area or does a
special function (instaed of malloc()) exist (maybe a hidden DPMI
function) ?

My prefered way is to get the physical address of a malloc'ed area. In
this case I need the corresponding physical address of the first linear
address of the area and the length. These infos are required to set up
the scatter/gather interrupt. I hope that there is someone on earth to
help me.

Many thanks in advance, 

Andreas Heiner


mailto:Andreas.Heiner@fr.bosch.de

Tel.: ++49 (5121) 49-3946
Fax.: ++49 (5121) 49-3910

----------------------------------------------------------------------
Andreas Heiner                    | Andreas Heiner
                                  |
Robert Bosch GmbH                 | Robert Bosch GmbH
                                  |
Abt.: FV/SLH-He                   | Dept.: FV/SLH-He
(Zentralbereich Forschung         | (Corporate Research and
 und Vorausentwicklung            |  Development Systems 2 /
 Systeme 2 / Leitsysteme          |  Guidance and Security
 und Sicherheitstechnik)          |  Systems)
                                  |
Robert-Bosch-Str. 200             | Robert-Bosch-Str. 200
                                  |
D-31139 Hildesheim                | D-31139 Hildesheim
                                  |
Deutschland                       | Germany
                                  |
----------------------------------------------------------------------


************************ End of mail *********************************
Ôô