Commit 5c20c511 authored by David Brownell's avatar David Brownell Committed by Anton Blanchard

[PATCH] USB: usbtest, talk to user mode "firmware"

Supports some user-mode testing "firmware".
parent d8475074
...@@ -1349,6 +1349,13 @@ static struct usbtest_info fw_info = { ...@@ -1349,6 +1349,13 @@ static struct usbtest_info fw_info = {
.alt = 0, .alt = 0,
}; };
static struct usbtest_info um_info = {
.name = "user mode test driver",
.ep_in = 7,
.ep_out = 3,
.alt = -1,
};
#ifdef IBOT2 #ifdef IBOT2
/* this is a nice source of high speed bulk data; /* this is a nice source of high speed bulk data;
* uses an FX2, with firmware provided in the device * uses an FX2, with firmware provided in the device
...@@ -1414,6 +1421,11 @@ static struct usb_device_id id_table [] = { ...@@ -1414,6 +1421,11 @@ static struct usb_device_id id_table [] = {
.driver_info = (unsigned long) &fw_info, .driver_info = (unsigned long) &fw_info,
}, },
/* so does a user-mode variant */
{ USB_DEVICE (0x0525, 0xa4a4),
.driver_info = (unsigned long) &um_info,
},
#ifdef KEYSPAN_19Qi #ifdef KEYSPAN_19Qi
/* Keyspan 19qi uses an21xx (original EZ-USB) */ /* Keyspan 19qi uses an21xx (original EZ-USB) */
// this does not coexist with the real Keyspan 19qi driver! // this does not coexist with the real Keyspan 19qi driver!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment