StorPortConvertUlongToPhysicalAddress function (storport.h)

The StorPortConvertUlongToPhysicalAddress routine converts an unsigned long address into a physical address.

Syntax

STORPORT_API STOR_PHYSICAL_ADDRESS StorPortConvertUlongToPhysicalAddress(
  [in] ULONG_PTR UlongAddress
);

Parameters

[in] UlongAddress

Contains the address to be converted.

Return value

The StorPortConvertUlongToPhysicalAddress routine returns the physical address that corresponds to the unsigned long address that the caller passed in.

Remarks

StorPortConvertUlongToPhysicalAddress uses STOR_PHYSICAL_ADDRESS to represent physical addresses.

typedef PHYSICAL_ADDRESS STOR_PHYSICAL_ADDRESS, *PSTOR_PHYSICAL_ADDRESS;

The STOR_PHYSICAL_ADDRESS type is an operating system-independent data type that Storport miniport drivers use to represent either a physical addresses or a bus-relative address.

The StorPortConvertPhysicalAddressToULong64 macro converts a physical address to a ULONG64 value.

ULONG64 StorPortConvertPhysicalAddressToULong64(
  [in] STOR_PHYSICAL_ADDRESS Address
);

Term Description
Address [in] STOR_PHYSICAL_ADDRESS

Specifies an address value of type STOR_PHYSICAL_ADDRESS.

Return value ULONG64

StorPortConvertPhysicalAddressToULong64 returns a ULONG64 value derived from the physical address that was passed to it.

 

StorPortConvertPhysicalAddressToULong64 uses STOR_PHYSICAL_ADDRESS to represent physical addresses.

Requirements

Requirement Value
Target Platform Universal
Header storport.h (include Storport.h)
Library Storport.lib