Hello,
I’m writing PCI Dma driver in win nt. I’m using HalAllocateCommonBuffer
for Dma operation.
HalAllocateCommonBuffer returns both physical and virtual address. Now
my question is for programming DMA I’ve to use virtual address or
physical address.??
Waiting for reply.
Thanks!
Sunil
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Physical address. External devices do not use virtual memory addresses to
access system memory.
Mark Roddy
Windows 2000/NT Consultant
Hollis Technology Solutions
www.hollistech.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Sunil Kumar Sahu
Sent: Friday, February 09, 2001 5:33 AM
To: NT Developers Interest List
Subject: [ntdev] Regarding HalAllocateCommonBuffer
Hello,
I’m writing PCI Dma driver in win nt. I’m using HalAllocateCommonBuffer
for Dma operation.
HalAllocateCommonBuffer returns both physical and virtual address. Now
my question is for programming DMA I’ve to use virtual address or
physical address.??
Waiting for reply.
Thanks!
Sunil
You are currently subscribed to ntdev as: xxxxx@wattanuck.mv.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> HalAllocateCommonBuffer returns both physical and virtual address. Now
my question is for programming DMA I’ve to use virtual address or
physical address.??
Physical.
Use the virtual address to access this memory from your driver code, and
physical address to program your device.
Max
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com