diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2014-08-29 13:08:04 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-08-29 13:08:04 +0100 |
commit | d9aa68855724752a5684c6acfb17d8db15cec2f8 (patch) | |
tree | 758d5c6bb19c65ddc8d63868b112aa251a9c6059 /tests/usb-hcd-ohci-test.c | |
parent | a6aebb38ba4682951ab04fe6d6e6b169bd9e4dca (diff) | |
parent | 25e89ec5d2c7f8d953cb1ca558afa74974ff8930 (diff) | |
download | qemu-d9aa68855724752a5684c6acfb17d8db15cec2f8.zip qemu-d9aa68855724752a5684c6acfb17d8db15cec2f8.tar.gz qemu-d9aa68855724752a5684c6acfb17d8db15cec2f8.tar.bz2 |
Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20140829-1' into staging
usb: bugfix collection.
usb: add cleanup functions for host adapters,
in preparation for hotplug support.
usb: add simple qtests for uhci,ohci,xhci.
# gpg: Signature made Fri 29 Aug 2014 12:56:20 BST using RSA key ID D3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>"
# gpg: aka "Gerd Hoffmann <gerd@kraxel.org>"
# gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>"
* remotes/kraxel/tags/pull-usb-20140829-1:
tests: add xHCI qtest
tests: add UHCI qtest
tests: add OHCI qtest
usb: add usb host adapters exit trace
usb-xhci: add exit function
usb-ehci: add ehci-pci device exit function
usb-ehci: add ehci unrealize funciton
usb-ehci: add vmstate properity for EHCIState
usb-uhci: clean up uhci resource when pci-uhci exit
usb-ohci: add exit function
usb-ohci: Fix memory leak for ohci timer
usb: add usb_bus_release function
Revert "xhci: Fix number of streams allocated when using streams"
xhci: use (1u << i)
Fix OHCI ISO TD state never being written back.
xhci: fix debug print compiling error
usb: Fix bootindex for portnr > 9
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'tests/usb-hcd-ohci-test.c')
-rw-r--r-- | tests/usb-hcd-ohci-test.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/usb-hcd-ohci-test.c b/tests/usb-hcd-ohci-test.c new file mode 100644 index 0000000..fbc3ffe --- /dev/null +++ b/tests/usb-hcd-ohci-test.c @@ -0,0 +1,35 @@ +/* + * QTest testcase for USB OHCI controller + * + * Copyright (c) 2014 HUAWEI TECHNOLOGIES CO.,LTD. + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + */ + +#include <glib.h> +#include <string.h> +#include "libqtest.h" +#include "qemu/osdep.h" + + +static void test_ohci_init(void) +{ + qtest_start("-device pci-ohci,id=ohci"); + + qtest_end(); +} + + +int main(int argc, char **argv) +{ + int ret; + + g_test_init(&argc, &argv, NULL); + + qtest_add_func("/ohci/pci/init", test_ohci_init); + + ret = g_test_run(); + + return ret; +} |