Add identifiers for bxm bitfury devices.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
diff --git a/usbutils.c b/usbutils.c
index ecb5aca..4a41bdd 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -164,6 +164,15 @@ static struct usb_epinfo nf1_epinfos[] = {
static struct usb_intinfo nf1_ints[] = {
USB_EPS(0, nf1_epinfos)
};
+
+static struct usb_epinfo bxm_epinfos[] = {
+ { LIBUSB_TRANSFER_TYPE_BULK, 512, EPI(1), 0, 0 },
+ { LIBUSB_TRANSFER_TYPE_BULK, 512, EPO(2), 0, 0 }
+};
+
+static struct usb_intinfo bxm_ints[] = {
+ USB_EPS(0, bxm_epinfos)
+};
#endif
#ifdef USE_DRILLBIT
@@ -401,6 +410,17 @@ static struct usb_find_devices find_dev[] = {
.latency = LATENCY_UNUSED,
INTINFO(nf1_ints)
},
+ {
+ .drv = DRIVER_bitfury,
+ .name = "BXM",
+ .ident = IDENT_BXM,
+ .idVendor = 0x0403,
+ .idProduct = 0x6014,
+ .config = 1,
+ .timeout = BITFURY_TIMEOUT_MS,
+ .latency = LATENCY_UNUSED,
+ INTINFO(bxm_ints)
+ },
#endif
#ifdef USE_DRILLBIT
{
diff --git a/usbutils.h b/usbutils.h
index c47e41e..9fcd4f2 100644
--- a/usbutils.h
+++ b/usbutils.h
@@ -147,6 +147,7 @@ enum sub_ident {
IDENT_BLT,
IDENT_BTB,
IDENT_BXF,
+ IDENT_BXM,
IDENT_CMR1,
IDENT_CMR2,
IDENT_CTA,