TRANSLATE_BUS_ADDRESS回调函数 (wdm.h)
TranslateBusAddress 例程将父总线上的地址转换为逻辑地址。
语法
TRANSLATE_BUS_ADDRESS TranslateBusAddress;
BOOLEAN TranslateBusAddress(
[in] PVOID Context,
[in] PHYSICAL_ADDRESS BusAddress,
[in] ULONG Length,
[in, out] PULONG AddressSpace,
[out] PPHYSICAL_ADDRESS TranslatedAddress
)
{...}
参数
[in] Context
指向特定于接口的上下文信息的指针。 调用方传递作为接口 BUS_INTERFACE_STANDARD 结构的 上下文 成员传递的值。
[in] BusAddress
要转换的总线相对地址。
[in] Length
BusAddress 指向的输入内存的长度(以字节为单位)。
[in, out] AddressSpace
输入时,设备硬件地址所在的地址空间。 0x0值表示内存空间,0x1表示端口 I/O 空间的值。 在输出中,AddressSpace 指示 TranslatedAddress 所在的地址空间。
[out] TranslatedAddress
与调用方在 BusAddress中提供的相对于总线的地址相对应的已转换的(逻辑)地址。
返回值
如果转换作成功,则 translateBusAddress 例程返回 TRUE;否则 FALSE。
要求
要求 | 价值 |
---|---|
目标平台 | 桌面 |
标头 | wdm.h (include Ntddk.h) |
IRQL | PASSIVE_LEVEL |