Native BSD host USB support (Juergen Lock, Lonnie Mendez)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5780 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
blueswir1
2008-11-22 21:03:55 +00:00
parent 6972f93538
commit 6806364989
5 changed files with 673 additions and 24 deletions

View File

@@ -34,7 +34,6 @@
#include "qemu-timer.h"
#include "console.h"
#if defined(__linux__)
#include <dirent.h>
#include <sys/ioctl.h>
#include <signal.h>
@@ -1697,25 +1696,3 @@ void usb_host_info(void)
term_printf(" Device %s.%s ID %s:%s\n", bus, addr, vid, pid);
}
}
#else
#include "hw/usb.h"
void usb_host_info(void)
{
term_printf("USB host devices not supported\n");
}
/* XXX: modify configure to compile the right host driver */
USBDevice *usb_host_device_open(const char *devname)
{
return NULL;
}
int usb_host_device_close(const char *devname)
{
return 0;
}
#endif