Bus Master DMA on PCI Bus..

Hello,

I’m writing driver (win NT) for PCI Card. I’ve to use DMA on the PCI
card to transfer or receive data?? I would like to know, for using DMA
of the card do we need to get the adapter object by calling
HalGetAdapter?? Or HalGetAdapter is used only for system DMA??

Thanks!
Sunil Sahu


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

> do we need to get the adapter object by calling

HalGetAdapter?? Or HalGetAdapter is used only for system DMA??

HalGetAdapter is for NT V4 ONLY, and it is used for both Busmaster and
System (AKA Slave) DMA.

The equivalent function in Win2K is IoGetDmaAdapter. You DO use this
function for Busmaster DMA.

HTH,

Peter
OSR Open Systems Resources, Inc.


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

> I’m writing driver (win NT) for PCI Card. I’ve to use DMA on the PCI

card to transfer or receive data?? I would like to know, for using DMA
of the card do we need to get the adapter object by calling
HalGetAdapter?? Or HalGetAdapter is used only for system DMA??

You must do HalGetAdapter or IoGetDmaAdapter for PCI devices too.

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