Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pckbport some definitions from the Linux driver (via...
details: https://anonhg.NetBSD.org/src/rev/b515155af8a2
branches: trunk
changeset: 753252:b515155af8a2
user: plunky <plunky%NetBSD.org@localhost>
date: Sun Mar 21 19:53:52 2010 +0000
description:
some definitions from the Linux driver (via PR kern/42853)
diffstat:
sys/dev/pckbport/synaptics.c | 6 +++---
sys/dev/pckbport/synapticsreg.h | 7 ++++++-
2 files changed, 9 insertions(+), 4 deletions(-)
diffs (55 lines):
diff -r f4e9951e579a -r b515155af8a2 sys/dev/pckbport/synaptics.c
--- a/sys/dev/pckbport/synaptics.c Sun Mar 21 19:45:58 2010 +0000
+++ b/sys/dev/pckbport/synaptics.c Sun Mar 21 19:53:52 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: synaptics.c,v 1.21 2008/04/30 14:07:14 ad Exp $ */
+/* $NetBSD: synaptics.c,v 1.22 2010/03/21 19:53:52 plunky Exp $ */
/*
* Copyright (c) 2005, Steve C. Woodford
@@ -48,7 +48,7 @@
#include "opt_pms.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.21 2008/04/30 14:07:14 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.22 2010/03/21 19:53:52 plunky Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -286,7 +286,7 @@
res = pms_synaptics_send_command(psc->sc_kbctag, psc->sc_kbcslot,
SYNAPTICS_MODE_ABSOLUTE | SYNAPTICS_MODE_W | SYNAPTICS_MODE_RATE);
cmd[0] = PMS_SET_SAMPLE;
- cmd[1] = 0x14; /* doit */
+ cmd[1] = SYNAPTICS_CMD_SET_MODE2;
res |= pckbport_enqueue_cmd(psc->sc_kbctag, psc->sc_kbcslot, cmd, 2, 0,
1, NULL);
sc->up_down = 0;
diff -r f4e9951e579a -r b515155af8a2 sys/dev/pckbport/synapticsreg.h
--- a/sys/dev/pckbport/synapticsreg.h Sun Mar 21 19:45:58 2010 +0000
+++ b/sys/dev/pckbport/synapticsreg.h Sun Mar 21 19:53:52 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: synapticsreg.h,v 1.5 2007/01/17 23:14:03 uwe Exp $ */
+/* $NetBSD: synapticsreg.h,v 1.6 2010/03/21 19:53:52 plunky Exp $ */
/*
* Copyright (c) 2005, Steve C. Woodford
@@ -45,6 +45,10 @@
#define SYNAPTICS_READ_MODEL_ID 0x3
#define SYNAPTICS_EXTENDED_QUERY 0x9
+/* Synaptics special commands */
+#define SYNAPTICS_CMD_SET_MODE2 0x14
+#define SYNAPTICS_CMD_CLIENT_CMD 0x28
+
/* Magic numbers. */
#define SYNAPTICS_MIN_VERSION 45 /* 4.5 */
#define SYNAPTICS_MAGIC_BYTE 0x47
@@ -64,6 +68,7 @@
#define SYNAPTICS_MODE_RATE (1 << 6)
#define SYNAPTICS_MODE_SLEEP (1 << 3)
#define SYNAPTICS_MODE_GEST (1 << 2)
+#define SYNAPTICS_MODE_4BYTE_CLIENT (1 << 1)
#define SYNAPTICS_MODE_W (1)
/* Extended mode button masks. */
Home |
Main Index |
Thread Index |
Old Index