Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-9]: src/sys/dev/pci Pull up following revision(s) (requested by r...
details: https://anonhg.NetBSD.org/src/rev/9f785390e684
branches: netbsd-9
changeset: 462369:9f785390e684
user: martin <martin%NetBSD.org@localhost>
date: Sun Aug 18 09:58:49 2019 +0000
description:
Pull up following revision(s) (requested by rin in ticket #86):
sys/dev/pci/radeonfb.c: revision 1.105
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 1e7c4d2c1b10 -r 9f785390e684 sys/dev/pci/radeonfb.c
--- a/sys/dev/pci/radeonfb.c Sun Aug 18 09:57:40 2019 +0000
+++ b/sys/dev/pci/radeonfb.c Sun Aug 18 09:58:49 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.104.4.1 2019/08/18 09:58:49 martin 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.104.4.1 2019/08/18 09:58:49 martin 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