NetBSD/sys/dev/pckbport/pmsreg.h
bjh21 dff5222d3a Abstract the interface between pckbc(4), and the pckbd(4) and pms(4)
drivers that attach to it.  This allows for other host interface chips
that use the same keyboards and mice, such as the ones in the ARM
IOMD20, ARM7500, and SA-1111.  The PC-compatible driver is still
called pckbc(4), and the new abstraction layer is "pckbport", so the
child devices have moved from sys/dev/pckbc to sys/dev/pckbport, which
also contains some code shared between all host controllers.  To avoid
incompatibility, pckbdreg.h is still installed in
/usr/include/dev/pckbc.

In theory, this shouldn't cause any behavioural changes in the drivers
concerned.  Thy just use rather more function pointers than before.  Tested
on i386 and (with a new host driver) acorn32.  Compiled on several other
affected architectures.
2004-03-13 17:31:33 +00:00

20 lines
701 B
C

/* $NetBSD: pmsreg.h,v 1.1 2004/03/13 17:31:33 bjh21 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_RSTDONE 0xaa