[sane-devel] patch for OS/2 USB Support in sanei_usb.c
Paul Smedley
paul at smedley.info
Sun Aug 7 16:24:34 UTC 2005
Hi!
Henning Meier-Geinitz wrote:
> Hi,
>
> On Tue, Jul 19, 2005 at 06:51:04PM +0930, Paul Smedley wrote:
>> Updated patch, along with patch for configure.in attached:
>
> Your code is in CVS now.
Thanks - some small changes in attached patch.
Cheers,
Paul.
-------------- next part --------------
--- sanei_usb-cvs.c Mon Aug 8 01:36:04 2005
+++ sanei_usb.c Mon Aug 8 01:51:12 2005
@@ -70,7 +70,7 @@
#define MAX_RW 64000
static int usbcalls_timeout = 30 * 1000; /* 30 seconds */
USBHANDLE dh;
-HEV UsbIrqStartHev;
+PHEV pUsbIrqStartHev=NULL;
static
struct usb_descriptor_header *GetNextDescriptor( struct usb_descriptor_header *currHead, UCHAR *lastBytePtr)
@@ -1066,11 +1066,11 @@
case USB_DT_INTERFACE:
interface = (struct usb_interface_descriptor *) pDescHead;
DBG (5, "Found %d endpoints\n",interface->bNumEndpoints);
+ DBG (5, "bAlternateSetting = %d\n",interface->bAlternateSetting);
break;
case USB_DT_ENDPOINT:
endpoint = (struct usb_endpoint_descriptor*)pDescHead;
address = endpoint->bEndpointAddress;
- //address = endpoint->bEndpointAddress & USB_ENDPOINT_ADDRESS_MASK;
direction = endpoint->bEndpointAddress & USB_ENDPOINT_DIR_MASK;
transfer_type = endpoint->bmAttributes & USB_ENDPOINT_TYPE_MASK;
/* save the endpoints we need later */
@@ -1208,7 +1208,7 @@
#ifdef HAVE_LIBUSB
libusb_timeout = timeout;
#else
- DBG (1, "sanei_usb_close: libusb support missing\n");
+ DBG (1, "sanei_usb_set_timeout: libusb support missing\n");
#endif /* HAVE_LIBUSB */
}
@@ -1593,15 +1593,15 @@
#ifdef HAVE_USBCALLS
int rc;
USHORT usNumBytes=*size;
- DBG (5, "Entered usbcalls UsbBulkWrite with dn = %d\n",dn);
- DBG (5, "Entered usbcalls UsbBulkWrite with dh = %p\n",dh);
- DBG (5, "Entered usbcalls UsbBulkWrite with int_in_ep = 0x%02x\n",devices[dn].int_in_ep);
- DBG (5, "Entered usbcalls UsbBulkWrite with interface_nr = %d\n",devices[dn].interface_nr);
- DBG (5, "Entered usbcalls UsbBulkWrite with bytes to read = %u\n",usNumBytes);
+ 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){
rc = UsbIrqStart (dh,devices[dn].int_in_ep,devices[dn].interface_nr,
- usNumBytes, (char *) buffer, (HEV *) UsbIrqStartHev);
+ usNumBytes, (char *) buffer, pUsbIrqStartHev);
DBG (5, "rc of UsbIrqStart = %d\n",rc);
}
else
More information about the sane-devel
mailing list