Browse Source

usbutils add rest of icarus

nfactor-troky
Kano 12 years ago
parent
commit
8f4547da99
  1. 17
      usbutils.c

17
usbutils.c

@ -1677,16 +1677,16 @@ static struct usb_find_devices *usb_check(__maybe_unused struct device_drv *drv,
return usb_check_each(DRV_BITFORCE, drv, dev); return usb_check_each(DRV_BITFORCE, drv, dev);
#endif #endif
#ifdef USE_ICARUS
if (drv->drv_id == DRIVER_ICARUS)
return usb_check_each(DRV_ICARUS, drv, dev);
#endif
#ifdef USE_MODMINER #ifdef USE_MODMINER
if (drv->drv_id == DRIVER_MODMINER) if (drv->drv_id == DRIVER_MODMINER)
return usb_check_each(DRV_MODMINER, drv, dev); return usb_check_each(DRV_MODMINER, drv, dev);
#endif #endif
#ifdef USE_ICARUS
if (drv->drv_id == DRIVER_ICARUS)
return usb_check_each(DRV_ICARUS, drv, dev);
#endif
#ifdef USE_AVALON #ifdef USE_AVALON
if (drv->drv_id == DRIVER_AVALON) if (drv->drv_id == DRIVER_AVALON)
return usb_check_each(DRV_AVALON, drv, dev); return usb_check_each(DRV_AVALON, drv, dev);
@ -2193,6 +2193,7 @@ void usb_cleanup()
case DRIVER_BFLSC: case DRIVER_BFLSC:
case DRIVER_BITFORCE: case DRIVER_BITFORCE:
case DRIVER_MODMINER: case DRIVER_MODMINER:
case DRIVER_ICARUS:
case DRIVER_AVALON: case DRIVER_AVALON:
release_cgpu(cgpu); release_cgpu(cgpu);
break; break;
@ -2301,6 +2302,12 @@ void usb_initialise()
found = true; found = true;
} }
#endif #endif
#ifdef USE_ICARUS
if (!found && strcasecmp(ptr, icarus_drv.name) == 0) {
drv_count[icarus_drv.drv_id].limit = lim;
found = true;
}
#endif
#ifdef USE_AVALON #ifdef USE_AVALON
if (!found && strcasecmp(ptr, avalon_drv.name) == 0) { if (!found && strcasecmp(ptr, avalon_drv.name) == 0) {
drv_count[avalon_drv.drv_id].limit = lim; drv_count[avalon_drv.drv_id].limit = lim;

Loading…
Cancel
Save