// 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 referenceNo description available.
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.
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.
AtaPortGetPhysicalAddress returns the corresponding physical address for the virtual address. If the virtual address cannot be converted, it returns NULL.