|
@@ -29,7 +29,7 @@
|
|
|
#include "util.h"
|
|
#include "util.h"
|
|
|
#include "driver-cpu.h" /* for algo_names[], TODO: re-factor dependency */
|
|
#include "driver-cpu.h" /* for algo_names[], TODO: re-factor dependency */
|
|
|
|
|
|
|
|
-#if defined(USE_BITFORCE) || defined(USE_ICARUS) || defined(USE_ZTEX) || defined(USE_MODMINER)
|
|
|
|
|
|
|
+#if defined(USE_BITFORCE) || defined(USE_ICARUS) || defined(USE_AVALON) || defined(USE_ZTEX) || defined(USE_MODMINER)
|
|
|
#define HAVE_AN_FPGA 1
|
|
#define HAVE_AN_FPGA 1
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
@@ -171,6 +171,9 @@ static const char *DEVICECODE = ""
|
|
|
#ifdef USE_ICARUS
|
|
#ifdef USE_ICARUS
|
|
|
"ICA "
|
|
"ICA "
|
|
|
#endif
|
|
#endif
|
|
|
|
|
+#ifdef USE_AVALON
|
|
|
|
|
+ "AVA "
|
|
|
|
|
+#endif
|
|
|
#ifdef USE_ZTEX
|
|
#ifdef USE_ZTEX
|
|
|
"ZTX "
|
|
"ZTX "
|
|
|
#endif
|
|
#endif
|
|
@@ -607,6 +610,10 @@ extern struct device_api bitforce_api;
|
|
|
extern struct device_api icarus_api;
|
|
extern struct device_api icarus_api;
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+#ifdef USE_AVALON
|
|
|
|
|
+extern struct device_api avalon_api;
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
#ifdef USE_ZTEX
|
|
#ifdef USE_ZTEX
|
|
|
extern struct device_api ztex_api;
|
|
extern struct device_api ztex_api;
|
|
|
#endif
|
|
#endif
|
|
@@ -1160,6 +1167,10 @@ static int numpgas()
|
|
|
if (devices[i]->api == &icarus_api)
|
|
if (devices[i]->api == &icarus_api)
|
|
|
count++;
|
|
count++;
|
|
|
#endif
|
|
#endif
|
|
|
|
|
+#ifdef USE_AVALON
|
|
|
|
|
+ if (devices[i]->api == &avalon_api)
|
|
|
|
|
+ count++;
|
|
|
|
|
+#endif
|
|
|
#ifdef USE_ZTEX
|
|
#ifdef USE_ZTEX
|
|
|
if (devices[i]->api == &ztex_api)
|
|
if (devices[i]->api == &ztex_api)
|
|
|
count++;
|
|
count++;
|
|
@@ -1186,6 +1197,10 @@ static int pgadevice(int pgaid)
|
|
|
if (devices[i]->api == &icarus_api)
|
|
if (devices[i]->api == &icarus_api)
|
|
|
count++;
|
|
count++;
|
|
|
#endif
|
|
#endif
|
|
|
|
|
+#ifdef USE_AVALON
|
|
|
|
|
+ if (devices[i]->api == &avalon_api)
|
|
|
|
|
+ count++;
|
|
|
|
|
+#endif
|
|
|
#ifdef USE_ZTEX
|
|
#ifdef USE_ZTEX
|
|
|
if (devices[i]->api == &ztex_api)
|
|
if (devices[i]->api == &ztex_api)
|
|
|
count++;
|
|
count++;
|