1.\" $NetBSD: uhid.4,v 1.13 2001/12/29 14:41:59 augustss Exp $ 2.\" 3.\" Copyright (c) 1999, 2001 The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to The NetBSD Foundation 7.\" by Lennart Augustsson. 8.\" --- 20 unchanged lines hidden (view full) --- 29.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 30.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35.\" POSSIBILITY OF SUCH DAMAGE. 36.\" |
37.\" $FreeBSD: head/share/man/man4/uhid.4 171107 2007-06-30 05:07:51Z imp $ |
38.\" 39.Dd November 22, 2006 40.Dt UHID 4 41.Os 42.Sh NAME 43.Nm uhid 44.Nd USB generic HID support 45.Sh SYNOPSIS --- 26 unchanged lines hidden (view full) --- 72Get the HID report descriptor. 73Using 74this descriptor the exact layout and meaning of data to/from 75the device can be found. 76The report descriptor is delivered 77without any processing. 78.Bd -literal 79struct usb_ctl_report_desc { |
80 int ucrd_size; 81 u_char ucrd_data[1024]; /* filled data size will vary */ |
82}; 83.Ed 84.It Dv USB_SET_IMMED Pq Vt int 85Sets the device in a mode where each 86.Xr read 2 87will return the current value of the input report. 88Normally 89a --- 11 unchanged lines hidden (view full) --- 101It should be 102.Dv UHID_INPUT_REPORT , 103.Dv UHID_OUTPUT_REPORT , 104or 105.Dv UHID_FEATURE_REPORT . 106This call may fail if the device does not support this feature. 107.Bd -literal 108struct usb_ctl_report { |
109 int ucr_report; 110 u_char ucr_data[1024]; /* used data size will vary */ |
111}; 112.Ed 113.It Dv USB_SET_REPORT Pq Vt "struct usb_ctl_report" 114Set a report in the device. 115The 116.Va report 117field indicates which report is to be set. 118It should be --- 36 unchanged lines hidden --- |