hid: Port multitouch hmt(4) driver to hidbus and attach to build

Reviewed by:	hselasky
Differential revision:	https://reviews.freebsd.org/D27990
This commit is contained in:
Vladimir Kondratyev 2020-10-11 02:42:25 +03:00
parent b9b347e9bf
commit cb022db825
6 changed files with 391 additions and 513 deletions

View File

@ -183,6 +183,7 @@ MAN= aac.4 \
hidbus.4 \
hidquirk.4 \
hifn.4 \
hmt.4 \
hpet.4 \
${_hpt27xx.4} \
${_hptiop.4} \

View File

@ -1,4 +1,4 @@
.\" Copyright (c) 2014-2017 Vladimir Kondratyev <wulf@FreeBSD.org>
.\" Copyright (c) 2014-2020 Vladimir Kondratyev <wulf@FreeBSD.org>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@ -24,32 +24,34 @@
.\"
.\" $FreeBSD$
.\"
.Dd August 19, 2017
.Dt WMT 4
.Dd August 11, 2020
.Dt HMT 4
.Os
.Sh NAME
.Nm wmt
.Nd MS Windows 7/8/10 - compatible USB HID multi-touch device driver
.Nm hmt
.Nd MS Windows 7/8/10 - compatible HID multi-touch device driver
.Sh SYNOPSIS
To compile this driver into the kernel, place the following lines into
your kernel configuration file:
.Bd -ragged -offset indent
.Cd "device wmt"
.Cd "device usb"
.Cd "device hmt"
.Cd "device hidbus"
.Cd "device hid"
.Cd "device hconf"
.Cd "device evdev"
.Ed
.Pp
Alternatively, to load the driver as a
module at boot time, place the following line in
.Xr loader.conf 5 :
.Bd -literal -offset indent
wmt_load="YES"
hmt_load="YES"
.Ed
.Sh DESCRIPTION
The
.Nm
driver provides support for the MS Windows 7/8/10 - compatible USB HID
driver provides support for the MS Windows 7/8/10 - compatible HID
multi-touch devices found in many laptops.
.Pp
To get multi-touch device working in
@ -62,7 +64,7 @@ creates a pseudo-device file,
.Pa /dev/input/eventX
which presents the multi-touch device as an input event device.
.Sh SEE ALSO
.Xr usb 4 ,
.Xr hid 4 ,
.Xr loader.conf 5 ,
.Xr xorg.conf 5 Pq Pa ports/x11/xorg ,
.Xr evdev 4 Pq Pa ports/x11-drivers/xf86-input-evdev .
@ -75,7 +77,4 @@ driver was written by
.Sh BUGS
.Nm
cannot act like
.Xr sysmouse 4 ,
as
.Xr sysmouse 4
does not support absolute motion events.

View File

@ -1820,6 +1820,7 @@ dev/hid/hid.c optional hid
dev/hid/hid_if.m optional hid
dev/hid/hidbus.c optional hidbus
dev/hid/hidquirk.c optional hid
dev/hid/hmt.c optional hmt hconf
dev/hifn/hifn7751.c optional hifn
dev/hptiop/hptiop.c optional hptiop scbus
dev/hwpmc/hwpmc_logging.c optional hwpmc

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@ SUBDIR = \
hidquirk
SUBDIR += \
hconf
hconf \
hmt
.include <bsd.subdir.mk>

View File

@ -0,0 +1,9 @@
# $FreeBSD$
.PATH: ${SRCTOP}/sys/dev/hid
KMOD= hmt
SRCS= hmt.c
SRCS+= bus_if.h device_if.h
.include <bsd.kmod.mk>