mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-09 20:21:01 +00:00
add a dummy ztex to usbutils so cgminer -n lists ztex also
This commit is contained in:
parent
28f515e91d
commit
2ce62f3d94
21
usbutils.c
21
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
|
||||
@ -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…
x
Reference in New Issue
Block a user