summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Stein <jcs@cvs.openbsd.org>2021-01-22 17:35:01 +0000
committerJoshua Stein <jcs@cvs.openbsd.org>2021-01-22 17:35:01 +0000
commit8b3b1365c98ea1eccb601c4280e280e9f0bf94a8 (patch)
treeb7dbe93130289fc2dce220320bc4b99408df3cf1
parentbb4dc88a1df698901666262ee1baa1816cc56a37 (diff)
ims: an actual i2c-connected mouse is unlikely
Claim to be a touchpad instead, which sets up ims devices in X11 to be more like touchpads. ok mglocker
-rw-r--r--share/man/man4/ims.48
-rw-r--r--sys/dev/i2c/ims.c5
2 files changed, 6 insertions, 7 deletions
diff --git a/share/man/man4/ims.4 b/share/man/man4/ims.4
index 3b81de78c44..1913e253c87 100644
--- a/share/man/man4/ims.4
+++ b/share/man/man4/ims.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ims.4,v 1.3 2016/07/30 15:44:45 jcs Exp $
+.\" $OpenBSD: ims.4,v 1.4 2021/01/22 17:35:00 jcs Exp $
.\"
.\" Copyright (c) 2016 Jonathan Gray <jsg@openbsd.org>
.\"
@@ -14,19 +14,19 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: July 30 2016 $
+.Dd $Mdocdate: January 22 2021 $
.Dt IMS 4
.Os
.Sh NAME
.Nm ims
-.Nd I2C HID mouse support
+.Nd I2C HID pointing device support
.Sh SYNOPSIS
.Cd "ims* at ihidev?"
.Cd "wsmouse* at ims? mux 0"
.Sh DESCRIPTION
The
.Nm
-driver provides support for I2C HID mice.
+driver provides support for I2C HID touchpads and other pointing devices.
Access to these devices is through the
.Xr wscons 4
driver.
diff --git a/sys/dev/i2c/ims.c b/sys/dev/i2c/ims.c
index e74dd8554c2..3275bec6dc9 100644
--- a/sys/dev/i2c/ims.c
+++ b/sys/dev/i2c/ims.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ims.c,v 1.2 2018/09/01 20:50:16 jcs Exp $ */
+/* $OpenBSD: ims.c,v 1.3 2021/01/22 17:35:00 jcs Exp $ */
/*
* HID-over-i2c mouse/trackpad driver
*
@@ -180,8 +180,7 @@ ims_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *p)
switch (cmd) {
case WSMOUSEIO_GTYPE:
- /* XXX: should we set something else? */
- *(u_int *)data = WSMOUSE_TYPE_USB;
+ *(u_int *)data = WSMOUSE_TYPE_TOUCHPAD;
return 0;
default:
return -1;