Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amiga/dev Add support for WSDISPLAYIO_MODE_DUMBFB t...



details:   https://anonhg.NetBSD.org/src/rev/b19ca7549e9a
branches:  trunk
changeset: 379699:b19ca7549e9a
user:      rin <rin%NetBSD.org@localhost>
date:      Tue Jun 15 08:53:47 2021 +0000

description:
Add support for WSDISPLAYIO_MODE_DUMBFB to WSDISPLAYIO_SMODE.

diffstat:

 sys/arch/amiga/dev/amidisplaycc.c |  14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r e34194a0deab -r b19ca7549e9a sys/arch/amiga/dev/amidisplaycc.c
--- a/sys/arch/amiga/dev/amidisplaycc.c Tue Jun 15 08:48:49 2021 +0000
+++ b/sys/arch/amiga/dev/amidisplaycc.c Tue Jun 15 08:53:47 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amidisplaycc.c,v 1.34 2021/04/24 23:36:24 thorpej Exp $ */
+/*     $NetBSD: amidisplaycc.c,v 1.35 2021/06/15 08:53:47 rin Exp $ */
 
 /*-
  * Copyright (c) 2000 Jukka Andberg.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amidisplaycc.c,v 1.34 2021/04/24 23:36:24 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amidisplaycc.c,v 1.35 2021/06/15 08:53:47 rin Exp $");
 
 /*
  * wscons interface to amiga custom chips. Contains the necessary functions
@@ -1041,11 +1041,15 @@ amidisplaycc_ioctl(void *dp, void *vs, u
                return (0);
 
        case WSDISPLAYIO_SMODE:
-               if (INTDATA == WSDISPLAYIO_MODE_EMUL)
+               switch (INTDATA) {
+               case WSDISPLAYIO_MODE_EMUL:
                        return amidisplaycc_setgfxview(adp, 0);
-               if (INTDATA == WSDISPLAYIO_MODE_MAPPED)
+               case WSDISPLAYIO_MODE_MAPPED:
+               case WSDISPLAYIO_MODE_DUMBFB:
                        return amidisplaycc_setgfxview(adp, 1);
-               return (EINVAL);
+               default:
+                       return (EINVAL);
+               }
 
        case WSDISPLAYIO_GINFO:
                FBINFO.width  = adp->gfxwidth;



Home | Main Index | Thread Index | Old Index