static FILE *baseaddrfp = NULL;
static int baseaddrnum = 0;
static int modules_read = 0;
-static unsigned long card_type;
static int ints_enabled = 0;
static pthread_mutex_t int_wait = PTHREAD_MUTEX_INITIALIZER;
/* TODO: check interfaceClass! */
DPRINTF("found device with libusb\n");
xpcu->dev = dev;
- card_type = e->dwCardType;
+ xpcu->card_type = e->dwCardType;
}
}
}
if (xpcu->dev) {
struct usb_interface *interface = xpcu->dev->config->interface;
- e->dwCardType = card_type;
+ e->dwCardType = xpcu->card_type;
e->dwAction = 1;
e->dwEventId = 109;
e->u.Usb.dwUniqueID = 110;
struct usb_bus *busses;
int interface;
int alternate;
+ unsigned long card_type;
};
int __attribute__ ((visibility ("hidden"))) xpcu_deviceinfo(struct xpcu_s *xpcu, unsigned char *buf);