diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-05 23:04:26 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-05 23:04:26 +0000 |
commit | d6a1cbbf61a5735f55c3cc923bb6fd52ca1d0581 (patch) | |
tree | fedfc814b5ccdb10b20e816cd7fdf098b6161bea /sys/arch | |
parent | a79d9e271a9c209f60a07ed7852e09374d2eaf69 (diff) |
Let wsdisplay drivers return zero for WSDISPLAYIO_[GS]VIDEO ioctls - most
of the work is done in the upper layer, but they get to see the ioctl,
so don't always return an error.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm/xscale/pxa2x0_lcd.c | 10 | ||||
-rw-r--r-- | sys/arch/luna88k/dev/lunafb.c | 4 | ||||
-rw-r--r-- | sys/arch/macppc/pci/vgafb.c | 14 | ||||
-rw-r--r-- | sys/arch/sparc/dev/agten.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/dev/bwtwo.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/dev/cgeight.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/dev/cgfour.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/dev/cgsix.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/dev/cgthree.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/dev/cgtwo.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/dev/p9000.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/dev/p9100.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/dev/tvtwo.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/dev/vigra.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/creator.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/vgafb.c | 4 |
16 files changed, 53 insertions, 27 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_lcd.c b/sys/arch/arm/xscale/pxa2x0_lcd.c index 5eab0ab878f..77284933022 100644 --- a/sys/arch/arm/xscale/pxa2x0_lcd.c +++ b/sys/arch/arm/xscale/pxa2x0_lcd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pxa2x0_lcd.c,v 1.6 2005/01/05 19:12:47 miod Exp $ */ +/* $OpenBSD: pxa2x0_lcd.c,v 1.7 2005/01/05 23:04:23 miod Exp $ */ /* $NetBSD: pxa2x0_lcd.c,v 1.8 2003/10/03 07:24:05 bsh Exp $ */ /* @@ -605,7 +605,7 @@ pxa2x0_lcd_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *p) switch (cmd) { case WSDISPLAYIO_GTYPE: *(u_int *)data = WSDISPLAY_TYPE_UNKNOWN; /* XXX */ - return 0; + break; case WSDISPLAYIO_GINFO: wsdisp_info = (struct wsdisplay_fbinfo *)data; @@ -614,7 +614,7 @@ pxa2x0_lcd_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *p) wsdisp_info->width = sc->geometry->panel_width; wsdisp_info->depth = 16; /* XXX */ wsdisp_info->cmsize = 0; - return 0; + break; case WSDISPLAYIO_GETCMAP: case WSDISPLAYIO_PUTCMAP: @@ -622,6 +622,8 @@ pxa2x0_lcd_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *p) case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GCURPOS: case WSDISPLAYIO_SCURPOS: case WSDISPLAYIO_GCURMAX: @@ -630,7 +632,7 @@ pxa2x0_lcd_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *p) return -1; /* not implemented */ } - return -1; + return (0); } paddr_t diff --git a/sys/arch/luna88k/dev/lunafb.c b/sys/arch/luna88k/dev/lunafb.c index b85377cf91b..036977ad527 100644 --- a/sys/arch/luna88k/dev/lunafb.c +++ b/sys/arch/luna88k/dev/lunafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lunafb.c,v 1.3 2004/05/10 10:30:23 aoyama Exp $ */ +/* $OpenBSD: lunafb.c,v 1.4 2005/01/05 23:04:24 miod Exp $ */ /* $NetBSD: lunafb.c,v 1.7.6.1 2002/08/07 01:48:34 lukem Exp $ */ /*- @@ -265,6 +265,8 @@ omfbioctl(v, cmd, data, flag, p) case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GCURPOS: case WSDISPLAYIO_SCURPOS: case WSDISPLAYIO_GCURMAX: diff --git a/sys/arch/macppc/pci/vgafb.c b/sys/arch/macppc/pci/vgafb.c index bd8b957b9aa..5843485eea5 100644 --- a/sys/arch/macppc/pci/vgafb.c +++ b/sys/arch/macppc/pci/vgafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vgafb.c,v 1.23 2004/03/17 15:47:59 drahn Exp $ */ +/* $OpenBSD: vgafb.c,v 1.24 2005/01/05 23:04:24 miod Exp $ */ /* $NetBSD: vga.c,v 1.3 1996/12/02 22:24:54 cgd Exp $ */ /* @@ -263,14 +263,9 @@ vgafb_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *p) * bad accellerated X servers that does not restore * the correct palette. */ - if (cons_depth == 8) vgafb_restore_default_colors(vc); - - /* now that we have done our work, let the wscons - * layer handle this ioctl - */ - return -1; + break; case WSDISPLAYIO_GETPARAM: { @@ -322,6 +317,8 @@ vgafb_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *p) case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GCURPOS: case WSDISPLAYIO_SCURPOS: case WSDISPLAYIO_GCURMAX: @@ -331,8 +328,7 @@ vgafb_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *p) return -1; /* not supported yet */ } - /* XXX */ - return -1; + return (0); } paddr_t diff --git a/sys/arch/sparc/dev/agten.c b/sys/arch/sparc/dev/agten.c index 675a3578da3..12a7187cdd6 100644 --- a/sys/arch/sparc/dev/agten.c +++ b/sys/arch/sparc/dev/agten.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agten.c,v 1.6 2004/11/29 22:07:36 miod Exp $ */ +/* $OpenBSD: agten.c,v 1.7 2005/01/05 23:04:24 miod Exp $ */ /* * Copyright (c) 2002, 2003, Miodrag Vallat. * All rights reserved. @@ -271,6 +271,8 @@ agten_ioctl(dev, cmd, data, flags, p) case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GCURPOS: case WSDISPLAYIO_SCURPOS: case WSDISPLAYIO_GCURMAX: diff --git a/sys/arch/sparc/dev/bwtwo.c b/sys/arch/sparc/dev/bwtwo.c index 98cc95679bc..786bfa84df8 100644 --- a/sys/arch/sparc/dev/bwtwo.c +++ b/sys/arch/sparc/dev/bwtwo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwtwo.c,v 1.28 2004/11/29 22:07:36 miod Exp $ */ +/* $OpenBSD: bwtwo.c,v 1.29 2005/01/05 23:04:24 miod Exp $ */ /* $NetBSD: bwtwo.c,v 1.33 1997/05/24 20:16:02 pk Exp $ */ /* @@ -338,6 +338,8 @@ bwtwo_ioctl(v, cmd, data, flags, p) case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GCURPOS: case WSDISPLAYIO_SCURPOS: case WSDISPLAYIO_GCURMAX: diff --git a/sys/arch/sparc/dev/cgeight.c b/sys/arch/sparc/dev/cgeight.c index b46207911da..6fc94c2f09b 100644 --- a/sys/arch/sparc/dev/cgeight.c +++ b/sys/arch/sparc/dev/cgeight.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgeight.c,v 1.22 2004/11/29 22:07:36 miod Exp $ */ +/* $OpenBSD: cgeight.c,v 1.23 2005/01/05 23:04:24 miod Exp $ */ /* $NetBSD: cgeight.c,v 1.13 1997/05/24 20:16:04 pk Exp $ */ /* @@ -266,6 +266,8 @@ cgeight_ioctl(v, cmd, data, flags, p) case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GCURPOS: case WSDISPLAYIO_SCURPOS: case WSDISPLAYIO_GCURMAX: diff --git a/sys/arch/sparc/dev/cgfour.c b/sys/arch/sparc/dev/cgfour.c index e1e13cf87f9..dd7b6982820 100644 --- a/sys/arch/sparc/dev/cgfour.c +++ b/sys/arch/sparc/dev/cgfour.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgfour.c,v 1.22 2004/11/29 22:07:36 miod Exp $ */ +/* $OpenBSD: cgfour.c,v 1.23 2005/01/05 23:04:24 miod Exp $ */ /* $NetBSD: cgfour.c,v 1.13 1997/05/24 20:16:06 pk Exp $ */ /* @@ -281,6 +281,8 @@ cgfour_ioctl(v, cmd, data, flags, p) case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GCURPOS: case WSDISPLAYIO_SCURPOS: case WSDISPLAYIO_GCURMAX: diff --git a/sys/arch/sparc/dev/cgsix.c b/sys/arch/sparc/dev/cgsix.c index 962799e3cb0..653d085b51c 100644 --- a/sys/arch/sparc/dev/cgsix.c +++ b/sys/arch/sparc/dev/cgsix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgsix.c,v 1.30 2004/11/29 22:07:36 miod Exp $ */ +/* $OpenBSD: cgsix.c,v 1.31 2005/01/05 23:04:24 miod Exp $ */ /* $NetBSD: cgsix.c,v 1.33 1997/08/07 19:12:30 pk Exp $ */ /* @@ -416,6 +416,8 @@ cgsix_ioctl(dev, cmd, data, flags, p) case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GCURPOS: case WSDISPLAYIO_SCURPOS: case WSDISPLAYIO_GCURMAX: diff --git a/sys/arch/sparc/dev/cgthree.c b/sys/arch/sparc/dev/cgthree.c index b49e79cf254..387591d6ab5 100644 --- a/sys/arch/sparc/dev/cgthree.c +++ b/sys/arch/sparc/dev/cgthree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgthree.c,v 1.26 2004/11/29 22:07:36 miod Exp $ */ +/* $OpenBSD: cgthree.c,v 1.27 2005/01/05 23:04:24 miod Exp $ */ /* $NetBSD: cgthree.c,v 1.33 1997/05/24 20:16:11 pk Exp $ */ /* @@ -367,6 +367,8 @@ cgthree_ioctl(v, cmd, data, flags, p) case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GCURPOS: case WSDISPLAYIO_SCURPOS: case WSDISPLAYIO_GCURMAX: diff --git a/sys/arch/sparc/dev/cgtwo.c b/sys/arch/sparc/dev/cgtwo.c index 5ad1e7c383e..2d243e25d71 100644 --- a/sys/arch/sparc/dev/cgtwo.c +++ b/sys/arch/sparc/dev/cgtwo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgtwo.c,v 1.30 2004/11/29 22:07:36 miod Exp $ */ +/* $OpenBSD: cgtwo.c,v 1.31 2005/01/05 23:04:25 miod Exp $ */ /* $NetBSD: cgtwo.c,v 1.22 1997/05/24 20:16:12 pk Exp $ */ /* @@ -294,6 +294,8 @@ cgtwo_ioctl(v, cmd, data, flags, p) case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GCURPOS: case WSDISPLAYIO_SCURPOS: case WSDISPLAYIO_GCURMAX: diff --git a/sys/arch/sparc/dev/p9000.c b/sys/arch/sparc/dev/p9000.c index a61fe87e483..d86580e927e 100644 --- a/sys/arch/sparc/dev/p9000.c +++ b/sys/arch/sparc/dev/p9000.c @@ -1,4 +1,4 @@ -/* $OpenBSD: p9000.c,v 1.10 2004/11/29 22:07:37 miod Exp $ */ +/* $OpenBSD: p9000.c,v 1.11 2005/01/05 23:04:25 miod Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. @@ -376,6 +376,8 @@ p9000_ioctl(void *v, u_long cmd, caddr_t data, int flags, struct proc *p) case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GCURPOS: case WSDISPLAYIO_SCURPOS: case WSDISPLAYIO_GCURMAX: diff --git a/sys/arch/sparc/dev/p9100.c b/sys/arch/sparc/dev/p9100.c index 1f58ccf3baf..8004709c5f9 100644 --- a/sys/arch/sparc/dev/p9100.c +++ b/sys/arch/sparc/dev/p9100.c @@ -1,4 +1,4 @@ -/* $OpenBSD: p9100.c,v 1.31 2004/11/29 22:07:37 miod Exp $ */ +/* $OpenBSD: p9100.c,v 1.32 2005/01/05 23:04:25 miod Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. @@ -420,6 +420,8 @@ p9100_ioctl(void *v, u_long cmd, caddr_t data, int flags, struct proc *p) case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GCURPOS: case WSDISPLAYIO_SCURPOS: case WSDISPLAYIO_GCURMAX: diff --git a/sys/arch/sparc/dev/tvtwo.c b/sys/arch/sparc/dev/tvtwo.c index dd285920315..5f690e0cf00 100644 --- a/sys/arch/sparc/dev/tvtwo.c +++ b/sys/arch/sparc/dev/tvtwo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tvtwo.c,v 1.4 2004/11/29 22:07:37 miod Exp $ */ +/* $OpenBSD: tvtwo.c,v 1.5 2005/01/05 23:04:25 miod Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. * All rights reserved. @@ -273,6 +273,8 @@ tvtwo_ioctl(void *dev, u_long cmd, caddr_t data, int flags, struct proc *p) case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GCURPOS: case WSDISPLAYIO_SCURPOS: case WSDISPLAYIO_GCURMAX: diff --git a/sys/arch/sparc/dev/vigra.c b/sys/arch/sparc/dev/vigra.c index 45cf21aad94..ffe275e3d1a 100644 --- a/sys/arch/sparc/dev/vigra.c +++ b/sys/arch/sparc/dev/vigra.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vigra.c,v 1.11 2004/11/29 22:07:37 miod Exp $ */ +/* $OpenBSD: vigra.c,v 1.12 2005/01/05 23:04:25 miod Exp $ */ /* * Copyright (c) 2002, 2003, Miodrag Vallat. @@ -372,6 +372,8 @@ vigra_ioctl(void *v, u_long cmd, caddr_t data, int flags, struct proc *p) case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GCURPOS: case WSDISPLAYIO_SCURPOS: case WSDISPLAYIO_GCURMAX: diff --git a/sys/arch/sparc64/dev/creator.c b/sys/arch/sparc64/dev/creator.c index 923aebccffe..46ac93358f0 100644 --- a/sys/arch/sparc64/dev/creator.c +++ b/sys/arch/sparc64/dev/creator.c @@ -1,4 +1,4 @@ -/* $OpenBSD: creator.c,v 1.30 2004/11/29 22:07:40 miod Exp $ */ +/* $OpenBSD: creator.c,v 1.31 2005/01/05 23:04:25 miod Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -243,6 +243,8 @@ creator_ioctl(v, cmd, data, flags, p) break; case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GETCMAP: case WSDISPLAYIO_PUTCMAP: default: diff --git a/sys/arch/sparc64/dev/vgafb.c b/sys/arch/sparc64/dev/vgafb.c index efe9dd9ec9c..477c1ea6d18 100644 --- a/sys/arch/sparc64/dev/vgafb.c +++ b/sys/arch/sparc64/dev/vgafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vgafb.c,v 1.37 2004/12/02 02:41:02 brad Exp $ */ +/* $OpenBSD: vgafb.c,v 1.38 2005/01/05 23:04:25 miod Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -230,6 +230,8 @@ vgafb_ioctl(v, cmd, data, flags, p) case WSDISPLAYIO_SVIDEO: case WSDISPLAYIO_GVIDEO: + break; + case WSDISPLAYIO_GCURPOS: case WSDISPLAYIO_SCURPOS: case WSDISPLAYIO_GCURMAX: |