add a dummy ztex to usbutils so cgminer -n lists ztex also
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
diff --git a/usbutils.c b/usbutils.c
index ba3cfc7..d7073f1 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -33,8 +33,12 @@
#define DRV_MODMINER 3
#endif
+#ifdef USE_ZTEX
+#define DRV_ZTEX 4
+#endif
+
#ifdef USE_ICARUS
-#define DRV_ICARUS 4
+#define DRV_ICARUS 5
#endif
#define DRV_LAST -1
@@ -125,6 +129,21 @@ static struct usb_find_devices find_dev[] = {
.epcount = ARRAY_SIZE(mmq_eps),
.eps = mmq_eps },
#endif
+#ifdef USE_ZTEX
+// This is here so cgminer -n shows them
+// the ztex driver (as at 201303) doesn't use usbutils
+ {
+ .drv = DRV_ZTEX,
+ .name = "ZTX",
+ .idVendor = 0x221a,
+ .idProduct = 0x0100,
+ .kernel = 0,
+ .config = 1,
+ .interface = 1,
+ .timeout = 100,
+ .epcount = 0,
+ .eps = NULL },
+#endif
{ DRV_LAST, NULL, 0, 0, 0, 0, 0, 0, 0, NULL }
};