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/macppc | |
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/macppc')
-rw-r--r-- | sys/arch/macppc/pci/vgafb.c | 14 |
1 files changed, 5 insertions, 9 deletions
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 |