From a529898f02a7bd8cb39291f977c13f82adf54fc3 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 25 Dec 2008 23:56:32 +0000 Subject: Return proper display types to the WSDISPLAYIO_GTYPE ioctl, instead of deprecated WSDISPLAY_TYPE_SUN24; X11 knows about them since several releases already. --- sys/arch/sparc/dev/agten.c | 4 ++-- sys/arch/sparc/dev/tvtwo.c | 4 ++-- sys/arch/sparc/dev/zx.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/arch') 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; -- cgit v1.2.3