@@ -261,6 +261,10 @@ if USE_BITFORCE
bfgminer_SOURCES += driver-bitforce.c
endif
+if USE_BITMAIN
+bfgminer_SOURCES += driver-bitmain.c driver-bitmain.h
+endif
+
if USE_BIGPIC
bfgminer_SOURCES += driver-bigpic.c driver-bigpic.h
@@ -568,6 +568,10 @@ BFG_DRIVER(,BitForce,SHA256d,auto,[
have_udevrules=true
])
+BFG_DRIVER(,BitMain,SHA256d,no,[
+ has_asic=yes
+])
BFG_DRIVER(,Icarus,SHA256d,auto,[
need_dynclock=yes
need_lowl_vcom=yes
@@ -512,7 +512,7 @@ struct cgpu_info {
struct ft232r_device_handle *device_ft232r;
#endif
};
-#ifdef USE_AVALON
+#if defined(USE_AVALON) || defined(USE_BITMAIN)
struct work **works;
int work_array;
int queued;