阅读:753回复:2
高分求教一个申请大容量缓冲的问题!
在linux下,可以通过保留系统内存的高端,使得这部分内存不位内核所使用,驱动程序可以申请这部分内存供DMA传输使用,可以一次传输N兆数据,感觉很爽呀!
不知windows下如何申请一块大的空间(物理连续)供dma传输使用,请高手指点! |
|
|
沙发#
发布于:2003-07-28 14:55
高手支持一下,本人很想知道解决办法!
|
|
|
板凳#
发布于:2003-07-30 13:56
http://www.jungo.com/support/faq.html#lfc6007. As explained in the FAQ, DMA buffers should generally be locked as non-cached, to ensure safe access (this is not dictated by WinDriver), and access to non-cached memory is slower. For Contiguous Buffer DMA it is possible to use the DMA_ALLOW_CACHE flag to lock a cached DMA buffer on Win2k/XP for faster access (see the above FAQ as well as section A.2.12 of the manual), however we do not recommend doing so, since you run the risk of memory corruption. This is true for both the evaluation and registered WinDriver version, both for v6.00 and for the latest 6.02 version (as well as earlier versions).
|
|