flyhobo
驱动小牛
驱动小牛
  • 注册日期2004-03-05
  • 最后登录2005-05-18
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1361回复:3

求助映射noncached memory 的方法

楼主#
更多 发布于:2004-10-27 14:22
在DDK2000 help中关于NdisReadRegisterUlong的解释:

///////////////////////////////////////////////////////////
NdisReadRegisterUlong
VOID
  NdisReadRegisterUlong(
    IN PULONG  Register,
    OUT PULONG  Data
    );
NdisReadRegisterUlong is called by the NIC driver to read a ULONG from a memory-mapped device register.

Parameters
Register
Points to the memory-mapped register. This virtual address must fall within a range returned by an initialization-time call to NdisMMapIoSpace.
Data
Points to the caller-supplied variable in which this function returns the ULONG read from Register.
Comments
If a driver calls this function, its NIC's device registers must be mapped to noncached memory during driver initialization.

Callers of NdisReadRegisterUlong can be running at any IRQL.
///////////////////////////////////////////////////////////

NdisMMapIoSpace映射后是可以cache的内存啊!用那个函数可以映射位非cache的内存啊?

[编辑 -  10/27/04 by  flyhobo]
好好过日子
flyhobo
驱动小牛
驱动小牛
  • 注册日期2004-03-05
  • 最后登录2005-05-18
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2004-10-29 16:34
为什么没人解答啊!
分少了吗?
好好过日子
dongxiangde
驱动牛犊
驱动牛犊
  • 注册日期2004-11-08
  • 最后登录2005-07-20
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2004-11-16 14:09
   试试cacheDmaMalloc吧
小弟是驱动开发爱好者,菜鸟一个,望各位大侠不吝赐教!
flyhobo
驱动小牛
驱动小牛
  • 注册日期2004-03-05
  • 最后登录2005-05-18
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2004-11-16 18:30
  试试cacheDmaMalloc吧

cacheDmaMalloc没查到啊!他是哪里的函数啊!
好好过日子
游客

返回顶部