AtaPortGetPhysicalAddress - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// irb.h

IDE_PHYSICAL_ADDRESS AtaPortGetPhysicalAddress(
  [in]            PVOID              ChannelExtension,
  [in, optional]  PIDE_REQUEST_BLOCK Irb,
  [in, optional]  PVOID              VirtualAddress,
  [out, optional] ULONG              *Length
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-irb-ataportgetphysicaladdress)

AtaPortGetPhysicalAddress function

Description

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.

Parameters

ChannelExtension [in]

A pointer to the channel extension.

Irb [in, optional]

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

VirtualAddress [in, optional]

A pointer to the base virtual address to convert.

Length [out, optional]

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.

See also

IDE_REQUEST_BLOCK