Commit 2ce62f3d9448c4d77c9549c8448321480809dfe4

Kano 2013-03-15T15:47:50

add a dummy ztex to usbutils so cgminer -n lists ztex also

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 }
 };