Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pckbport add PS/2 registers from synaptics spec:



details:   https://anonhg.NetBSD.org/src/rev/8a44119eeb6e
branches:  trunk
changeset: 761810:8a44119eeb6e
user:      cegger <cegger%NetBSD.org@localhost>
date:      Tue Feb 08 07:32:47 2011 +0000

description:
add PS/2 registers from synaptics spec:
PMS_RESET_WRAP_MODE, PMS_SET_WRAP_MODE, PMS_ACK, PMS_ERROR and PMS_RESEND

while here use #define<tab> consistently.

diffstat:

 sys/dev/pckbport/pmsreg.h |  37 +++++++++++++++++++++----------------
 1 files changed, 21 insertions(+), 16 deletions(-)

diffs (44 lines):

diff -r 7c126636217d -r 8a44119eeb6e sys/dev/pckbport/pmsreg.h
--- a/sys/dev/pckbport/pmsreg.h Tue Feb 08 06:28:56 2011 +0000
+++ b/sys/dev/pckbport/pmsreg.h Tue Feb 08 07:32:47 2011 +0000
@@ -1,19 +1,24 @@
-/* $NetBSD: pmsreg.h,v 1.2 2005/12/11 12:23:22 christos Exp $ */
+/* $NetBSD: pmsreg.h,v 1.3 2011/02/08 07:32:47 cegger Exp $ */
 
 /* mouse commands */
-#define        PMS_SET_SCALE11 0xe6    /* set scaling 1:1 */
-#define        PMS_SET_SCALE21 0xe7    /* set scaling 2:1 */
-#define        PMS_SET_RES     0xe8    /* set resolution (0..3) */
-#define        PMS_GET_SCALE   0xe9    /* get scaling factor */
-#define PMS_SEND_DEV_STATUS    0xe9
-#define        PMS_SET_STREAM  0xea    /* set streaming mode */
-#define PMS_SEND_DEV_DATA      0xeb
-#define PMS_SET_REMOTE_MODE    0xf0
-#define PMS_SEND_DEV_ID        0xf2
-#define        PMS_SET_SAMPLE  0xf3    /* set sampling rate */
-#define        PMS_DEV_ENABLE  0xf4    /* mouse on */
-#define        PMS_DEV_DISABLE 0xf5    /* mouse off */
-#define PMS_SET_DEFAULTS       0xf6
-#define        PMS_RESET       0xff    /* reset */
+#define        PMS_SET_SCALE11         0xe6    /* set scaling 1:1 */
+#define        PMS_SET_SCALE21         0xe7    /* set scaling 2:1 */
+#define        PMS_SET_RES             0xe8    /* set resolution (0..3) */
+#define        PMS_GET_SCALE           0xe9    /* get scaling factor */
+#define        PMS_SEND_DEV_STATUS     0xe9    /* status request */
+#define        PMS_SET_STREAM          0xea    /* set streaming mode */
+#define        PMS_SEND_DEV_DATA       0xeb    /* read data */
+#define        PMS_RESET_WRAP_MODE     0xec
+#define        PMS_SET_WRAP_MODE       0xed
+#define        PMS_SET_REMOTE_MODE     0xf0
+#define        PMS_SEND_DEV_ID         0xf2    /* read device type */
+#define        PMS_SET_SAMPLE          0xf3    /* set sampling rate */
+#define        PMS_DEV_ENABLE          0xf4    /* mouse on */
+#define        PMS_DEV_DISABLE         0xf5    /* mouse off */
+#define        PMS_SET_DEFAULTS        0xf6
+#define        PMS_ACK                 0xfa
+#define        PMS_ERROR               0xfc
+#define        PMS_RESEND              0xfe
+#define        PMS_RESET               0xff    /* reset */
 
-#define        PMS_RSTDONE     0xaa
+#define        PMS_RSTDONE             0xaa



Home | Main Index | Thread Index | Old Index