PM_mapPhysicalAddr
Map a physical address to a linear address in the callers process.
Declaration
void * PMAPI PM_mapPhysicalAddr(
ulong base,
ulong limit,
ibool isCached)
Prototype In
pmapi.h
Parameters
base |
Physical base address of the memory to map |
limit |
Limit for the mapped memory region (length-1) |
isCached |
True if the memory should be cached, false if not |
Return Value
Pointer to the mapped memory, false on failure.
Description
This function is used to obtain a pointer to the any physical memory location in the computer, mapped into the linear address space of the calling process. If the isCached parameter is set to true, caching will be enabled for this region. If this parameter is off, caching will be disabled. Caching must always be disabled when accessing memory mapped registers, as they cannot be cached. Note that this does not enable write combing for the region; for that you need to call the PM_enableWriteCombine function (however caching must be enabled before the write combining will work!).
See Also
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com