2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH USBVC 7D "May 13, 2017"
8 usbvc \- USB video class driver
12 #include <sys/usb/clients/video/usbvc/usbvc.h>
14 #include <sys/videodev2.h>
26 The \fBusbvc\fR driver is a USBA (Solaris USB Architecture)-compliant client
27 driver that supports the \fIUSB Device Class Definition for Video Devices\fR
28 specification, Versions 1.0 and 1.1. The \fBusbvc\fR driver supports a subset
29 of the video controls and formats described in the USB specification.
32 The \fBusbvc\fR driver also implements the Video4Linux2 API (\fIV4L2\fR),
33 Version 0.20 for applications. For more information on the \fIV4L2 API\fR,
34 visit \fIhttp://www.thedirks.org/v4l2\fR.
37 Note that the \fBusbvc\fR driver supports the video capture function only and
38 that video output is not supported.
41 The \fBusbvc\fR driver reads video data from the isochronous endpoint of the
42 device. Bulk data endpoints are not supported.
45 MJPEG and UNCOMPRESSED video formats are supported. Isochronous data are read
46 from the isochronous input device frame-by-frame and are maintained in a
47 buffer array within the driver. Video frames are read from the driver using the
48 \fBread\fR(2) or \fBmmap\fR(2) I/O method. For \fBread\fR(2), each read returns
49 a buffer of a video frame. For \fBmmap\fR(2), each \fBVIDIOC_DQBUF\fR ioctl
50 returns the buffer structure v4l2_buffer. (A video frame buffer pointer is
51 included in the structure). See the \fIV4L2 API\fR for buffer structure and
52 other related data structure information.
55 A brief overview of supported ioctl requests appears below. For more detailed
56 information, refer to the \fIV4L2 API\fR document. Note: ioctl information
57 presented in the \fIV4L2 API\fR document may differ slightly from the content
58 of this manpage. In such cases, you should rely on the information in this
67 Query the device capabilities. Besides device capabilities, the \fBusbvc\fR
68 driver returns structure v4l2_capability which includes information on the
69 driver, data bus and OS kernel. Please note that the "Version" structure member
70 has no meaning in Solaris and is always set to 1.
80 Enumerate the video formats supported by the device.
110 Request the \fBusbvc\fR driver to allocate video data buffers. If a buffer is
111 set to zero, the driver stops reading video data from the device and releases
112 all allocated buffers. (For \fBmmap\fR(2) only).
118 \fBVIDIOC_QUERYBUF\fR
122 Query a given buffer's status. (For \fBmmap\fR(2) only).
132 Enqueue an empty buffer to the video data buffer array. (For \fBmmap\fR(2)
143 Dequeue a done buffer from the video data buffer array. (For \fBmmap\fR(2)
150 \fBVIDIOC_STREAMON\fR
154 Start reading video data.
160 \fBVIDIOC_STREAMOFF\fR
164 Stop reading video data.
170 \fBVIDIOC_ENUMINPUT\fR
174 Enumerate all device inputs. Currently, the \fBusbvc\fR driver supports one
185 Get the device's current input. At this time, the \fBusbvc\fR driver supports
196 Set the device's current input. At this time, the \fBusbvc\fR driver supports
203 \fBVIDIOC_QUERYCTRL\fR
207 Query the device and driver for supported video controls. Currently, the
208 \fBusbvc\fR driver supports the brightness, contrast, saturation, hue, and
209 gamma video controls.
219 Get the device's current video control.
229 Set the device's current video control.
239 Get streaming parameters, the number of frames per second and number of buffers
240 used internally by driver in read/write mode.
250 Set streaming parameters, the number of frames per second and number of buffers
251 used internally by driver in read/write mode.
260 An open was attempted after the device has already been opened.
269 An unsupported ioctl is received or an ioctl is attempted with an out-of-range
279 The driver received an unrecoverable device error or the device did not
280 respond or the device stalled when attempting an access. A \fBread\fR(2) or
281 \fBioctl\fR(2) did not complete due to a peripheral access.
290 The driver received an \fBopen\fR(2) request for a device for which the attach
300 The driver received an \fBopen\fR(2) request for a disconnected device.
306 \fB\fB/kernel/drv/usbvc\fR\fR
310 32-bit ELF kernel module. (x86)
316 \fB\fB/kernel/drv/amd64/usbvc\fR\fR
320 64-bit ELF kernel module. (x86)
326 \fB\fB/kernel/drv/sparcv9/usbvc\fR\fR
330 64-bit ELF kernel module. (SPARC)
336 \fB\fB/dev/usb/*/*/*\fR\fR
340 \fBugen\fR(7D) nodes.
346 \fB\fB/dev/videoN\fR\fR
350 Device node for isochronous input from USB video device and device control.
355 See \fBattributes\fR(5) for descriptions of the following attributes:
363 ATTRIBUTE TYPE ATTRIBUTE VALUE
365 Architecture SPARC, x86, PCI-based systems
370 \fBcfgadm_usb\fR(8), \fBioctl\fR(2), \fBopen\fR(2), \fBmmap\fR(2),
371 \fBread\fR(2), \fBattributes\fR(5), \fBugen\fR(7D),
372 \fBusba\fR(7D), \fBattach\fR(9E)
375 \fIWriting Device Drivers\fR
378 \fISystem Administration Guide: Basic Administration\fR
381 \fIUniversal Serial Bus Specification 1.0, 1.1 and 2.0\fR\(em 1996, 1998, 2000
384 \fIUSB Device Class Definition for Video Devices 1.0 and 1.1\fR\(em 2003, 2005
387 \fIVideo4Linux2 API (V4L2), Version 0.20\fR
390 \fIhttp://www.usb.org\fR
393 \fIhttp://www.thedirks.org/v4l2\fR
396 In addition to being logged, the following messages may appear on the system
397 console. All messages are formatted in the following manner:
401 Warning: <device path> (usbvc<instance num>):Error Message...
409 \fBDevice was disconnected while open. Data may have been lost.\fR
413 The device has been hot-removed or powered off while it was open and a possible
414 data transfer was in progress. The job may be aborted.
420 \fBCannot access <device>. Please reconnect.\fR
424 This device has been disconnected because a device other than the original one
425 has been inserted. The driver informs you of this fact by displaying the name
426 of the original device.
432 \fBDevice is not identical to the previous one on this port. Please disconnect
437 The device was hot-removed while open. A new device was hot-inserted which is
438 not identical to the original device. Please disconnect the device and
439 reconnect the original device to the same port.
444 The USB video device will be power-managed when the device is idle.
447 If a USB video device is hot-removed while active, a console warning is
448 displayed requesting you to put the device back in the same port and telling
449 you of potential data loss. Hot-removal of an active video device is strongly
453 Always close all applications before hot-removing or hot-inserting a device.
454 If an application is open when a device is hot-removed, inserting the device
455 in a different port will create new \fB/dev/video\fR\fIN\fR links. Moving
456 an active device to another port is not recommended.