summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2012-04-17 08:51:25 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2012-04-17 08:51:25 +0000
commit4596cd5ae534c199f9a933188e91e109b94acc2e (patch)
tree49e94d37d5aaa05ce68dd624accba2bc26c9aca9
parentb6808f922ca087295d2dd0df630fcc309d332fa4 (diff)
Add type numbers for upcoming sgi work, forgotten during newport(4) import.
-rw-r--r--sbin/wsconsctl/util.c9
-rw-r--r--sys/dev/wscons/wsconsio.h7
2 files changed, 13 insertions, 3 deletions
diff --git a/sbin/wsconsctl/util.c b/sbin/wsconsctl/util.c
index 38e5f1582cf..22fa6261bf4 100644
--- a/sbin/wsconsctl/util.c
+++ b/sbin/wsconsctl/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.55 2011/09/20 17:00:24 shadchin Exp $ */
+/* $OpenBSD: util.c,v 1.56 2012/04/17 08:51:24 miod Exp $ */
/* $NetBSD: util.c,v 1.8 2000/03/14 08:11:53 sato Exp $ */
/*-
@@ -71,6 +71,7 @@ static const struct nameint kbtype_tab[] = {
{ WSKBD_TYPE_DOMAIN, "domain" },
{ WSKBD_TYPE_BLUETOOTH, "bluetooth" },
{ WSKBD_TYPE_KPC, "kpc" },
+ { WSKBD_TYPE_SGI, "sgi" },
};
static const struct nameint mstype_tab[] = {
@@ -90,6 +91,7 @@ static const struct nameint mstype_tab[] = {
{ WSMOUSE_TYPE_SUN, "sun" },
{ WSMOUSE_TYPE_SYNAPTICS, "synaptics" },
{ WSMOUSE_TYPE_ALPS, "alps" }
+ { WSMOUSE_TYPE_SGI, "sgi" }
};
static const struct nameint dpytype_tab[] = {
@@ -158,7 +160,10 @@ static const struct nameint dpytype_tab[] = {
{ WSDISPLAY_TYPE_SMFB, "smfb" },
{ WSDISPLAY_TYPE_SISFB, "sisfb" },
{ WSDISPLAY_TYPE_ODYSSEY, "odyssey" },
- { WSDISPLAY_TYPE_IMPACT, "impact" }
+ { WSDISPLAY_TYPE_IMPACT, "impact" },
+ { WSDISPLAY_TYPE_GRTWO, "grtwo" },
+ { WSDISPLAY_TYPE_NEWPORT, "newport" },
+ { WSDISPLAY_TYPE_LIGHT, "light" }
};
static const struct nameint kbdenc_tab[] = {
diff --git a/sys/dev/wscons/wsconsio.h b/sys/dev/wscons/wsconsio.h
index 2026effbe3e..c743093137f 100644
--- a/sys/dev/wscons/wsconsio.h
+++ b/sys/dev/wscons/wsconsio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsconsio.h,v 1.64 2011/09/20 17:00:24 shadchin Exp $ */
+/* $OpenBSD: wsconsio.h,v 1.65 2012/04/17 08:51:24 miod Exp $ */
/* $NetBSD: wsconsio.h,v 1.74 2005/04/28 07:15:44 martin Exp $ */
/*
@@ -125,6 +125,7 @@ struct wscons_event {
#define WSKBD_TYPE_DOMAIN 17 /* Apollo Domain */
#define WSKBD_TYPE_BLUETOOTH 18 /* Bluetooth keyboard */
#define WSKBD_TYPE_KPC 19 /* Palm keypad */
+#define WSKBD_TYPE_SGI 20 /* SGI serial keyboard */
/* Manipulate the keyboard bell. */
struct wskbd_bell_data {
@@ -210,6 +211,7 @@ struct wskbd_map_data {
#define WSMOUSE_TYPE_SUN 14 /* SUN serial mouse */
#define WSMOUSE_TYPE_SYNAPTICS 15 /* Synaptics touchpad */
#define WSMOUSE_TYPE_ALPS 16 /* ALPS touchpad */
+#define WSMOUSE_TYPE_SGI 17 /* SGI serial mouse */
/* Set resolution. Not applicable to all mouse types. */
#define WSMOUSEIO_SRES _IOW('W', 33, u_int)
@@ -320,6 +322,9 @@ struct wsmouse_calibcoords {
#define WSDISPLAY_TYPE_SISFB 63 /* SiS 315 Pro */
#define WSDISPLAY_TYPE_ODYSSEY 64 /* SGI Odyssey */
#define WSDISPLAY_TYPE_IMPACT 65 /* SGI Impact */
+#define WSDISPLAY_TYPE_GRTWO 66 /* SGI GR2 */
+#define WSDISPLAY_TYPE_NEWPORT 67 /* SGI Newport */
+#define WSDISPLAY_TYPE_LIGHT 68 /* SGI Light */
/* Basic display information. Not applicable to all display types. */
struct wsdisplay_fbinfo {