From: miod Date: Sun, 24 Aug 2008 20:10:55 +0000 (+0000) Subject: Define a proper wsdisplay type for legss(4). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8c4f81593d9998f29b4849b47ac3aae9ac0dc199;p=openbsd Define a proper wsdisplay type for legss(4). --- diff --git a/sbin/wsconsctl/util.c b/sbin/wsconsctl/util.c index 1c5b87985c8..f2c996066e8 100644 --- a/sbin/wsconsctl/util.c +++ b/sbin/wsconsctl/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.37 2008/06/26 05:42:06 ray Exp $ */ +/* $OpenBSD: util.c,v 1.38 2008/08/24 20:10:55 miod Exp $ */ /* $NetBSD: util.c,v 1.8 2000/03/14 08:11:53 sato Exp $ */ /*- @@ -140,7 +140,8 @@ static const struct nameint dpytype_tab[] = { { WSDISPLAY_TYPE_TVRX, "tvrx" }, { WSDISPLAY_TYPE_CFXGA, "cfxga" }, { WSDISPLAY_TYPE_LCSPX, "dec-lcspx" }, - { WSDISPLAY_TYPE_GBE, "gbe" } + { WSDISPLAY_TYPE_GBE, "gbe" }, + { WSDISPLAY_TYPE_LEGSS, "dec-legss" } }; static const struct nameint kbdenc_tab[] = { diff --git a/sys/arch/vax/mbus/legss.c b/sys/arch/vax/mbus/legss.c index 6380aa15e9d..b111e21a98e 100644 --- a/sys/arch/vax/mbus/legss.c +++ b/sys/arch/vax/mbus/legss.c @@ -1,4 +1,4 @@ -/* $OpenBSD: legss.c,v 1.2 2008/08/23 22:57:11 miod Exp $ */ +/* $OpenBSD: legss.c,v 1.3 2008/08/24 20:10:57 miod Exp $ */ /* * Copyright (c) 2008 Miodrag Vallat. @@ -270,7 +270,7 @@ legss_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *p) switch (cmd) { case WSDISPLAYIO_GTYPE: - *(u_int *)data = 0; /* XXX WSDISPLAY_TYPE_LEGSS; */ + *(u_int *)data = WSDISPLAY_TYPE_LEGSS; break; case WSDISPLAYIO_GINFO: diff --git a/sys/dev/wscons/wsconsio.h b/sys/dev/wscons/wsconsio.h index ec852818986..11869506b69 100644 --- a/sys/dev/wscons/wsconsio.h +++ b/sys/dev/wscons/wsconsio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wsconsio.h,v 1.47 2007/11/27 14:13:39 jsing Exp $ */ +/* $OpenBSD: wsconsio.h,v 1.48 2008/08/24 20:10:57 miod Exp $ */ /* $NetBSD: wsconsio.h,v 1.74 2005/04/28 07:15:44 martin Exp $ */ /* @@ -300,6 +300,7 @@ struct wsmouse_calibcoords { #define WSDISPLAY_TYPE_CFXGA 52 /* CF VoyagerVGA */ #define WSDISPLAY_TYPE_LCSPX 53 /* DEC LCSPX (VS4000) */ #define WSDISPLAY_TYPE_GBE 54 /* SGI GBE frame buffer */ +#define WSDISPLAY_TYPE_LEGSS 55 /* DEC LEGSS (VS35x0) */ /* Basic display information. Not applicable to all display types. */ struct wsdisplay_fbinfo {