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/sparc64/dev | |
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/sparc64/dev')
-rw-r--r-- | sys/arch/sparc64/dev/creator.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/vgafb.c | 4 |
2 files changed, 6 insertions, 2 deletions
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: |