dma transfer in capture driver

hi,

i am writing a video capture driver and i want to do a dma of the data from
the lower drivers into the stream class’s buffer in SRB_READ_DATA. can
somebody give me a good starting place for handling DMA and related
issues.

regards,
anubhav.


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 something like this:

  1. Pend original data SRB.
  2. Get its MDL.
  3. Allocate internal device control IRP, set up completion routine and pass
    MDL of original SRB to lower level driver.
  4. In your “DMA driver” use received MDL to set up DMA.
  5. In lower level driver complete internal device control IRP when DMA
    finishes.
  6. In stream class minidriver complete original data SRB from completion
    routine for internal device control IRP.

Max.

— anubhav wrote:
> hi,
>
> i am writing a video capture driver and i want to do a dma of the data
> from
> the lower drivers into the stream class’s buffer in SRB_READ_DATA. can
> somebody give me a good starting place for handling DMA and related
> issues.
>
> regards,
> anubhav.
>
> —
> You are currently subscribed to ntdev as: xxxxx@yahoo.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.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