blob: 75999919a94b8d3e46e8ab7c6c35bca9caaa08e7 [file] [log] [blame]
Harald Weltece4b5c22019-12-24 09:37:56 +01001/* usb_util - USB related utilities for SIMtrace 2 USB devices
2 *
3 * (C) 2016-2019 by Harald Welte <hwelte@hmw-consulting.de>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19#include <stdio.h>
20#include <stdint.h>
21#include <stdlib.h>
22#include <errno.h>
23#include <getopt.h>
24
25#include <osmocom/core/utils.h>
26
27#include <osmocom/usb/libusb.h>
28#include <osmocom/simtrace2/simtrace_usb.h>
29
30/*! list of USB idVendor/idProduct tuples of devices using simtrace2 firmware */
31const struct dev_id osmo_st2_compatible_dev_ids[] = {
32 { USB_VENDOR_OPENMOKO, USB_PRODUCT_OWHW_SAM3 },
33 { USB_VENDOR_OPENMOKO, USB_PRODUCT_QMOD_SAM3 },
34 { USB_VENDOR_OPENMOKO, USB_PRODUCT_SIMTRACE2 },
35 { 0, 0 }
36};