]> git.ipfire.org Git - thirdparty/qemu.git/commit - linux-user/syscall_types.h
linux-user: Implement special usbfs ioctls.
authorCortland Tölva <cst@tolva.net>
Mon, 8 Oct 2018 16:35:21 +0000 (09:35 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 19 Oct 2018 12:05:10 +0000 (14:05 +0200)
commita133367ec1b689410f1e7427921e33bb1b569bd7
treedf327f4841e0e50178dd440f0c84c49012b6fda9
parent6c753a63eda27f2a35bda211d1fa490aebbc7459
linux-user: Implement special usbfs ioctls.

Userspace submits a USB Request Buffer to the kernel, optionally
discards it, and finally reaps the URB.  Thunk buffers from target
to host and back.

Tested by running an i386 scanner driver on ARMv7 and by running
the PowerPC lsusb utility on x86_64.  The discardurb ioctl is
not exercised in these tests.

Signed-off-by: Cortland Tölva <cst@tolva.net>
Message-Id: <20181008163521.17341-4-cst@tolva.net>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/ioctls.h
linux-user/syscall.c
linux-user/syscall_defs.h
linux-user/syscall_types.h