mirror_ubuntu-kernels/include/uapi/linux/usb
Dave Penkler d1d9defdc6 USB: usbtmc: Add separate USBTMC_IOCTL_GET_SRQ_STB
This new ioctl only returns the status byte (STB) that was originally
sent by the device due to a service request (SRQ) condition.

This ioctl checks the srq_asserted bit of the associated file
descriptor. If set, the srq_asserted bit is reset and the cached
STB with original SRQ information is returned. Otherwise the ioctl
returns the error code ENOMSG.

This ioctl is useful to support non USBTMC-488 compliant devices.
Time sensitive applications can read the cached STB without incurring
the cost of an urb transaction over the bus.

Tested-by: Jian-Wei Wu <jian-wei_wu@keysight.com>
Reviewed-by: Guido Kiener <guido.kiener@rohde-schwarz.com>
Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Link: https://lore.kernel.org/r/20201215155621.9592-4-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-28 15:50:30 +01:00
..
audio.h ALSA: usb-audio: Fix parse of UAC2 Extension Units 2019-07-05 08:06:47 +02:00
cdc-wdm.h License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00
cdc.h License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00
ch9.h include/: replace HTTP links with HTTPS ones 2020-08-12 10:57:59 -07:00
ch11.h USB: Add support to store lane count used by USB 3.2 2018-04-22 16:11:19 +02:00
charger.h usb: charger: assign specific number for enum value 2020-02-10 11:08:30 -08:00
functionfs.h License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00
g_printer.h License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00
g_uvc.h treewide: add "WITH Linux-syscall-note" to SPDX tag of uapi headers 2019-07-25 11:05:10 +02:00
gadgetfs.h License cleanup: add SPDX license identifier to uapi header files with no license 2017-11-02 11:19:54 +01:00
midi.h License cleanup: add SPDX license identifier to uapi header files with a license 2017-11-02 11:20:11 +01:00
raw_gadget.h usb: raw-gadget: support stalling/halting/wedging endpoints 2020-05-14 12:30:18 +03:00
tmc.h USB: usbtmc: Add separate USBTMC_IOCTL_GET_SRQ_STB 2020-12-28 15:50:30 +01:00
video.h usb: video: Fix endianness mismatches in descriptor structures 2018-09-25 18:48:08 +03:00