Browse Source

Rename bf1 driver to bigpic, as the same device has other brands too

Luke Dashjr 12 years ago
parent
commit
d478ae30e5
6 changed files with 89 additions and 95 deletions
  1. 2 2
      Makefile.am
  2. 3 3
      api.c
  3. 10 10
      configure.ac
  4. 63 63
      driver-bigpic.c
  5. 7 13
      driver-bigpic.h
  6. 4 4
      miner.c

+ 2 - 2
Makefile.am

@@ -188,8 +188,8 @@ bitforce_firmware_flash_SOURCES = bitforce-firmware-flash.c
 endif
 endif
 endif
 endif
 
 
-if HAS_BF1
-bfgminer_SOURCES += driver-bf1.c driver-bf1.h
+if HAS_BIGPIC
+bfgminer_SOURCES += driver-bigpic.c driver-bigpic.h
 endif
 endif
 
 
 if HAS_ICARUS
 if HAS_ICARUS

+ 3 - 3
api.c

@@ -33,7 +33,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_AVALON) || defined(USE_BF1) || defined(USE_BITFORCE) || defined(USE_ICARUS) || defined(USE_MODMINER) || defined(USE_X6500) || defined(USE_ZTEX)
+#if defined(USE_AVALON) || defined(USE_BIGPIC) || defined(USE_BITFORCE) || defined(USE_ICARUS) || defined(USE_MODMINER) || defined(USE_X6500) || defined(USE_ZTEX)
 #define HAVE_AN_FPGA 1
 #define HAVE_AN_FPGA 1
 #endif
 #endif
 
 
@@ -95,8 +95,8 @@ static const char *DEVICECODE = ""
 #ifdef USE_BITFORCE
 #ifdef USE_BITFORCE
 			"BFL "
 			"BFL "
 #endif
 #endif
-#ifdef USE_BF1
-			"BF1 "
+#ifdef USE_BIGPIC
+			"BPM "
 #endif
 #endif
 #ifdef USE_ICARUS
 #ifdef USE_ICARUS
 			"ICA "
 			"ICA "

+ 10 - 10
configure.ac

@@ -300,15 +300,15 @@ else
 fi
 fi
 
 
 ################################################################################
 ################################################################################
-AC_ARG_ENABLE([bf1],
-	[AC_HELP_STRING([--disable-bf1],[Compile support for Bitfury BF1 (default enabled)])],
-	[bf1=$enableval],
-	[bf1=yes]
+AC_ARG_ENABLE([bigpic],
+	[AC_HELP_STRING([--disable-bigpic],[Compile support for Big Picture Mining USB (default enabled)])],
+	[bigpic=$enableval],
+	[bigpic=yes]
 	)
 	)
-if test "x$bf1" = xyes; then
-	AC_DEFINE([USE_BF1], [1], [Defined to 1 if Bitfury BF1 support is wanted])
+if test "x$bigpic" = xyes; then
+	AC_DEFINE([USE_BIGPIC], [1], [Defined to 1 if Big Picture Mining USB support is wanted])
 fi
 fi
