aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hid/hid.h
diff options
context:
space:
mode:
authorVladimir Kondratyev <wulf@FreeBSD.org>2020-12-13 09:37:55 +0000
committerVladimir Kondratyev <wulf@FreeBSD.org>2021-01-07 23:18:44 +0000
commit9be6b22da9b2df9903310a307f36f5297b1660b6 (patch)
tree6db60b5c42ac0fd0286419500512e9e020eec2bd /sys/dev/hid/hid.h
parent947739079604f5f9fea92d783c9ef43dce52e462 (diff)
downloadsrc-9be6b22da9b2df9903310a307f36f5297b1660b6.tar.gz
src-9be6b22da9b2df9903310a307f36f5297b1660b6.zip
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)
Diffstat (limited to 'sys/dev/hid/hid.h')
-rw-r--r--sys/dev/hid/hid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/hid/hid.h b/sys/dev/hid/hid.h
index cea33f7b4af8..e88cbba04d9a 100644
--- a/sys/dev/hid/hid.h
+++ b/sys/dev/hid/hid.h
@@ -193,6 +193,9 @@
#define HID_MAX_AUTO_QUIRK 8 /* maximum number of dynamic quirks */
#define HID_PNP_ID_SIZE 20 /* includes null terminator */
+/* Share unit number pool between uhid and hidraw */
+extern devclass_t hidraw_devclass;
+
/* Declare global HID debug variable. */
extern int hid_debug;