diff options
author | 2000-09-19 05:28:11 +0000 | |
---|---|---|
committer | 2000-09-19 05:28:11 +0000 | |
commit | 674fbc38fd846b4a0cf272fed4d17887fabeeb2a (patch) | |
tree | e403096679776d18399e4fea4198b3de4ab19394 | |
parent | Use the BATs to map devices. This is partially so that larger (diff) | |
download | wireguard-openbsd-674fbc38fd846b4a0cf272fed4d17887fabeeb2a.tar.xz wireguard-openbsd-674fbc38fd846b4a0cf272fed4d17887fabeeb2a.zip |
Add openfirmware handle so that vgafb can set colormap via openfirmware.
This is an ugly kludge, but until the vgafb is made smart enough to
modify the vga registers directly.
-rw-r--r-- | sys/arch/powerpc/powerpc/ofw_machdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/powerpc/powerpc/ofw_machdep.c b/sys/arch/powerpc/powerpc/ofw_machdep.c index 4c7438d1b25..4bb0d2ef483 100644 --- a/sys/arch/powerpc/powerpc/ofw_machdep.c +++ b/sys/arch/powerpc/powerpc/ofw_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofw_machdep.c,v 1.16 2000/09/07 03:02:04 rahnds Exp $ */ +/* $OpenBSD: ofw_machdep.c,v 1.17 2000/09/19 05:28:11 rahnds Exp $ */ /* $NetBSD: ofw_machdep.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */ /* @@ -362,6 +362,7 @@ bus_space_tag_t cons_membus = &ppc_membus; bus_space_handle_t cons_display_mem_h; bus_space_handle_t cons_display_ctl_h; int cons_height, cons_width, cons_linebytes, cons_depth; +int cons_display_ofh; u_int32_t cons_addr; #include "vgafb_pci.h" @@ -392,6 +393,7 @@ ofwconprobe() printf("console out [%s]", name); */ cons_displaytype=1; + cons_display_ofh = OF_stdout; err = OF_getprop(stdout_node, "width", &cons_width, 4); if ( err != 4) { cons_width = 0; |