[仅适用于 KMDF]
WDF_DMA_PROFILE 枚举标识设备可以支持的总线主或系统模式 DMA作的类型。
语法
typedef enum _WDF_DMA_PROFILE {
WdfDmaProfileInvalid = 0,
WdfDmaProfilePacket,
WdfDmaProfileScatterGather,
WdfDmaProfilePacket64,
WdfDmaProfileScatterGather64,
WdfDmaProfileScatterGatherDuplex,
WdfDmaProfileScatterGather64Duplex,
WdfDmaProfileSystem,
WdfDmaProfileSystemDuplex
} WDF_DMA_PROFILE;
常量
WdfDmaProfileInvalid 值:0 仅供内部使用。 |
WdfDmaProfilePacket 设备支持使用 32 位寻址的单数据包 DMA作。 |
WdfDmaProfileScatterGather 设备支持使用 32 位寻址进行基于数据包的散点/收集 DMA作。 |
WdfDmaProfilePacket64 设备支持使用 64 位寻址的单数据包 DMA作。 |
WdfDmaProfileScatterGather64 设备支持使用 64 位寻址进行基于数据包的散点/收集 DMA作。 |
WdfDmaProfileScatterGatherDuplex 设备支持使用 32 位寻址进行基于数据包的散点/收集 DMA作。 设备还支持双工作。 |
WdfDmaProfileScatterGather64Duplex 设备支持使用 64 位寻址进行基于数据包的散点/收集 DMA作。 设备还支持双工作。 |
WdfDmaProfileSystem 设备支持系统模式 DMA作。 此值在 Windows 8 或更高版本的 Windows 上运行的 KMDF 版本 1.11 及更高版本中可用。 |
WdfDmaProfileSystemDuplex 设备支持系统模式 DMA作。 设备还支持双工作。 此值在 Windows 8 或更高版本的 Windows 上运行的 KMDF 版本 1.11 及更高版本中可用。 |
注解
WDF_DMA_PROFILE类型化值在驱动程序 WDF_DMA_ENABLER_CONFIG 结构中使用。 驱动程序在调用 WdfDmaEnablerCreate时提供 WDF_DMA_ENABLER_CONFIG。
如果驱动程序选择了系统模式 DMA 配置文件之一,框架将从 WDM 请求 DMA 版本 3 接口。 从 Windows 8 开始,系统模式 DMA 可用。 有关系统模式 DMA 的详细信息,请参阅 支持 System-Mode DMA。
Kernel-Mode 驱动程序框架(KMDF)微型端口驱动程序(如 NDIS 微型端口驱动程序)可以请求系统模式 DMA 配置文件。 有关如何编写基于框架的微型端口驱动程序的信息,请参阅 创建基于框架的微型端口驱动程序。
要求
要求 | 价值 |
---|---|
最低 KMDF 版本 | 1.0 |
标头 | wdfdmaenabler.h (包括 Wdf.h) |