Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wscons Add ioctl definitions for setting mouse resol...
details: https://anonhg.NetBSD.org/src/rev/8cb350cfe24c
branches: trunk
changeset: 472612:8cb350cfe24c
user: ad <ad%NetBSD.org@localhost>
date: Mon May 03 15:43:25 1999 +0000
description:
Add ioctl definitions for setting mouse resolution, scale factor and sample
rate. Add two new display types (DEC PX, PXG). Replace instances of '???' in
comments about DEC hardware with meaningful representations.
diffstat:
sys/dev/wscons/wsconsio.h | 27 ++++++++++++++++++++++-----
1 files changed, 22 insertions(+), 5 deletions(-)
diffs (61 lines):
diff -r a86b84ab0ae1 -r 8cb350cfe24c sys/dev/wscons/wsconsio.h
--- a/sys/dev/wscons/wsconsio.h Mon May 03 15:39:47 1999 +0000
+++ b/sys/dev/wscons/wsconsio.h Mon May 03 15:43:25 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsconsio.h,v 1.16 1999/02/12 11:14:49 drochner Exp $ */
+/* $NetBSD: wsconsio.h,v 1.17 1999/05/03 15:43:25 ad Exp $ */
/*
* Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved.
@@ -151,12 +151,27 @@
/* Get mouse type */
#define WSMOUSEIO_GTYPE _IOR('W', 32, u_int)
-#define WSMOUSE_TYPE_VSXXX 1 /* DEC TC(?) serial */
+#define WSMOUSE_TYPE_VSXXX 1 /* DEC serial */
#define WSMOUSE_TYPE_PS2 2 /* PS/2-compatible */
#define WSMOUSE_TYPE_USB 3 /* USB mouse */
#define WSMOUSE_TYPE_LMS 4 /* Logitech busmouse */
#define WSMOUSE_TYPE_MMS 5 /* Microsoft InPort mouse */
+/* Set resolution. Not applicable to all mouse types. */
+#define WSMOUSEIO_SRES _IOR('W', 33, u_int)
+#define WSMOUSE_RES_MIN 0
+#define WSMOUSE_RES_DEFAULT 75
+#define WSMOUSE_RES_MAX 100
+
+/* Set scale factor (num / den). Not applicable to all mouse types. */
+#define WSMOUSEIO_SSCALE _IOR('W', 34, u_int[2])
+
+/* Set sample rate. Not applicable to all mouse types. */
+#define WSMOUSEIO_SRATE _IOR('W', 35, u_int)
+#define WSMOUSE_RATE_MIN 0
+#define WSMOUSE_RATE_DEFAULT 50
+#define WSMOUSE_RATE_MAX 100
+
/*
* Display ioctls (64 - 95)
*/
@@ -164,10 +179,10 @@
/* Get display type */
#define WSDISPLAYIO_GTYPE _IOR('W', 64, u_int)
#define WSDISPLAY_TYPE_UNKNOWN 0 /* unknown */
-#define WSDISPLAY_TYPE_PM_MONO 1 /* ??? */
-#define WSDISPLAY_TYPE_PM_COLOR 2 /* ??? */
+#define WSDISPLAY_TYPE_PM_MONO 1 /* DEC [23]100 mono */
+#define WSDISPLAY_TYPE_PM_COLOR 2 /* DEC [23]100 color */
#define WSDISPLAY_TYPE_CFB 3 /* DEC TC CFB */
-#define WSDISPLAY_TYPE_XCFB 4 /* ??? */
+#define WSDISPLAY_TYPE_XCFB 4 /* DEC `maxine' onboard fb */
#define WSDISPLAY_TYPE_MFB 5 /* DEC TC MFB */
#define WSDISPLAY_TYPE_SFB 6 /* DEC TC SFB */
#define WSDISPLAY_TYPE_ISAVGA 7 /* (generic) ISA VGA */
@@ -176,6 +191,8 @@
#define WSDISPLAY_TYPE_SFBP 10 /* DEC TC SFB+ */
#define WSDISPLAY_TYPE_PCIMISC 11 /* (generic) PCI misc. disp. */
#define WSDISPLAY_TYPE_NEXTMONO 12 /* NeXT mono display */
+#define WSDISPLAY_TYPE_PX 13 /* DEC TC PX */
+#define WSDISPLAY_TYPE_PXG 14 /* DEC TC PXG */
/* Basic display information. Not applicable to all display types. */
struct wsdisplay_fbinfo {
Home |
Main Index |
Thread Index |
Old Index