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/sparc | |
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/sparc')
-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 |
11 files changed, 33 insertions, 11 deletions
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: |