9
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /*
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * This header file contains definitions and declarations related to
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 * functions for locating specific FTDI/CP2102/etc USB devices.
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 */
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 struct usbdev_matchspec {
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 unsigned usb_vid;
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 unsigned usb_pid;
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 char *manuf_string;
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 char *product_string;
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 char *serial;
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 unsigned index;
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 };
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 extern struct usb_device *
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 find_usbdev_by_matchspec(const struct usbdev_matchspec *match);
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 extern struct usb_device *
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 find_usbdev_by_busdev(const char *bus_dev_spec);
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 extern struct usb_device *
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 find_usbdev_by_desc_string(const char *desc_string);
|