MmGetPhysicalAddress WDM

Hi,

Does someone know a simple way to replace these functions :

MmGetPhysicalAddress()
MmAllocateContiguousMemory()
MmFreeContiguousMemory()

from NT4.0 DDK, by WDM functions ?

R?my


Get your free email from AltaVista at http://altavista.iname.com

> MmGetPhysicalAddress()

What is the need of physical address for you? In 95% of cases, this need
is for DMA. Use IoMapTransfer or adapter object methods for this in WDM.
If you need this for some specific case, dig manually in the MDL tail (note
that
this will require updates for 64bit NT).

MmAllocateContiguousMemory()
MmFreeContiguousMemory()

HalAllocateCommonBuffer (or AllocateCommonBuffer adapter object
method) is a rough equivalent and is in WDM.

Max