summaryrefslogtreecommitdiff
path: root/share/man/man4/uhid.4
diff options
context:
space:
mode:
authorNathan Binkert <nate@cvs.openbsd.org>2002-05-09 15:25:33 +0000
committerNathan Binkert <nate@cvs.openbsd.org>2002-05-09 15:25:33 +0000
commit019d404bd411c877899e76afe42a2898de9841b3 (patch)
treebb925e6c53c10729dff646b5a5cc2e9c778d4b4e /share/man/man4/uhid.4
parent23dcee9d39acf0acbda3ed2e33b4038f9d5e8132 (diff)
Update usb hid manpages to reflect new changes
From NetBSD
Diffstat (limited to 'share/man/man4/uhid.4')
-rw-r--r--share/man/man4/uhid.426
1 files changed, 19 insertions, 7 deletions
diff --git a/share/man/man4/uhid.4 b/share/man/man4/uhid.4
index 3fe8a041752..5b379085063 100644
--- a/share/man/man4/uhid.4
+++ b/share/man/man4/uhid.4
@@ -1,7 +1,7 @@
-.\" $OpenBSD: uhid.4,v 1.9 2001/12/30 07:24:07 pvalchev Exp $
-.\" $NetBSD: uhid.4,v 1.6 1999/05/11 21:05:09 augustss Exp $
+.\" $OpenBSD: uhid.4,v 1.10 2002/05/09 15:25:32 nate Exp $
+.\" $NetBSD: uhid.4,v 1.13 2001/12/29 14:41:59 augustss Exp $
.\"
-.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
+.\" Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
.\" All rights reserved.
.\"
.\" This code is derived from software contributed to The NetBSD Foundation
@@ -42,7 +42,7 @@
.Nm uhid
.Nd USB generic HID support
.Sh SYNOPSIS
-.Cd "uhid* at uhub?"
+.Cd "uhid* at uhidev? reportid ?"
.Sh DESCRIPTION
The
.Nm
@@ -54,6 +54,8 @@ The device handles the following
calls:
.Pp
.Bl -tag -width indent -compact
+.It Dv USB_GET_REPORT_ID (int)
+Get the report identifier used by this HID report.
.It Dv USB_GET_REPORT_DESC (struct usb_ctl_report_desc)
Get the HID report descriptor.
Using this descriptor the exact layout and meaning of data to/from
@@ -85,13 +87,23 @@ It should be
.Dv UHID_OUTPUT_REPORT ,
or
.Dv UHID_FEATURE_REPORT .
-This call may fail if the device does not support
-this feature.
+This call may fail if the device does not support this feature.
.Bd -literal
struct usb_ctl_report {
int report;
- u_char data[1024]; /* filled data size will vary */
+ u_char data[1024]; /* used data size will vary */
};
+.It Dv USB_SET_REPORT (struct usb_ctl_report)
+Set a report in the device.
+The
+.Dv report
+field indicates which report is to be set.
+It should be
+.Dv UHID_INPUT_REPORT ,
+.Dv UHID_OUTPUT_REPORT ,
+or
+.Dv UHID_FEATURE_REPORT .
+This call may fail if the device does not support this feature.
.Ed
.El
.Pp