[Pcsclite-cvs-commit] r2772 - /trunk/Drivers/ccid/src/ccid_usb.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Jan 29 14:52:52 UTC 2008
Author: rousseau
Date: Tue Jan 29 14:52:52 2008
New Revision: 2772
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=2772
Log:
add interrupt end point field in _usbDevice structure
Modified:
trunk/Drivers/ccid/src/ccid_usb.c
Modified: trunk/Drivers/ccid/src/ccid_usb.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ccid_usb.c?rev=2772&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ccid_usb.c (original)
+++ trunk/Drivers/ccid/src/ccid_usb.c Tue Jan 29 14:52:52 2008
@@ -67,6 +67,7 @@
*/
int bulk_in;
int bulk_out;
+ int interrupt;
/* Number of slots using the same device */
int real_nb_opened_slots;
@@ -627,6 +628,13 @@
*/
for (i=0; i<usb_interface->altsetting->bNumEndpoints; i++)
{
+ /* interrupt end point (if available) */
+ if (usb_interface->altsetting->endpoint[i].bmAttributes == USB_ENDPOINT_TYPE_INTERRUPT)
+ {
+ usbdevice->interrupt = usb_interface->altsetting->endpoint[i].bEndpointAddress;
+ continue;
+ }
+
if (usb_interface->altsetting->endpoint[i].bmAttributes != USB_ENDPOINT_TYPE_BULK)
continue;
More information about the Pcsclite-cvs-commit
mailing list