1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Add bf1 device information to usbutils to enable device detection.

This commit is contained in:
Con Kolivas 2013-09-24 20:39:59 +10:00
parent 8862cf9f07
commit 99c838965e
2 changed files with 33 additions and 0 deletions

View File

@ -66,6 +66,10 @@
#define DRV_AVALON 6
#endif
#ifdef USE_BITFURY
#define DRV_BITFURY 8
#endif
#define DRV_LAST -1
#define USB_CONFIG 1
@ -73,12 +77,14 @@
#ifdef WIN32
#define BFLSC_TIMEOUT_MS 999
#define BITFORCE_TIMEOUT_MS 999
#define BITFURY_TIMEOUT_MS 999
#define MODMINER_TIMEOUT_MS 999
#define AVALON_TIMEOUT_MS 999
#define ICARUS_TIMEOUT_MS 999
#else
#define BFLSC_TIMEOUT_MS 300
#define BITFORCE_TIMEOUT_MS 200
#define BITFURY_TIMEOUT_MS 200
#define MODMINER_TIMEOUT_MS 100
#define AVALON_TIMEOUT_MS 200
#define ICARUS_TIMEOUT_MS 200
@ -116,6 +122,17 @@ static struct usb_intinfo bfl_ints[] = {
};
#endif
#ifdef USE_BITFURY
static struct usb_epinfo bfu_epinfos[] = {
{ LIBUSB_TRANSFER_TYPE_BULK, 64, EPI(3), 0 },
{ LIBUSB_TRANSFER_TYPE_BULK, 64, EPO(4), 0 }
};
static struct usb_intinfo bfu_ints[] = {
USB_EPS(1, bfu_epinfos)
};
#endif
#ifdef USE_MODMINER
static struct usb_epinfo mmq_epinfos[] = {
{ LIBUSB_TRANSFER_TYPE_BULK, 64, EPI(3), 0 },
@ -246,6 +263,21 @@ static struct usb_find_devices find_dev[] = {
.latency = LATENCY_STD,
INTINFO(bfl_ints) },
#endif
#ifdef USE_BITFURY
{
.drv = DRV_BITFURY,
.name = "BFO",
.ident = IDENT_BFU,
.idVendor = 0x03eb,
.idProduct = 0x204b,
.config = 1,
.timeout = BITFURY_TIMEOUT_MS,
.latency = LATENCY_UNUSED,
.iManufacturer = "BPMC",
.iProduct = "Bitfury BF1",
INTINFO(bfu_ints)
},
#endif
#ifdef USE_MODMINER
{
.drv = DRV_MODMINER,

View File

@ -134,6 +134,7 @@ enum sub_ident {
IDENT_BAS,
IDENT_BAM,
IDENT_BFL,
IDENT_BFU,
IDENT_MMQ,
IDENT_AVA,
IDENT_BTB,