ScsiPortGetVirtualAddress

PVOID
    ScsiPortGetVirtualAddress(

        IN PVOID  HwDeviceExtension,
        IN SCSI_PHYSICAL_ADDRESS  PhysicalAddress
        );

ScsiPortGetVirtualAddress returns a physical address associated with a virtual address if the physical address was obtained by a call to ScsiPortGetPhysicalAddress.

Parameters

HwDeviceExtension
Points to the miniport driver’s per-HBA storage area.
PhysicalAddress
Specifies the physical address to be mapped. This value must have been returned by ScsiPortGetPhysicalAddress and must be from an uncached device extension or SRB extension.

Return Value

ScsiPortGetVirtualAddress returns a mapped pointer for the given input address. If the PhysicalAddress value is invalid, it returns NULL.

See Also

ScsiPortGetUncachedExtension, ScsiPortGetPhysicalAddress