From 1e0e079db1f54a515e061adb9967224e7b50e012 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 28 Mar 2018 15:48:01 -0700 Subject: mpmd: Provide list of MPM devices to fail fast on find With this fix, uhd_find_devices --args type=b200, for example, will not stall in this function. Reviewed-by: Ashish Chaudhari Reviewed-by: Brent Stapleton --- host/lib/usrp/mpmd/mpmd_devices.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 host/lib/usrp/mpmd/mpmd_devices.hpp (limited to 'host/lib/usrp/mpmd/mpmd_devices.hpp') diff --git a/host/lib/usrp/mpmd/mpmd_devices.hpp b/host/lib/usrp/mpmd/mpmd_devices.hpp new file mode 100644 index 000000000..7e12fe31a --- /dev/null +++ b/host/lib/usrp/mpmd/mpmd_devices.hpp @@ -0,0 +1,23 @@ +// +// Copyright 2018 Ettus Research, a National Instruments Company +// +// SPDX-License-Identifier: GPL-3.0-or-later +// + + +#ifndef INCLUDED_MPMD_DEVICES_HPP +#define INCLUDED_MPMD_DEVICES_HPP + +#include +#include + +static constexpr char MPM_CATCHALL_DEVICE_TYPE[] = "mpm"; + +// List all MPM devices here by their 'type' key. Note: Do not use these values +// to make decisions. This vector is for filtering purposes. +static const std::vector MPM_DEVICE_TYPES = { + MPM_CATCHALL_DEVICE_TYPE, + "n3xx" +}; + +#endif /* INCLUDED_MPMD_DEVICES_HPP */ -- cgit v1.2.3