aboutsummaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorVladimir Kondratyev <wulf@FreeBSD.org>2020-10-14 22:02:15 +0000
committerVladimir Kondratyev <wulf@FreeBSD.org>2021-01-07 23:18:44 +0000
commitafd590d9e56686e179cbbf626ec567aeaaa49199 (patch)
tree3e15c389f9bdd4afef472dc2c685176a9a6767e8 /sys/modules
parent3b2175fdb62c7f872e78ce732952f2ac2ff99c8d (diff)
downloadsrc-afd590d9e56686e179cbbf626ec567aeaaa49199.tar.gz
src-afd590d9e56686e179cbbf626ec567aeaaa49199.zip
hid: Import hidmap and bunch of drivers based on it
hidmap is a kernel module that maps HID input usages to evdev events. Following dependent drivers is included in the commit: hms - HID mouse driver. hcons - Consumer page AKA Multimedia keys driver. hsctrl - System Controls page (Power/Sleep keys) driver. ps4dshock - Sony DualShock 4 gamepad driver. Reviewed by: hselasky Differential revision: https://reviews.freebsd.org/D27993
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/hid/Makefile7
-rw-r--r--sys/modules/hid/hcons/Makefile9
-rw-r--r--sys/modules/hid/hidmap/Makefile9
-rw-r--r--sys/modules/hid/hms/Makefile9
-rw-r--r--sys/modules/hid/hsctrl/Makefile9
-rw-r--r--sys/modules/hid/ps4dshock/Makefile9
6 files changed, 51 insertions, 1 deletions
diff --git a/sys/modules/hid/Makefile b/sys/modules/hid/Makefile
index 0936bae92738..20ae0b3b9302 100644
--- a/sys/modules/hid/Makefile
+++ b/sys/modules/hid/Makefile
@@ -3,12 +3,17 @@
SUBDIR = \
hid \
hidbus \
+ hidmap \
hidquirk \
hidraw
SUBDIR += \
hconf \
+ hcons \
hkbd \
- hmt
+ hms \
+ hmt \
+ hsctrl \
+ ps4dshock
.include <bsd.subdir.mk>
diff --git a/sys/modules/hid/hcons/Makefile b/sys/modules/hid/hcons/Makefile
new file mode 100644
index 000000000000..2c2ad16322af
--- /dev/null
+++ b/sys/modules/hid/hcons/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${SRCTOP}/sys/dev/hid
+
+KMOD= hcons
+SRCS= hcons.c
+SRCS+= bus_if.h device_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/hid/hidmap/Makefile b/sys/modules/hid/hidmap/Makefile
new file mode 100644
index 000000000000..8e79f156d9d7
--- /dev/null
+++ b/sys/modules/hid/hidmap/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${SRCTOP}/sys/dev/hid
+
+KMOD= hidmap
+SRCS= hidmap.c
+SRCS+= bus_if.h device_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/hid/hms/Makefile b/sys/modules/hid/hms/Makefile
new file mode 100644
index 000000000000..71fbd2a77b89
--- /dev/null
+++ b/sys/modules/hid/hms/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${SRCTOP}/sys/dev/hid
+
+KMOD= hms
+SRCS= hms.c
+SRCS+= bus_if.h device_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/hid/hsctrl/Makefile b/sys/modules/hid/hsctrl/Makefile
new file mode 100644
index 000000000000..e0feba2657e5
--- /dev/null
+++ b/sys/modules/hid/hsctrl/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${SRCTOP}/sys/dev/hid
+
+KMOD= hsctrl
+SRCS= hsctrl.c
+SRCS+= bus_if.h device_if.h
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/hid/ps4dshock/Makefile b/sys/modules/hid/ps4dshock/Makefile
new file mode 100644
index 000000000000..688494f33ac6
--- /dev/null
+++ b/sys/modules/hid/ps4dshock/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.PATH: ${SRCTOP}/sys/dev/hid
+
+KMOD= ps4dshock
+SRCS= ps4dshock.c
+SRCS+= bus_if.h device_if.h usbdevs.h
+
+.include <bsd.kmod.mk>