ApuMapVirtualAddress

Returns the APU physical address associated with the virtual address.

Syntax

APU_ADDRESS ApuMapVirtualAddress(
         const void *virtualAddress
)  

Parameters

virtualAddress
Type: void *

[in] The virtual address to map. This address must reside within a buffer allocated by ApuAlloc.

Return value

Type: APU_ADDRESS 

If the method succeeds, it returns the physical address. This method will return 0 if the virtual address is invalid, or was not allocated with ApuAlloc.

Requirements

Header: Declared in apu.h.

Library: Use acphal.lib.