mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Add hashfast to api calls.
This commit is contained in:
parent
d866973d52
commit
456431de29
13
api.c
13
api.c
@ -28,7 +28,7 @@
|
|||||||
#include "miner.h"
|
#include "miner.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
#if defined(USE_BFLSC) || defined(USE_AVALON)
|
#if defined(USE_BFLSC) || defined(USE_AVALON) || defined(USE_HASHFAST)
|
||||||
#define HAVE_AN_ASIC 1
|
#define HAVE_AN_ASIC 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -175,6 +175,9 @@ static const char *DEVICECODE = ""
|
|||||||
#ifdef USE_BITFORCE
|
#ifdef USE_BITFORCE
|
||||||
"BFL "
|
"BFL "
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef USE_HASHFAST
|
||||||
|
"HFA "
|
||||||
|
#endif
|
||||||
#ifdef USE_ICARUS
|
#ifdef USE_ICARUS
|
||||||
"ICA "
|
"ICA "
|
||||||
#endif
|
#endif
|
||||||
@ -1222,6 +1225,10 @@ static int numascs()
|
|||||||
#ifdef USE_BFLSC
|
#ifdef USE_BFLSC
|
||||||
if (devices[i]->drv->drv_id == DRIVER_BFLSC)
|
if (devices[i]->drv->drv_id == DRIVER_BFLSC)
|
||||||
count++;
|
count++;
|
||||||
|
#endif
|
||||||
|
#ifdef USE_HASHFAST
|
||||||
|
if (devices[i]->drv->drv_id == DRIVER_HASHFAST)
|
||||||
|
count++;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
rd_unlock(&devices_lock);
|
rd_unlock(&devices_lock);
|
||||||
@ -1242,6 +1249,10 @@ static int ascdevice(int ascid)
|
|||||||
#ifdef USE_BFLSC
|
#ifdef USE_BFLSC
|
||||||
if (devices[i]->drv->drv_id == DRIVER_BFLSC)
|
if (devices[i]->drv->drv_id == DRIVER_BFLSC)
|
||||||
count++;
|
count++;
|
||||||
|
#endif
|
||||||
|
#ifdef USE_HASHFAST
|
||||||
|
if (devices[i]->drv->drv_id == DRIVER_HASHFAST)
|
||||||
|
count++;
|
||||||
#endif
|
#endif
|
||||||
if (count == (ascid + 1))
|
if (count == (ascid + 1))
|
||||||
goto foundit;
|
goto foundit;
|
||||||
|
Loading…
Reference in New Issue
Block a user