use BUS_SPACE_MAP_LARGE

This commit is contained in:
macallan 2009-05-26 03:32:51 +00:00
parent d3ed51a859
commit 0483b5b9d9
3 changed files with 13 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: agten.c,v 1.18 2009/05/12 13:20:05 cegger Exp $ */
/* $NetBSD: agten.c,v 1.19 2009/05/26 03:32:51 macallan Exp $ */
/*-
* Copyright (c) 2007 Michael Lorenz
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: agten.c,v 1.18 2009/05/12 13:20:05 cegger Exp $");
__KERNEL_RCSID(0, "$NetBSD: agten.c,v 1.19 2009/05/26 03:32:51 macallan Exp $");
/*
* a driver for the Fujitsu AG-10e SBus framebuffer
@ -245,9 +245,10 @@ agten_attach(device_t parent, device_t dev, void *aux)
reg = prom_getpropint(node, "i128_fb_physaddr", -1);
sc->sc_i128_fbsz = prom_getpropint(node, "i128_fb_size", -1);
if (sparc_bus_map_large(sc->sc_bustag,
if (sbus_bus_map(sc->sc_bustag,
sa->sa_reg[0].oa_space, sa->sa_reg[0].oa_base + reg,
sc->sc_stride * sc->sc_height, BUS_SPACE_MAP_LINEAR,
sc->sc_stride * sc->sc_height,
BUS_SPACE_MAP_LINEAR | BUS_SPACE_MAP_LARGE,
&sc->sc_i128_fbh) != 0) {
aprint_error_dev(dev, "unable to map the framebuffer\n");

View File

@ -1,4 +1,4 @@
/* $NetBSD: cgsix_sbus.c,v 1.28 2009/05/12 13:20:05 cegger Exp $ */
/* $NetBSD: cgsix_sbus.c,v 1.29 2009/05/26 03:32:51 macallan Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cgsix_sbus.c,v 1.28 2009/05/12 13:20:05 cegger Exp $");
__KERNEL_RCSID(0, "$NetBSD: cgsix_sbus.c,v 1.29 2009/05/26 03:32:51 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -186,7 +186,8 @@ cgsixattach(device_t parent, device_t self, void *aux)
sa->sa_slot,
sa->sa_offset + CGSIX_RAM_OFFSET,
sc->sc_ramsize,
BUS_SPACE_MAP_LINEAR, &bh) != 0) {
BUS_SPACE_MAP_LINEAR | BUS_SPACE_MAP_LARGE,
&bh) != 0) {
aprint_error_dev(self, "cannot map pixels\n");
return;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: zx.c,v 1.29 2009/05/12 13:20:06 cegger Exp $ */
/* $NetBSD: zx.c,v 1.30 2009/05/26 03:32:51 macallan Exp $ */
/*
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: zx.c,v 1.29 2009/05/12 13:20:06 cegger Exp $");
__KERNEL_RCSID(0, "$NetBSD: zx.c,v 1.30 2009/05/26 03:32:51 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -229,8 +229,8 @@ zx_attach(device_t parent, device_t self, void *args)
sc->sc_bt = bt;
sc->sc_paddr = sbus_bus_addr(bt, sa->sa_slot, sa->sa_offset);
if (sparc_bus_map_large(bt, sa->sa_slot, sa->sa_offset + ZX_OFF_SS0,
0x800000, BUS_SPACE_MAP_LINEAR, &bh) != 0) {
if (sbus_bus_map(bt, sa->sa_slot, sa->sa_offset + ZX_OFF_SS0,
0x800000, BUS_SPACE_MAP_LINEAR | BUS_SPACE_MAP_LARGE, &bh) != 0) {
aprint_error_dev(self, "can't map bits\n");
return;
}