MmGetPhysicalAddress function!Nevertheless, this is a way to go. Allocate the buffer using ->AllocateCommonBuffer, and you will have both DMA and virtual addresses.
Otherwise, if you have no control on buffer allocation, use ->MapTransfer, which will give you the DMA address.
About the library - read its source carefully, using such toolkits is impossible without knowing their source well.
Max
----- Original Message -----
From: Ionut Deaconeasa
To: NT Developers Interest List
Sent: Friday, January 11, 2002 12:54 PM
Subject: [ntdev] Re: MmGetPhysicalAddress function!
Hi Max,
The reason for that I need this function ( MmGetPhysicalAddress) is the following: I wish to obtain only a physical address that will be passed to my API where I manage some kind of “DMA” transfer. I’ve tried with KDmaAdapter and KCommonDmaBuffer from NuMega library but unfortunately when I try to install the driver the system will crash (not all the time - only once from several times) because of a Page Fault error message. I allocate all the resources from NonPagedPool but I cannot find the bug. I receive the message when the KDmaAdapter.Initialize try to access IoGetDmaAdapter.
Greetings,
Ionut.
-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Friday, January 11, 2002 8:18 AM
To: NT Developers Interest List
Subject: [ntdev] Re: MmGetPhysicalAddress function!
The only purpose for what you need a physical address is DMA, so, use ->MapTransfer.
Max
----- Original Message -----
From: Ionut Deaconeasa
To: NT Developers Interest List
Sent: Thursday, January 10, 2002 4:54 PM
Subject: [ntdev] MmGetPhysicalAddress function!
Hi everybody,
I have only a trivial questions… Could someone tell me if for WDM exist a function that is equivalent with MmGetPhysicalAddress() ?
Thanks,
Ionut
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@smi.de
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@storagecraft.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