diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2012-04-28 09:43:25 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2012-04-28 09:43:25 +0000 |
commit | 53d9066e301163d63ac0511f9eb8947fd45db8fa (patch) | |
tree | 1b066aed37c0f96646f852d8a20cb4b1c9162c13 /sys | |
parent | 092256f3cb69ed0f727c7d3c94ae717771b269ee (diff) |
Added yet another magic for my ALPS touchpad.
ok mpi@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pckbc/pms.c | 5 | ||||
-rw-r--r-- | sys/dev/pckbc/pmsreg.h | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/pckbc/pms.c b/sys/dev/pckbc/pms.c index 5a026fc8639..c8909a28e10 100644 --- a/sys/dev/pckbc/pms.c +++ b/sys/dev/pckbc/pms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pms.c,v 1.28 2012/03/05 18:42:55 shadchin Exp $ */ +/* $OpenBSD: pms.c,v 1.29 2012/04/28 09:43:24 tobias Exp $ */ /* $NetBSD: psm.c,v 1.11 2000/06/05 22:20:57 sommerfeld Exp $ */ /*- @@ -1131,7 +1131,8 @@ pms_enable_alps(struct pms_softc *sc) pms_get_status(sc, resp) || resp[0] != PMS_ALPS_MAGIC1 || resp[1] != PMS_ALPS_MAGIC2 || - (resp[2] != PMS_ALPS_MAGIC3_1 && resp[2] != PMS_ALPS_MAGIC3_2)) + (resp[2] != PMS_ALPS_MAGIC3_1 && resp[2] != PMS_ALPS_MAGIC3_2 && + resp[2] != PMS_ALPS_MAGIC3_3)) return (0); if (sc->alps == NULL) { diff --git a/sys/dev/pckbc/pmsreg.h b/sys/dev/pckbc/pmsreg.h index 35c46b9ba35..17601aedcfc 100644 --- a/sys/dev/pckbc/pmsreg.h +++ b/sys/dev/pckbc/pmsreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmsreg.h,v 1.7 2012/03/05 18:42:55 shadchin Exp $ */ +/* $OpenBSD: pmsreg.h,v 1.8 2012/04/28 09:43:24 tobias Exp $ */ /* $NetBSD: psmreg.h,v 1.1 1998/03/22 15:41:28 drochner Exp $ */ #ifndef SYS_DEV_PCKBC_PMSREG_H @@ -40,7 +40,8 @@ #define PMS_ALPS_MAGIC1 0 #define PMS_ALPS_MAGIC2 0 #define PMS_ALPS_MAGIC3_1 10 -#define PMS_ALPS_MAGIC3_2 100 +#define PMS_ALPS_MAGIC3_2 80 +#define PMS_ALPS_MAGIC3_3 100 /* * Checking for almost-standard PS/2 packet |