aboutsummaryrefslogtreecommitdiff
path: root/share/man/man4/hidraw.4
diff options
context:
space:
mode:
Diffstat (limited to 'share/man/man4/hidraw.4')
-rw-r--r--share/man/man4/hidraw.417
1 files changed, 9 insertions, 8 deletions
diff --git a/share/man/man4/hidraw.4 b/share/man/man4/hidraw.4
index c01b961e738d..4631e253c1ef 100644
--- a/share/man/man4/hidraw.4
+++ b/share/man/man4/hidraw.4
@@ -27,9 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
-.Dd July 1, 2018
+.Dd August 6, 2023
.Dt HIDRAW 4
.Os
.Sh NAME
@@ -65,9 +63,9 @@ calls:
.Xr uhid 4
\-compatible calls:
.Bl -tag -width indent
-.It Dv HID_GET_REPORT_ID Pq Vt int
+.It Dv HIDRAW_GET_REPORT_ID Pq Vt int
Get the report identifier used by this HID report.
-.It Dv HID_GET_REPORT_DESC Pq Vt "struct hidraw_gen_descriptor"
+.It Dv HIDRAW_GET_REPORT_DESC Pq Vt "struct hidraw_gen_descriptor"
Get the HID report descriptor.
Copies a maximum of
.Va hgd_maxlen
@@ -91,7 +89,7 @@ struct hidraw_gen_descriptor {
...
};
.Ed
-.It Dv HID_SET_IMMED Pq Vt int
+.It Dv HIDRAW_SET_IMMED Pq Vt int
Sets the device in a mode where each
.Xr read 2
will return the current value of the input report.
@@ -102,7 +100,7 @@ will only return the data that the device reports on its
interrupt pipe.
This call may fail if the device does not support
this feature.
-.It Dv HID_GET_REPORT Pq Vt "struct hidraw_gen_descriptor"
+.It Dv HIDRAW_GET_REPORT Pq Vt "struct hidraw_gen_descriptor"
Get a report from the device without waiting for data on
the interrupt pipe.
Copies a maximum of
@@ -126,7 +124,7 @@ The report data begins from the second byte.
For devices which do not use numbered reports, the report data begins at the
first byte.
This call may fail if the device does not support this feature.
-.It Dv HID_SET_REPORT Pq Vt "struct hidraw_gen_descriptor"
+.It Dv HIDRAW_SET_REPORT Pq Vt "struct hidraw_gen_descriptor"
Set a report in the device.
The
.Va hgd_report_type
@@ -147,6 +145,9 @@ The report data begins from the second byte.
For devices which do not use numbered reports, the report data begins at the
first byte.
This call may fail if the device does not support this feature.
+.It Dv HIDRAW_GET_DEVICEINFO Pq Vt "struct hidraw_device_info"
+Returns information about the device, like vendor ID and product ID.
+This call will not issue any hardware transfers.
.El
.Pp
Linux