Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Support bitmap fonts with stride 4 (i.e., width ...



details:   https://anonhg.NetBSD.org/src/rev/a9f31aa04c8a
branches:  trunk
changeset: 964736:a9f31aa04c8a
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Aug 15 00:50:11 2019 +0000

description:
Support bitmap fonts with stride 4 (i.e., width 17 to 32).

diffstat:

 sys/dev/pci/radeonfb.c |  15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r 37cbd8f23858 -r a9f31aa04c8a sys/dev/pci/radeonfb.c
--- a/sys/dev/pci/radeonfb.c    Thu Aug 15 00:27:47 2019 +0000
+++ b/sys/dev/pci/radeonfb.c    Thu Aug 15 00:50:11 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeonfb.c,v 1.104 2019/03/27 22:00:33 macallan Exp $ */
+/*     $NetBSD: radeonfb.c,v 1.105 2019/08/15 00:50:11 rin Exp $ */
 
 /*-
  * Copyright (c) 2006 Itronix Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.104 2019/03/27 22:00:33 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.105 2019/08/15 00:50:11 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2931,6 +2931,7 @@
        uint32_t                reg;
        uint8_t                 *data8;
        uint16_t                *data16;
+       uint32_t                *data32;
        void                    *data;
 
        if (dp->rd_wsmode != WSDISPLAYIO_MODE_EMUL)
@@ -3009,6 +3010,16 @@
                        }
                        break;
                }
+               case 4: {
+                       data32 = data;
+                       for (i = 0; i < h; i++) {
+                               reg = *data32;
+                               bus_space_write_stream_4(sc->sc_regt, 
+                                   sc->sc_regh, RADEON_HOST_DATA0, reg);
+                               data32++;
+                       }
+                       break;
+               }
        }
        if (attr & 1)
                radeonfb_rectfill(dp, xd, yd + h - 2, w, 1, fg);



Home | Main Index | Thread Index | Old Index