AtaPortGetPhysicalAddress function (irb.h)

The AtaPortGetPhysicalAddress routine converts the virtual address range to the physical address range.

Note  The ATA port driver and ATA miniport driver models may be altered or unavailable in the future. Instead, we recommend using the Storport driver and Storport miniport driver models.
 

Syntax

IDE_PHYSICAL_ADDRESS AtaPortGetPhysicalAddress(
  [in]            PVOID              ChannelExtension,
  [in, optional]  PIDE_REQUEST_BLOCK Irb,
  [in, optional]  PVOID              VirtualAddress,
  [out, optional] ULONG              *Length
);

Parameters

[in] ChannelExtension

A pointer to the channel extension.

[in, optional] Irb

A pointer to a structure of type IDE_REQUEST_BLOCK that defines the IDE request block (IRB) for which the address range is converted.

[in, optional] VirtualAddress

A pointer to the base virtual address to convert.

[out, optional] Length

Returns the number of mapped bytes starting at the returned physical address.

Return value

AtaPortGetPhysicalAddress returns the corresponding physical address for the virtual address. If the virtual address cannot be converted, it returns NULL.

Requirements

Requirement Value
Target Platform Desktop
Header irb.h (include Ata.h, Irb.h)
Library Ataport.lib; Pciidex.lib

See also

IDE_REQUEST_BLOCK