| 84 |
static int get_end_points(struct usb_device *dev, _usbDevice *usb_device); |
static int get_end_points(struct usb_device *dev, _usbDevice *usb_device); |
| 85 |
|
|
| 86 |
/* ne need to initialize to 0 since it is static */ |
/* ne need to initialize to 0 since it is static */ |
| 87 |
static _usbDevice usbDevice[PCSCLITE_MAX_READERS]; |
static _usbDevice usbDevice[CCID_DRIVER_MAX_READERS]; |
| 88 |
|
|
| 89 |
#define PCSCLITE_MANUKEY_NAME "ifdVendorID" |
#define PCSCLITE_MANUKEY_NAME "ifdVendorID" |
| 90 |
#define PCSCLITE_PRODKEY_NAME "ifdProductID" |
#define PCSCLITE_PRODKEY_NAME "ifdProductID" |
| 263 |
/* is it already opened? */ |
/* is it already opened? */ |
| 264 |
already_used = FALSE; |
already_used = FALSE; |
| 265 |
|
|
| 266 |
for (r=0; r<PCSCLITE_MAX_READERS; r++) |
for (r=0; r<CCID_DRIVER_MAX_READERS; r++) |
| 267 |
{ |
{ |
| 268 |
if (usbDevice[r].dev) |
if (usbDevice[r].dev) |
| 269 |
{ |
{ |
| 491 |
int get_desc(int channel, usb_dev_handle **handle, struct |
int get_desc(int channel, usb_dev_handle **handle, struct |
| 492 |
usb_device **dev) |
usb_device **dev) |
| 493 |
{ |
{ |
| 494 |
if (channel < 0 || channel > PCSCLITE_MAX_READERS) |
if (channel < 0 || channel > CCID_DRIVER_MAX_READERS) |
| 495 |
return 1; |
return 1; |
| 496 |
|
|
| 497 |
*handle = usbDevice[channel].handle; |
*handle = usbDevice[channel].handle; |