IoAllocateAdapterChannel & IoMapTransfer

I was writing DMA for my XP PCI driver. I was able to
do the READ DMA and having problem for WRITE DMA.
Can any one tell me what exactly the difference of
read and write in respect of above two methods.

Is there any article which explains difference between
READ and WRITE DMA implementations.

Any help will be appreciated!


Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine’s Day
http://shopping.yahoo.com

If you are developing an XP driver, you should be using the
DMA_OPERATIONS function given to you when you make a call to
IoGetDmaAdapter, and not the Io* functions. Fortunately, MS has put
macros in the new header files that allow older functions to work like
the newer bus-oriented functions.

The MapTransfer call is where the direction of the DMA (read or write)
is determined. The WriteToDevice parameter specifies this. It is TRUE is
you are sending data to your device, and FALSE if the device is writing
date to memory. Is this what you are asking?

Lee Mowatt

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-ntdev-
xxxxx@lists.osr.com] On Behalf Of Tom Pr
Sent: Tuesday, February 18, 2003 10:20 PM
To: NT Developers Interest List
Subject: [ntdev] IoAllocateAdapterChannel & IoMapTransfer

I was writing DMA for my XP PCI driver. I was able to
do the READ DMA and having problem for WRITE DMA.
Can any one tell me what exactly the difference of
read and write in respect of above two methods.

Is there any article which explains difference between
READ and WRITE DMA implementations.

Any help will be appreciated!


Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine’s Day
http://shopping.yahoo.com


You are currently subscribed to ntdev as:
xxxxx@craftechsoftware.com
To unsubscribe send a blank email to leave-ntdev-
xxxxx@lists.osr.com