Statistics
| Branch: | Revision:

root / usb-stub.c @ a74cdab4

History | View | Annotate | Download (1.8 kB)

1 68063649 blueswir1
/*
2 68063649 blueswir1
 * Stub host USB redirector
3 68063649 blueswir1
 *
4 68063649 blueswir1
 * Copyright (c) 2005 Fabrice Bellard
5 68063649 blueswir1
 *
6 68063649 blueswir1
 * Copyright (c) 2008 Max Krasnyansky
7 68063649 blueswir1
 *      Support for host device auto connect & disconnect
8 68063649 blueswir1
 *      Major rewrite to support fully async operation
9 68063649 blueswir1
 *
10 68063649 blueswir1
 * Copyright 2008 TJ <linux@tjworld.net>
11 68063649 blueswir1
 *      Added flexible support for /dev/bus/usb /sys/bus/usb/devices in addition
12 68063649 blueswir1
 *      to the legacy /proc/bus/usb USB device discovery and handling
13 68063649 blueswir1
 *
14 68063649 blueswir1
 * Permission is hereby granted, free of charge, to any person obtaining a copy
15 68063649 blueswir1
 * of this software and associated documentation files (the "Software"), to deal
16 68063649 blueswir1
 * in the Software without restriction, including without limitation the rights
17 68063649 blueswir1
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18 68063649 blueswir1
 * copies of the Software, and to permit persons to whom the Software is
19 68063649 blueswir1
 * furnished to do so, subject to the following conditions:
20 68063649 blueswir1
 *
21 68063649 blueswir1
 * The above copyright notice and this permission notice shall be included in
22 68063649 blueswir1
 * all copies or substantial portions of the Software.
23 68063649 blueswir1
 *
24 68063649 blueswir1
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25 68063649 blueswir1
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26 68063649 blueswir1
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
27 68063649 blueswir1
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28 68063649 blueswir1
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29 68063649 blueswir1
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30 68063649 blueswir1
 * THE SOFTWARE.
31 68063649 blueswir1
 */
32 68063649 blueswir1
33 89886f4c blueswir1
#include "qemu-common.h"
34 89886f4c blueswir1
#include "console.h"
35 68063649 blueswir1
#include "hw/usb.h"
36 376253ec aliguori
#include "monitor.h"
37 68063649 blueswir1
38 376253ec aliguori
void usb_host_info(Monitor *mon)
39 68063649 blueswir1
{
40 376253ec aliguori
    monitor_printf(mon, "USB host devices not supported\n");
41 68063649 blueswir1
}
42 68063649 blueswir1
43 68063649 blueswir1
/* XXX: modify configure to compile the right host driver */
44 68063649 blueswir1
USBDevice *usb_host_device_open(const char *devname)
45 68063649 blueswir1
{
46 68063649 blueswir1
    return NULL;
47 68063649 blueswir1
}
48 68063649 blueswir1
49 68063649 blueswir1
int usb_host_device_close(const char *devname)
50 68063649 blueswir1
{
51 68063649 blueswir1
    return 0;
52 68063649 blueswir1
}