|
@@ -230,6 +230,28 @@ static struct usb_intinfo gek2_ints[] = {
|
|
|
|
|
|
#endif
|
|
|
|
|
|
+#ifdef USE_BITAXE
|
|
|
+// CP210X Devices
|
|
|
+static struct usb_epinfo bax1_epinfos[] = {
|
|
|
+ { LIBUSB_TRANSFER_TYPE_BULK, 64, EPI(1), 0, 0 },
|
|
|
+ { LIBUSB_TRANSFER_TYPE_BULK, 64, EPO(1), 0, 0 }
|
|
|
+};
|
|
|
+
|
|
|
+static struct usb_intinfo bax1_ints[] = {
|
|
|
+ USB_EPS(0, bax1_epinfos)
|
|
|
+};
|
|
|
+
|
|
|
+// FTDI Devices
|
|
|
+static struct usb_epinfo bax2_epinfos[] = {
|
|
|
+ { LIBUSB_TRANSFER_TYPE_BULK, 64, EPI(1), 0, 0 },
|
|
|
+ { LIBUSB_TRANSFER_TYPE_BULK, 64, EPO(2), 0, 0 }
|
|
|
+};
|
|
|
+static struct usb_intinfo bax2_ints[] = {
|
|
|
+ USB_EPS(0, bax2_epinfos)
|
|
|
+};
|
|
|
+
|
|
|
+#endif
|
|
|
+
|
|
|
#ifdef USE_DRILLBIT
|
|
|
// Drillbit Bitfury devices
|
|
|
static struct usb_epinfo drillbit_int_epinfos[] = {
|
|
@@ -1150,10 +1172,29 @@ static struct usb_find_devices find_dev[] = {
|
|
|
.timeout = COMPAC_TIMEOUT_MS,
|
|
|
.latency = LATENCY_UNUSED,
|
|
|
INTINFO(gek2_ints) },
|
|
|
+#ifdef USE_BITAXE
|
|
|
+ {
|
|
|
+ .drv = DRIVER_bitaxe,
|
|
|
+ .name = "BAX",
|
|
|
+ .ident = IDENT_BAX,
|
|
|
+ .idVendor = 0x0403,
|
|
|
+ .idProduct = 0x6015,
|
|
|
+ .iManufacturer = "BAX",
|
|
|
+ .iProduct = "BAX",
|
|
|
+ .config = 1,
|
|
|
+ .timeout = COMPAC_TIMEOUT_MS,
|
|
|
+ .latency = LATENCY_UNUSED,
|
|
|
+ INTINFO(bax2_ints) },
|
|
|
+
|
|
|
+#endif
|
|
|
#endif
|
|
|
+
|
|
|
+
|
|
|
{ DRIVER_MAX, NULL, 0, 0, 0, NULL, NULL, 0, 0, 0, 0, NULL }
|
|
|
};
|
|
|
|
|
|
+
|
|
|
+
|
|
|
#define STRBUFLEN 256
|
|
|
static const char *BLANK = "";
|
|
|
static const char *space = " ";
|
|
@@ -4012,6 +4053,7 @@ void usb_cleanup(void)
|
|
|
case DRIVER_cointerra:
|
|
|
case DRIVER_drillbit:
|
|
|
case DRIVER_gekko:
|
|
|
+ case DRIVER_bitaxe:
|
|
|
case DRIVER_modminer:
|
|
|
case DRIVER_icarus:
|
|
|
case DRIVER_avalon:
|