Monado OpenXR Runtime
|
Main prober code. More...
#include "util/u_var.h"
#include "util/u_misc.h"
#include "util/u_json.h"
#include "util/u_debug.h"
#include "os/os_hid.h"
#include "p_prober.h"
#include <stdio.h>
#include <string.h>
Macros | |
#define | ENUM_TO_STR(r) case r: return #r |
Functions | |
int | xrt_prober_create_with_lists (struct xrt_prober **out_xp, struct xrt_prober_entry_lists *lists) |
Used by the target binary to create the prober with a list of drivers. More... | |
const char * | xrt_prober_string_to_string (enum xrt_prober_string t) |
const char * | xrt_bus_type_to_string (enum xrt_bus_type t) |
bool | xrt_prober_match_string (struct xrt_prober *xp, struct xrt_prober_device *dev, enum xrt_prober_string type, const char *to_match) |
int | p_dev_get_usb_dev (struct prober *p, uint16_t bus, uint16_t addr, uint16_t vendor_id, uint16_t product_id, struct prober_device **out_pdev) |
Get or create a prober_device from the device. More... | |
int | p_dev_get_bluetooth_dev (struct prober *p, uint64_t id, uint16_t vendor_id, uint16_t product_id, struct prober_device **out_pdev) |
Get or create a prober_device from the device. More... | |
Main prober code.
#define ENUM_TO_STR | ( | r | ) | case r: return #r |
Referenced by xrt_bus_type_to_string(), and xrt_prober_string_to_string().
int p_dev_get_bluetooth_dev | ( | struct prober * | p, |
uint64_t | id, | ||
uint16_t | vendor_id, | ||
uint16_t | product_id, | ||
struct prober_device ** | out_pdev | ||
) |
Get or create a prober_device from the device.
References prober_device::base, prober_device::bluetooth, xrt_prober_device::bus, prober::devices, prober_device::id, prober::num_devices, P_ERROR, xrt_prober_device::product_id, xrt_prober_device::vendor_id, and XRT_BUS_TYPE_BLUETOOTH.
int p_dev_get_usb_dev | ( | struct prober * | p, |
uint16_t | bus, | ||
uint16_t | addr, | ||
uint16_t | vendor_id, | ||
uint16_t | product_id, | ||
struct prober_device ** | out_pdev | ||
) |
Get or create a prober_device from the device.
References prober_device::addr, prober_device::base, prober_device::bus, xrt_prober_device::bus, prober::devices, prober::num_devices, P_ERROR, xrt_prober_device::product_id, prober_device::usb, xrt_prober_device::vendor_id, and XRT_BUS_TYPE_USB.
Referenced by p_libusb_probe(), and p_libuvc_probe().
const char* xrt_bus_type_to_string | ( | enum xrt_bus_type | t | ) |
References ENUM_TO_STR, XRT_BUS_TYPE_BLUETOOTH, XRT_BUS_TYPE_UNKNOWN, and XRT_BUS_TYPE_USB.
bool xrt_prober_match_string | ( | struct xrt_prober * | xp, |
struct xrt_prober_device * | dev, | ||
enum xrt_prober_string | type, | ||
const char * | to_match | ||
) |
References len.
const char* xrt_prober_string_to_string | ( | enum xrt_prober_string | t | ) |