summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-07-25 19:19:56 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-07-25 19:19:56 +0000
commit5b5233c837ae4ecd73c00c30f08915bcb9aa1e62 (patch)
treead11f360557ef9e4678c595736b3dc052f26e87a /sys
parent2d98f6e07641ed0fb1d4817e207dace9731f5edf (diff)
There's no need to override the default mapping to big endian now that rasops8 handles byte swapping itself.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/dev/vgafb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc64/dev/vgafb.c b/sys/arch/sparc64/dev/vgafb.c
index d654ba490ff..2787e4e25c8 100644
--- a/sys/arch/sparc64/dev/vgafb.c
+++ b/sys/arch/sparc64/dev/vgafb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vgafb.c,v 1.22 2002/07/24 15:36:38 jason Exp $ */
+/* $OpenBSD: vgafb.c,v 1.23 2002/07/25 19:19:55 jason Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -203,7 +203,7 @@ vgafbattach(parent, self, aux)
sc->sc_rasops.ri_stride = sc->sc_linebytes;
}
- sc->sc_rasops.ri_flg = RI_CENTER;
+ sc->sc_rasops.ri_flg = RI_CENTER | RI_BSWAP;
sc->sc_rasops.ri_bits = (void *)bus_space_vaddr(sc->sc_mem_t,
sc->sc_mem_h);
sc->sc_rasops.ri_width = sc->sc_width;
@@ -525,8 +525,8 @@ vgafb_mapregs(sc, pa)
} else {
if (hasmem)
continue;
- if (bus_space_map2(pa->pa_memt, SBUS_BUS_SPACE,
- ba, bs, 0, NULL, &sc->sc_mem_h)) {
+ if (bus_space_map(pa->pa_memt, ba, bs,
+ 0, &sc->sc_mem_h)) {
printf(": can't map mem space\n");
continue;
}