Re: Send Multiple URB's to USB Host driver in Bulk Mode
- From: "Maxim S. Shatskih" <maxim@xxxxxxxxxxxxxxxx>
- Date: Sat, 16 Sep 2006 00:50:50 +0400
Now if the FPGA sends a PKTEND (that is an empty USB packet), in my
EvCompleteRequest callback for a USB Request, i'll detect this
condition, and so i'll complete IRP. The problem is that I've up to 7
pending Usb Request, and that if they are executed, then these requests
will receive data from a new frame. How should I do it ?
Maintain the pointer array of all URB IRPs sent down.
In the completion routine, find this IRP by pointer in the array. If this IRP
was the end-of-frame IRP (I assume it should have Irp->IoStatus.Information ==
0 ) - then mark that the next IRP in the array is the start of the new frame.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com
.
- References:
- Send Multiple URB's to USB Host driver in Bulk Mode
- From: fredsky
- Send Multiple URB's to USB Host driver in Bulk Mode
- Prev by Date: Binding NDIS IM Passthru Driver To PAN Devices
- Next by Date: Re: KeFlushIoBuffers() before or after DMA?
- Previous by thread: Send Multiple URB's to USB Host driver in Bulk Mode
- Next by thread: Test signing a driver
- Index(es):