在使用windriver进行驱动开发时,不可避免地会使用到内存分配的功能,这里先介绍下jungo公司的技术手册
https://www.jungo.com/st/support/windriver-technical-documents/
其他的相关文档在juno官网上都可以搜索到,非常重要。
这里的功能在technical-docunments(简称TD)手册的第1.3节中有具体说明
Technical Document #3: Preallocating contiguous DMA buffers on Windows
; Host-to-device DMA buffer:
HKR,, "DmaToDeviceCount",0x00010001,0x04 ; Number of preallocated DMA_TO_DEVICE buffers
HKR,, "DmaToDeviceBytes",0x00010001,0x100000 ; Buffer size, in bytes
HKR,, "DmaToDeviceOptions",0x00010001,0x41 ; DMA flags (0x40=DMA_TO_DEVICE
; + 0x1=DMA_KERNEL_BUFFER_ALLOC)
; Device-to-host DMA buffer:
HKR,, "DmaFromDeviceCount",0x00010001,0x04 ; Number of preallocated DMA_FROM_