usb-dev-stub.c 739 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * QEMU USB device emulation stubs
  3. *
  4. * Copyright (C) 2021 Philippe Mathieu-Daudé <f4bug@amsat.org>
  5. *
  6. * SPDX-License-Identifier: GPL-2.0-or-later
  7. */
  8. #include "qemu/osdep.h"
  9. #include "qemu/error-report.h"
  10. #include "qapi/error.h"
  11. #include "qapi/qapi-commands-machine.h"
  12. #include "sysemu/sysemu.h"
  13. #include "monitor/monitor.h"
  14. #include "hw/usb.h"
  15. USBDevice *usbdevice_create(const char *driver)
  16. {
  17. error_report("Support for USB devices not built-in");
  18. return NULL;
  19. }
  20. HumanReadableText *qmp_x_query_usb(Error **errp)
  21. {
  22. error_setg(errp, "Support for USB devices not built-in");
  23. return NULL;
  24. }
  25. void hmp_info_usb(Monitor *mon, const QDict *qdict)
  26. {
  27. monitor_printf(mon, "Support for USB devices not built-in\n");
  28. }