xdwumin
驱动牛犊
驱动牛犊
  • 注册日期2005-12-22
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分370分
  • 威望38点
  • 贡献值0点
  • 好评度37点
  • 原创分0分
  • 专家分0分
阅读:1519回复:0

NDIS网卡驱动DMA的问题

楼主#
更多 发布于:2007-06-07 14:02
在做一个移植

发现CE文档中有这样一段话

The Windows CE NDIS implementation does not support direct memory access (DMA).
Do not use the NdisSetupDmaTransfer, NdisCompleteDmaTransfer, NdisMRegisterDmaChannel, NdisMDeregisterDmaChannel, NdisMAllocateMapRegisters, NdisMFreeMapRegisters, NdisMReadDmaCounter, and NdisGetSharedDataAlignment functions.

Use the NdisMAllocateSharedMemory and NdisMFreeSharedMemory functions for PCI bus master DMA transfers.

这段话开始说CE不支持DMA,列出了一堆不可以使用的函数

但是最后一句又说在PCI设备为host的DMA中应该使用NdisMAllocateSharedMemory、NdisMFreeSharedMemory 函数

而且之前说明不可用的NdisMAllocateMapRegisters函数在文档中居然也是有的

我的代码也用到了它,编译完全没问题

实在是让人摸不着头脑了

谁能告诉我ce下到底能不能用DMA啊,还有NdisMAllocateMapRegisters能不能用?

我的运行平台是PC,网卡卡是PCI的
游客

返回顶部