NetBSD/sys/dev/pckbport/pmsreg.h

25 lines
909 B
C
Raw Normal View History

/* $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 /* 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