summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-12-25 23:56:32 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-12-25 23:56:32 +0000
commita529898f02a7bd8cb39291f977c13f82adf54fc3 (patch)
tree1af3ee80d2b6bce67044fc29a45b2a702d7dad64 /sys/arch/sparc/dev
parentebe426e94d0d89c3e2cad9e759dacbb252b2fc2a (diff)
Return proper display types to the WSDISPLAYIO_GTYPE ioctl, instead of
deprecated WSDISPLAY_TYPE_SUN24; X11 knows about them since several releases already.
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/agten.c4
-rw-r--r--sys/arch/sparc/dev/tvtwo.c4
-rw-r--r--sys/arch/sparc/dev/zx.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/sparc/dev/agten.c b/sys/arch/sparc/dev/agten.c
index f8127c35dfb..07e8ab9b42e 100644
--- a/sys/arch/sparc/dev/agten.c
+++ b/sys/arch/sparc/dev/agten.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: agten.c,v 1.10 2006/06/02 20:00:54 miod Exp $ */
+/* $OpenBSD: agten.c,v 1.11 2008/12/25 23:56:29 miod Exp $ */
/*
* Copyright (c) 2002, 2003, Miodrag Vallat.
* All rights reserved.
@@ -224,7 +224,7 @@ agten_ioctl(void *dev, u_long cmd, caddr_t data, int flags, struct proc *p)
switch (cmd) {
case WSDISPLAYIO_GTYPE:
- *(u_int *)data = WSDISPLAY_TYPE_SUN24;
+ *(u_int *)data = WSDISPLAY_TYPE_AGTEN;
break;
case WSDISPLAYIO_GINFO:
wdf = (struct wsdisplay_fbinfo *)data;
diff --git a/sys/arch/sparc/dev/tvtwo.c b/sys/arch/sparc/dev/tvtwo.c
index 89a9267b875..637d22ade2b 100644
--- a/sys/arch/sparc/dev/tvtwo.c
+++ b/sys/arch/sparc/dev/tvtwo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tvtwo.c,v 1.15 2008/03/15 21:10:34 miod Exp $ */
+/* $OpenBSD: tvtwo.c,v 1.16 2008/12/25 23:56:29 miod Exp $ */
/*
* Copyright (c) 2003, 2006, 2008, Miodrag Vallat.
@@ -296,7 +296,7 @@ tvtwo_ioctl(void *dev, u_long cmd, caddr_t data, int flags, struct proc *p)
*/
switch (cmd) {
case WSDISPLAYIO_GTYPE:
- *(u_int *)data = WSDISPLAY_TYPE_SUN24;
+ *(u_int *)data = WSDISPLAY_TYPE_XVIDEO;
break;
case WSDISPLAYIO_GINFO:
wdf = (struct wsdisplay_fbinfo *)data;
diff --git a/sys/arch/sparc/dev/zx.c b/sys/arch/sparc/dev/zx.c
index 6395d0f08b6..93e19d9d22b 100644
--- a/sys/arch/sparc/dev/zx.c
+++ b/sys/arch/sparc/dev/zx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zx.c,v 1.20 2008/06/26 05:42:13 ray Exp $ */
+/* $OpenBSD: zx.c,v 1.21 2008/12/25 23:56:29 miod Exp $ */
/* $NetBSD: zx.c,v 1.5 2002/10/02 16:52:46 thorpej Exp $ */
/*
@@ -304,7 +304,7 @@ zx_ioctl(void *dev, u_long cmd, caddr_t data, int flags, struct proc *p)
*/
switch (cmd) {
case WSDISPLAYIO_GTYPE:
- *(u_int *)data = WSDISPLAY_TYPE_SUN24;
+ *(u_int *)data = WSDISPLAY_TYPE_SUNLEO;
break;
case WSDISPLAYIO_GINFO:
wdf = (struct wsdisplay_fbinfo *)data;