Commit 5a6e228e120a3ec091938c9b55d1a7eeec45bdd2

Con Kolivas 2014-03-02T13:25:37

Add identifiers for bxm bitfury devices.

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,