Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wsfb look for a 'virtual_address' property and use i...
details: https://anonhg.NetBSD.org/src/rev/b8917e91d14a
branches: trunk
changeset: 763005:b8917e91d14a
user: macallan <macallan%NetBSD.org@localhost>
date: Tue Mar 08 03:16:30 2011 +0000
description:
look for a 'virtual_address' property and use it as fb address
diffstat:
sys/dev/wsfb/genfb.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (39 lines):
diff -r e9d5110913f0 -r b8917e91d14a sys/dev/wsfb/genfb.c
--- a/sys/dev/wsfb/genfb.c Tue Mar 08 02:57:00 2011 +0000
+++ b/sys/dev/wsfb/genfb.c Tue Mar 08 03:16:30 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfb.c,v 1.38 2011/02/22 01:26:14 jmcneill Exp $ */
+/* $NetBSD: genfb.c,v 1.39 2011/03/08 03:16:30 macallan Exp $ */
/*-
* Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.38 2011/02/22 01:26:14 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.39 2011/03/08 03:16:30 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -102,7 +102,7 @@
genfb_init(struct genfb_softc *sc)
{
prop_dictionary_t dict;
- uint64_t cmap_cb, pmf_cb, mode_cb, bl_cb;
+ uint64_t cmap_cb, pmf_cb, mode_cb, bl_cb, fbaddr;
uint32_t fboffset;
bool console;
@@ -133,6 +133,11 @@
sc->sc_fboffset = fboffset;
+ sc->sc_fbaddr = NULL;
+ if (prop_dictionary_get_uint64(dict, "virtual_address", &fbaddr)) {
+ sc->sc_fbaddr = (void *)fbaddr;
+ }
+
if (!prop_dictionary_get_uint32(dict, "linebytes", &sc->sc_stride))
sc->sc_stride = (sc->sc_width * sc->sc_depth) >> 3;
Home |
Main Index |
Thread Index |
Old Index