-AM_CONDITIONAL([HAS_BF1], [test x$bf1 = xyes])
+AM_CONDITIONAL([HAS_BIGPIC], [test x$bigpic = xyes])
 
 
 AC_ARG_ENABLE([bitforce],
 AC_ARG_ENABLE([bitforce],
 	[AC_HELP_STRING([--disable-bitforce],[Compile support for BitForce (default enabled)])],
 	[AC_HELP_STRING([--disable-bitforce],[Compile support for BitForce (default enabled)])],
@@ -1035,10 +1035,10 @@ else
 	echo "  Avalon.ASICs.........: Disabled"
 	echo "  Avalon.ASICs.........: Disabled"
 fi
 fi
 
 
-if test "x$bf1" = xyes; then
-	echo "  Bitfury BF1.ASICs....: Enabled"
+if test "x$bigpic" = xyes; then
+	echo "  BPM.USB.ASICs........: Enabled"
 else
 else
-	echo "  Bitfury BF1.ASICs....: Disabled"
+	echo "  BPM.USB.ASICs........: Disabled"
 fi
 fi
 
 
 if test "x$bitforce" = xyes; then
 if test "x$bitforce" = xyes; then

+ 63 - 63
driver-bf1.c → driver-bigpic.c

@@ -8,7 +8,7 @@
  */
  */
 
 
 /*
 /*
- * Bitfury BF1 USB miner with Bitfury ASIC
+ * Big Picture Mining USB miner with Bitfury ASIC
  */
  */
 
 
 #include "config.h"
 #include "config.h"
@@ -19,14 +19,14 @@
 #include "deviceapi.h"
 #include "deviceapi.h"
 #include "sha2.h"
 #include "sha2.h"
 
 
-#include "driver-bf1.h"
+#include "driver-bigpic.h"
 
 
 #include <stdio.h>
 #include <stdio.h>
 
 
-struct device_drv bf1_drv;
+struct device_drv bigpic_drv;
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
-uint32_t bf1_decnonce(uint32_t in)
+uint32_t bigpic_decnonce(uint32_t in)
 {
 {
 	uint32_t out;
 	uint32_t out;
 
 
@@ -49,7 +49,7 @@ uint32_t bf1_decnonce(uint32_t in)
 }
 }
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
-int bf1_rehash(unsigned char *midstate, unsigned m7, unsigned ntime, unsigned nbits, unsigned nnonce)
+int bigpic_rehash(unsigned char *midstate, unsigned m7, unsigned ntime, unsigned nbits, unsigned nnonce)
 {
 {
 	uint8_t   in[16];
 	uint8_t   in[16];
 	uint32_t *in32 = (uint32_t *)in;
 	uint32_t *in32 = (uint32_t *)in;
@@ -85,7 +85,7 @@ int bf1_rehash(unsigned char *midstate, unsigned m7, unsigned ntime, unsigned nb
 }
 }
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
-static bool bf1_detect_custom(const char *devpath, struct device_drv *api, struct BF1Info *info)
+static bool bigpic_detect_custom(const char *devpath, struct device_drv *api, struct bigpic_info *info)
 {
 {
 	int fd = serial_open(devpath, info->baud, 1, true);
 	int fd = serial_open(devpath, info->baud, 1, true);
 
 
@@ -94,7 +94,7 @@ static bool bf1_detect_custom(const char *devpath, struct device_drv *api, struc
 		return false;
 		return false;
 	}
 	}
 
 
-	char buf[sizeof(struct BF1Identity)+1];
+	char buf[sizeof(struct bigpic_identity)+1];
 	int len;
 	int len;
 
 
 	write(fd, "I", 1);
 	write(fd, "I", 1);
@@ -109,11 +109,11 @@ static bool bf1_detect_custom(const char *devpath, struct device_drv *api, struc
 	memcpy(info->id.product, buf+2, 8);
 	memcpy(info->id.product, buf+2, 8);
 	memcpy(&info->id.serial, buf+10, 4);
 	memcpy(&info->id.serial, buf+10, 4);
 	applog(LOG_DEBUG, "%s: %s: %d, %s %08x",
 	applog(LOG_DEBUG, "%s: %s: %d, %s %08x",
-	       bf1_drv.dname,
+	       bigpic_drv.dname,
 	       devpath,
 	       devpath,
 	       info->id.version, info->id.product, info->id.serial);
 	       info->id.version, info->id.product, info->id.serial);
 
 
-	char buf_state[sizeof(struct BF1State)+1];
+	char buf_state[sizeof(struct bigpic_state)+1];
 	len = 0;
 	len = 0;
 	write(fd, "R", 1);
 	write(fd, "R", 1);
 
 
@@ -127,7 +127,7 @@ static bool bf1_detect_custom(const char *devpath, struct device_drv *api, struc
 	if(len != 7)
 	if(len != 7)
 	{
 	{
 		applog(LOG_ERR, "%s: %s not responding to reset: %d",
 		applog(LOG_ERR, "%s: %s not responding to reset: %d",
-		       bf1_drv.dname,
+		       bigpic_drv.dname,
 		       devpath, len);
 		       devpath, len);
 		return false;
 		return false;
 	}
 	}
@@ -135,34 +135,34 @@ static bool bf1_detect_custom(const char *devpath, struct device_drv *api, struc
 	if (serial_claim_v(devpath, api))
 	if (serial_claim_v(devpath, api))
 		return false;
 		return false;
 
 
-	struct cgpu_info *bf1;
-	bf1 = calloc(1, sizeof(struct cgpu_info));
-	bf1->drv = api;
-	bf1->device_path = strdup(devpath);
-	bf1->device_fd = -1;
-	bf1->threads = 1;
-	add_cgpu(bf1);
+	struct cgpu_info *bigpic;
+	bigpic = calloc(1, sizeof(struct cgpu_info));
+	bigpic->drv = api;
+	bigpic->device_path = strdup(devpath);
+	bigpic->device_fd = -1;
+	bigpic->threads = 1;
+	add_cgpu(bigpic);
 
 
-	applog(LOG_INFO, "Found %"PRIpreprv" at %s", bf1->proc_repr, devpath);
+	applog(LOG_INFO, "Found %"PRIpreprv" at %s", bigpic->proc_repr, devpath);
 
 
 	applog(LOG_DEBUG, "%"PRIpreprv": Init: baud=%d",
 	applog(LOG_DEBUG, "%"PRIpreprv": Init: baud=%d",
-		bf1->proc_repr, info->baud);
+		bigpic->proc_repr, info->baud);
 
 
-	bf1->device_data = info;
+	bigpic->device_data = info;
 
 
 	return true;
 	return true;
 }
 }
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
-static bool bf1_detect_one(const char *devpath)
+static bool bigpic_detect_one(const char *devpath)
 {
 {
-	struct BF1Info *info = calloc(1, sizeof(struct BF1Info));
+	struct bigpic_info *info = calloc(1, sizeof(struct bigpic_info));
 	if (unlikely(!info))
 	if (unlikely(!info))
-		quit(1, "Failed to malloc bf1Info");
+		quit(1, "Failed to malloc bigpicInfo");
 
 
-	info->baud = BF1_BAUD;
+	info->baud = BPM_BAUD;
 
 
-	if (!bf1_detect_custom(devpath, &bf1_drv, info))
+	if (!bigpic_detect_custom(devpath, &bigpic_drv, info))
 	{
 	{
 		free(info);
 		free(info);
 		return false;
 		return false;
@@ -171,36 +171,36 @@ static bool bf1_detect_one(const char *devpath)
 }
 }
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
-static int bf1_detect_auto(void)
+static int bigpic_detect_auto(void)
 {
 {
-	return serial_autodetect(bf1_detect_one, "Bitfury_BF1");
+	return serial_autodetect(bigpic_detect_one, "Bitfury_BF1");
 }
 }
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
-static void bf1_detect()
+static void bigpic_detect()
 {
 {
-	serial_detect_auto(&bf1_drv, bf1_detect_one, bf1_detect_auto);
+	serial_detect_auto(&bigpic_drv, bigpic_detect_one, bigpic_detect_auto);
 }
 }
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
-static bool bf1_init(struct thr_info *thr)
+static bool bigpic_init(struct thr_info *thr)
 {
 {
-	struct cgpu_info *bf1 = thr->cgpu;
-	struct BF1Info *info = (struct BF1Info *)bf1->device_data;
+	struct cgpu_info *bigpic = thr->cgpu;
+	struct bigpic_info *info = (struct bigpic_info *)bigpic->device_data;
 
 
-	applog(LOG_DEBUG, "%"PRIpreprv": init", bf1->proc_repr);
+	applog(LOG_DEBUG, "%"PRIpreprv": init", bigpic->proc_repr);
 
 
-	int fd = serial_open(bf1->device_path, info->baud, 1, true);
+	int fd = serial_open(bigpic->device_path, info->baud, 1, true);
 	if (unlikely(-1 == fd))
 	if (unlikely(-1 == fd))
 	{
 	{
 		applog(LOG_ERR, "%"PRIpreprv": Failed to open %s",
 		applog(LOG_ERR, "%"PRIpreprv": Failed to open %s",
-		       bf1->proc_repr, bf1->device_path);
+		       bigpic->proc_repr, bigpic->device_path);
 		return false;
 		return false;
 	}
 	}
 
 
-	bf1->device_fd = fd;
+	bigpic->device_fd = fd;
 
 
-	applog(LOG_INFO, "%"PRIpreprv": Opened %s", bf1->proc_repr, bf1->device_path);
+	applog(LOG_INFO, "%"PRIpreprv": Opened %s", bigpic->proc_repr, bigpic->device_path);
 
 
 	struct timeval tv_now;
 	struct timeval tv_now;
 	gettimeofday(&tv_now, NULL);
 	gettimeofday(&tv_now, NULL);
@@ -228,10 +228,10 @@ static bool duplicate(uint32_t *results, uint32_t size, uint32_t test_nonce)
 }
 }
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
-static void bf1_process_results(struct thr_info *thr, struct work *work)
+static void bigpic_process_results(struct thr_info *thr, struct work *work)
 {
 {
 	struct cgpu_info *board = thr->cgpu;
 	struct cgpu_info *board = thr->cgpu;
-	struct BF1Info *info = (struct BF1Info *)board->device_data;
+	struct bigpic_info *info = (struct bigpic_info *)board->device_data;
 
 
 	uint32_t results[16*6];
 	uint32_t results[16*6];
 	uint32_t num_results;
 	uint32_t num_results;
@@ -245,7 +245,7 @@ static void bf1_process_results(struct thr_info *thr, struct work *work)
 	num_results = 0;
 	num_results = 0;
 	for(int i=0; i<info->rx_len; i+=7)
 	for(int i=0; i<info->rx_len; i+=7)
 	{
 	{
-		struct BF1State state;
+		struct bigpic_state state;
 		state.state = info->rx_buffer[i + 1];
 		state.state = info->rx_buffer[i + 1];
 		state.switched = info->rx_buffer[i + 2];
 		state.switched = info->rx_buffer[i + 2];
 		memcpy(&state.nonce, info->rx_buffer + i + 3, 4);
 		memcpy(&state.nonce, info->rx_buffer + i + 3, 4);
@@ -255,41 +255,41 @@ static void bf1_process_results(struct thr_info *thr, struct work *work)
 			continue;
 			continue;
 		}
 		}
 
 
-		uint32_t nonce = bf1_decnonce(state.nonce);
+		uint32_t nonce = bigpic_decnonce(state.nonce);
 		results[num_results++] = state.nonce;
 		results[num_results++] = state.nonce;
 
 
 		//applog(LOG_DEBUG, "%"PRIpreprv": Len: %d Cmd: %c State: %c Switched: %d Nonce: %08X", board->proc_repr, info->rx_len, info->rx_buffer[i], state->state, state->switched, nonce);
 		//applog(LOG_DEBUG, "%"PRIpreprv": Len: %d Cmd: %c State: %c Switched: %d Nonce: %08X", board->proc_repr, info->rx_len, info->rx_buffer[i], state->state, state->switched, nonce);
-		if(bf1_rehash(work->midstate, m7, ntime, nbits, nonce))
+		if(bigpic_rehash(work->midstate, m7, ntime, nbits, nonce))
 		{
 		{
 			submit_nonce(thr, work, nonce);
 			submit_nonce(thr, work, nonce);
 			nonces--;
 			nonces--;
 			continue;
 			continue;
 		}
 		}
-		if(bf1_rehash(work->midstate, m7, ntime, nbits, nonce-0x400000))
+		if(bigpic_rehash(work->midstate, m7, ntime, nbits, nonce-0x400000))
 		{
 		{
 			submit_nonce(thr, work, nonce-0x400000);
 			submit_nonce(thr, work, nonce-0x400000);
 			nonces--;
 			nonces--;
 			continue;
 			continue;
 		}
 		}
-		if(bf1_rehash(work->midstate, m7, ntime, nbits, nonce-0x800000))
+		if(bigpic_rehash(work->midstate, m7, ntime, nbits, nonce-0x800000))
 		{
 		{
 			submit_nonce(thr, work, nonce-0x800000);
 			submit_nonce(thr, work, nonce-0x800000);
 			nonces--;
 			nonces--;
 			continue;
 			continue;
 		}
 		}
-		if(bf1_rehash(work->midstate, m7, ntime, nbits, nonce+0x2800000))
+		if(bigpic_rehash(work->midstate, m7, ntime, nbits, nonce+0x2800000))
 		{
 		{
 			submit_nonce(thr, work, nonce+0x2800000);
 			submit_nonce(thr, work, nonce+0x2800000);
 			nonces--;
 			nonces--;
 			continue;
 			continue;
 		}
 		}
-		if(bf1_rehash(work->midstate, m7, ntime, nbits, nonce+0x2C00000))
+		if(bigpic_rehash(work->midstate, m7, ntime, nbits, nonce+0x2C00000))
 		{
 		{
 			submit_nonce(thr, work, nonce+0x2C00000);
 			submit_nonce(thr, work, nonce+0x2C00000);
 			nonces--;
 			nonces--;
 			continue;
 			continue;
 		}
 		}
-		if(bf1_rehash(work->midstate, m7, ntime, nbits, nonce+0x400000))
+		if(bigpic_rehash(work->midstate, m7, ntime, nbits, nonce+0x400000))
 		{
 		{
 			submit_nonce(thr, work, nonce+0x400000);
 			submit_nonce(thr, work, nonce+0x400000);
 			nonces--;
 			nonces--;
@@ -300,10 +300,10 @@ static void bf1_process_results(struct thr_info *thr, struct work *work)
 }
 }
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
-static int64_t bf1_scanwork(struct thr_info *thr)
+static int64_t bigpic_scanwork(struct thr_info *thr)
 {
 {
 	struct cgpu_info *board = thr->cgpu;
 	struct cgpu_info *board = thr->cgpu;
-	struct BF1Info *info = (struct BF1Info *)board->device_data;
+	struct bigpic_info *info = (struct bigpic_info *)board->device_data;
 
 
 	uint32_t hashes = 0;
 	uint32_t hashes = 0;
 
 
@@ -346,7 +346,7 @@ static int64_t bf1_scanwork(struct thr_info *thr)
 	if(info->prev_work[1])
 	if(info->prev_work[1])
 	{
 	{
 		applog(LOG_DEBUG, "%"PRIpreprv": PREV[1]", board->proc_repr);
 		applog(LOG_DEBUG, "%"PRIpreprv": PREV[1]", board->proc_repr);
-		bf1_process_results(thr, info->prev_work[1]);
+		bigpic_process_results(thr, info->prev_work[1]);
 		work_completed(board, info->prev_work[1]);
 		work_completed(board, info->prev_work[1]);
 		info->prev_work[1] = 0;
 		info->prev_work[1] = 0;
 	}
 	}
@@ -354,7 +354,7 @@ static int64_t bf1_scanwork(struct thr_info *thr)
 	if(info->prev_work[0])
 	if(info->prev_work[0])
 	{
 	{
 		applog(LOG_DEBUG, "%"PRIpreprv": PREV[0]", board->proc_repr);
 		applog(LOG_DEBUG, "%"PRIpreprv": PREV[0]", board->proc_repr);
-		bf1_process_results(thr, info->prev_work[0]);
+		bigpic_process_results(thr, info->prev_work[0]);
 	}
 	}
 	info->prev_work[1] = info->prev_work[0];
 	info->prev_work[1] = info->prev_work[0];
 	info->prev_work[0] = info->work;
 	info->prev_work[0] = info->work;
@@ -368,7 +368,7 @@ static int64_t bf1_scanwork(struct thr_info *thr)
 }
 }
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
-static void bf1_poll(struct thr_info *thr)
+static void bigpic_poll(struct thr_info *thr)
 {
 {
 /*
 /*
 	struct cgpu_info *board = thr->cgpu;
 	struct cgpu_info *board = thr->cgpu;
@@ -384,7 +384,7 @@ static void bf1_poll(struct thr_info *thr)
 }
 }
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
-static void bf1_shutdown(struct thr_info *thr)
+static void bigpic_shutdown(struct thr_info *thr)
 {
 {
 	struct cgpu_info *cgpu = thr->cgpu;
 	struct cgpu_info *cgpu = thr->cgpu;
 
 
@@ -392,7 +392,7 @@ static void bf1_shutdown(struct thr_info *thr)
 }
 }
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
-static bool bf1_identify(struct cgpu_info *cgpu)
+static bool bigpic_identify(struct cgpu_info *cgpu)
 {
 {
 	char buf[] = "L";
 	char buf[] = "L";
 	write(cgpu->device_fd, buf, sizeof(buf));
 	write(cgpu->device_fd, buf, sizeof(buf));
@@ -401,19 +401,19 @@ static bool bf1_identify(struct cgpu_info *cgpu)
 }
 }
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
-struct device_drv bf1_drv = {
-	.dname = "bf1",
-	.name = "BFA",
+struct device_drv bigpic_drv = {
+	.dname = "bigpic",
+	.name = "BPM",
 	.minerloop = hash_queued_work,
 	.minerloop = hash_queued_work,
 
 
-	.drv_detect = bf1_detect,
+	.drv_detect = bigpic_detect,
 
 
-	.identify_device = bf1_identify,
+	.identify_device = bigpic_identify,
 
 
-	.thread_init = bf1_init,
-	.thread_shutdown = bf1_shutdown,
+	.thread_init = bigpic_init,
+	.thread_shutdown = bigpic_shutdown,
 
 
-	.poll = bf1_poll,
+	.poll = bigpic_poll,
 
 
-	.scanwork = bf1_scanwork,
+	.scanwork = bigpic_scanwork,
 };
 };

+ 7 - 13
driver-bf1.h → driver-bigpic.h

@@ -11,36 +11,30 @@
  *        Mail: aauer1@gmail.com
  *        Mail: aauer1@gmail.com
  */
  */
 
 
-#ifndef DRIVER_BF1_H_
-#define DRIVER_BF1_H_
+#ifndef BFG_DRIVER_BIGPIC_H
+#define BFG_DRIVER_BIGPIC_H
 
 
-#define BF1_BAUD	115200
+#define BPM_BAUD	115200
 
 
-struct BF1Identity
+struct bigpic_identity
 {
 {
 	uint8_t version;
 	uint8_t version;
 	char    product[8];
 	char    product[8];
 	uint32_t serial;
 	uint32_t serial;
 } __attribute__((packed));
 } __attribute__((packed));
 
 
-struct BF1State
+struct bigpic_state
 {
 {
     uint8_t state;
     uint8_t state;
     uint8_t switched;
     uint8_t switched;
     uint32_t nonce;
     uint32_t nonce;
 } __attribute__((packed));
 } __attribute__((packed));
 
 
-struct BF1HashData
-{
-	uint32_t golden_nonce;
-	uint32_t nonce;
-};
-
-struct BF1Info
+struct bigpic_info
 {
 {
 	uint32_t baud;
 	uint32_t baud;
 
 
-	struct BF1Identity id;
+	struct bigpic_identity id;
 	struct work *work;
 	struct work *work;
 	struct work *prev_work[2];
 	struct work *prev_work[2];
 
 

+ 4 - 4
miner.c

@@ -9360,8 +9360,8 @@ struct device_drv cpu_drv = {
 extern struct device_drv bitforce_drv;
 extern struct device_drv bitforce_drv;
 #endif
 #endif
 
 
-#ifdef USE_BF1
-extern struct device_drv bf1_drv;
+#ifdef USE_BIGPIC
+extern struct device_drv bigpic_drv;
 #endif
 #endif
 
 
 #ifdef USE_ICARUS
 #ifdef USE_ICARUS
@@ -9475,9 +9475,9 @@ void drv_detect_all()
 		bitforce_drv.drv_detect();
 		bitforce_drv.drv_detect();
 #endif
 #endif
 
 
-#ifdef USE_BF1
+#ifdef USE_BIGPIC
 	if (!opt_scrypt)
 	if (!opt_scrypt)
-		bf1_drv.drv_detect();
+		bigpic_drv.drv_detect();
 #endif
 #endif
 
 
 #ifdef USE_MODMINER
 #ifdef USE_MODMINER