Browse Source

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

nfactor-troky
Kano 12 years ago
parent
commit
2ce62f3d94
  1. 21
      usbutils.c

21
usbutils.c

@ -33,8 +33,12 @@ @@ -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
@ -124,6 +128,21 @@ static struct usb_find_devices find_dev[] = { @@ -124,6 +128,21 @@ static struct usb_find_devices find_dev[] = {
.timeout = MODMINER_TIMEOUT_MS,
.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 }
};

Loading…
Cancel
Save