History log of /freebsd/sys/dev/hid/hidraw.c (Results 1 – 15 of 15)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# f4f46a2e 18-Nov-2024 Matthew Nygard Dodd <Matthew.Nygard.Dodd@gmail.com>

hidraw(4): update hgd_actlen in HIDRAW_GET_REPORT ioctl

HIDRAW_GET_REPORT ioctl is documented to update hgd_actlen on return
with the number of bytes copied. It does not do this.

Reviewed by: wulf

hidraw(4): update hgd_actlen in HIDRAW_GET_REPORT ioctl

HIDRAW_GET_REPORT ioctl is documented to update hgd_actlen on return
with the number of bytes copied. It does not do this.

Reviewed by: wulf
PR: 282790
MFC after: 1 week

show more ...


Revision tags: release/13.4.0, release/14.1.0, release/13.3.0
# e452fa70 26-Dec-2023 Mark Johnston <markj@FreeBSD.org>

hid: Handle errors from copyin() in ioctl handlers

If copyin() fails, the driver will proceed blindly with a zeroed buffer,
which is not what we want. In preparation for annotating copyin() with
__

hid: Handle errors from copyin() in ioctl handlers

If copyin() fails, the driver will proceed blindly with a zeroed buffer,
which is not what we want. In preparation for annotating copyin() with
__result_use_check, start checking for errors.

Reviewed by: wulf
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43102

show more ...


Revision tags: release/14.0.0
# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# f1d955be 06-Aug-2023 Vladimir Kondratyev <wulf@FreeBSD.org>

hidraw(4): Implement HIDRAW_GET_DEVICEINFO ioctl

In commit c77bfaa75051 uhid(4) gained support for ioctl from
USB_GET_DEVICEINFO. This is used in libraries like libfido2 to
retrieve information abou

hidraw(4): Implement HIDRAW_GET_DEVICEINFO ioctl

In commit c77bfaa75051 uhid(4) gained support for ioctl from
USB_GET_DEVICEINFO. This is used in libraries like libfido2 to
retrieve information about a device.

This commit adds binary compatible version to hidraw(4).

PR: 264843
MFC after: 1 month
Requested by: grembo

show more ...


# 4151ac9f 03-Aug-2023 Vladimir Kondratyev <wulf@FreeBSD.org>

hidbus(4): Use generic hid methods to start and stop interrupts


# b61a5730 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD

The SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catch
up to that fact and revert to their recommended match of BS

spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD

The SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix

show more ...


Revision tags: release/13.2.0
# 1522062b 30-Dec-2022 Vladimir Kondratyev <wulf@FreeBSD.org>

hidraw(4): Drop unneeded usb kernel module dependency

HID is not a part of usb subsystem for a while.

MFC after: 2 weeks


# 7c4c5368 24-Dec-2022 Vladimir Kondratyev <wulf@FreeBSD.org>

hidraw(4): Replace Giant with bus_topo_lock


Revision tags: release/12.4.0
# ed87ff4e 17-May-2022 Michael Gmelin <grembo@FreeBSD.org>

hidraw: Return string lengths for certain ioctls

Make HIDIOCGRAWPHYS, HIDIOCGRAWNAME, and HIDIOCGRAWUNIQ return
the length of the copied out string (including the trailing NUL
character), so they be

hidraw: Return string lengths for certain ioctls

Make HIDIOCGRAWPHYS, HIDIOCGRAWNAME, and HIDIOCGRAWUNIQ return
the length of the copied out string (including the trailing NUL
character), so they behave like their Linux hidraw counterparts.

Reviewed by: wulf
Differential Revision: https://reviews.freebsd.org/D35233

show more ...


Revision tags: release/13.1.0
# a4777bb4 07-May-2022 John Baldwin <jhb@FreeBSD.org>

Remove unused hidraw_devclass.


# 34077a8e 18-Dec-2021 Hans Petter Selasky <hselasky@FreeBSD.org>

usb(4): Fix build after 45b48cbc2b5819cd6e3dee3632d66e55d5d7c101.

Make sure local variable is initialized when COMPAT_32BIT is not defined.

MFC after: 1 week
Sponsored by: NVIDIA Networking


# 45b48cbc 17-Dec-2021 Brooks Davis <brooks@FreeBSD.org>

usb: real freebsd32 support for most ioctls

Use thunks or alternative access methods to support ioctls without
the COMPAT_32BIT hacks that store pointers in uint64_t's on 32-bit
platforms. This sho

usb: real freebsd32 support for most ioctls

Use thunks or alternative access methods to support ioctls without
the COMPAT_32BIT hacks that store pointers in uint64_t's on 32-bit
platforms. This should allow a normal i386 libusb to work.

On CheriBSD, the sizes of the structs will differ between CheriABI
(the default) and freebsd64 no matter what so we need proper compat
support there. This change paves the way.

Reviewed by: hselasky, jrtc27 (prior version)

show more ...


Revision tags: release/12.3.0, release/13.0.0
# f988d7fa 13-Feb-2021 Vladimir Kondratyev <wulf@FreeBSD.org>

hidraw: Make HIDIOCGRDESCSIZE ioctl return report descriptor size

defined by hardware rather than cached one to match HIDIOCGRDESC ioctl.
This fixes errors reported by hid-tools being run against /d

hidraw: Make HIDIOCGRDESCSIZE ioctl return report descriptor size

defined by hardware rather than cached one to match HIDIOCGRDESC ioctl.
This fixes errors reported by hid-tools being run against /dev/hidraw#
device node belonging to driver which overloads report descriptor.

MFC after: 1 week

show more ...


# 9be6b22d 13-Dec-2020 Vladimir Kondratyev <wulf@FreeBSD.org>

hidraw(4): Add HIDRAW_MAKE_UHID_ALIAS kernel option

which installs /dev/uhid# alias to hidraw character device for
compatibility with some existing uhid(4) users like Firefox.
As side effect it rena

hidraw(4): Add HIDRAW_MAKE_UHID_ALIAS kernel option

which installs /dev/uhid# alias to hidraw character device for
compatibility with some existing uhid(4) users like Firefox.
As side effect it renames traditional uhid(4) driver to hidraw
to make possible using of common unit number allocator.

Requested by: Greg V <greg_unrelenting.technology>
Reviewed by: hselasky (as part of D27992)

show more ...


Revision tags: release/12.2.0
# 94773907 14-Oct-2020 Vladimir Kondratyev <wulf@FreeBSD.org>

hid: Import hidraw(4) - driver for access to raw HID device data

This driver provides raw access to HID devices through uhid(4)-compatible
interface and is based on pre-8.x uhid(4) code. Unlike uhid

hid: Import hidraw(4) - driver for access to raw HID device data

This driver provides raw access to HID devices through uhid(4)-compatible
interface and is based on pre-8.x uhid(4) code. Unlike uhid(4) it does
not take devices in to monopoly ownership and allows parallel access
from other drivers.

hidraw supports Linux's hidraw-compatible interface as well.

Reviewed by: hselasky
Differential revision: https://reviews.freebsd.org/D27992

show more ...