view libuwrap/find_dev.h @ 24:45d026fdb315

eeproms: bring mcu-host-bus over from freecalypso-hwlab
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 09 Sep 2023 07:34:17 +0000
parents fe4231326fb2
children
line wrap: on
line source

/*
 * This header file contains definitions and declarations related to
 * functions for locating specific FTDI/CP2102/etc USB devices.
 */

struct usbdev_matchspec {
	unsigned	usb_vid;
	unsigned	usb_pid;
	const char	*manuf_string;
	const char	*product_string;
	const char	*serial;
	unsigned	index;
};

extern struct usb_device *
find_usbdev_by_matchspec(const struct usbdev_matchspec *match);

extern struct usb_device *
find_usbdev_by_busdev(const char *bus_dev_spec);

extern struct usb_device *
find_usbdev_by_desc_string(const char *desc_string);