IRQ Transfers
Paul Smedley <paul <at> smedley.info>
2005-08-05 02:05:58 GMT
Hi all,
I'm trying to implement IRQ transfers using usbcalls to allow Avision
backend scanners to work.
In the logs I'm getting:
[sanei_usb] sanei_usb_read_int: trying to read 2 bytes
[sanei_usb] Entered usbcalls UsbIrqStart with dn = 2
[sanei_usb] Entered usbcalls UsbIrqStart with dh = 0x9018b
[sanei_usb] Entered usbcalls UsbIrqStart with int_in_ep = 0x82
[sanei_usb] Entered usbcalls UsbIrqStart with interface_nr = 0
[sanei_usb] Entered usbcalls UsbIrqStart with bytes to read = 2
[sanei_usb] rc of UsbIrqStart = 65283
The relevant code is:
PHEV pUsbIrqStartHev=NULL;
#ifdef HAVE_USBCALLS
int rc;
USHORT usNumBytes=*size;
DBG (5, "Entered usbcalls UsbIrqStart with dn = %d\n",dn);
DBG (5, "Entered usbcalls UsbIrqStart with dh = %p\n",dh);
DBG (5, "Entered usbcalls UsbIrqStart with int_in_ep =
0x%02x\n",devices[dn].int_in_ep);
DBG (5, "Entered usbcalls UsbIrqStart with interface_nr =
%d\n",devices[dn].interface_nr);
DBG (5, "Entered usbcalls UsbIrqStart with bytes to read =
%u\n",usNumBytes);
if (devices[dn].int_in_ep){
(Continue reading)