avoid using PAGE_SIZE directly so sparc/GENERIC builds again
This commit is contained in:
parent
45845cf0d7
commit
565f3dd6cd
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: agten.c,v 1.23 2010/01/27 21:02:22 macallan Exp $ */
|
/* $NetBSD: agten.c,v 1.24 2010/01/29 23:50:01 macallan Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2007 Michael Lorenz
|
* Copyright (c) 2007 Michael Lorenz
|
||||||
@ -27,7 +27,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: agten.c,v 1.23 2010/01/27 21:02:22 macallan Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: agten.c,v 1.24 2010/01/29 23:50:01 macallan Exp $");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* a driver for the Fujitsu AG-10e SBus framebuffer
|
* a driver for the Fujitsu AG-10e SBus framebuffer
|
||||||
@ -74,7 +74,7 @@ __KERNEL_RCSID(0, "$NetBSD: agten.c,v 1.23 2010/01/27 21:02:22 macallan Exp $");
|
|||||||
#include <dev/ic/i128reg.h>
|
#include <dev/ic/i128reg.h>
|
||||||
#include <dev/ic/i128var.h>
|
#include <dev/ic/i128var.h>
|
||||||
|
|
||||||
#include <machine/vmparam.h>
|
#include <uvm/uvm_extern.h>
|
||||||
|
|
||||||
#include "opt_agten.h"
|
#include "opt_agten.h"
|
||||||
#include "ioconf.h"
|
#include "ioconf.h"
|
||||||
@ -248,7 +248,7 @@ agten_attach(device_t parent, device_t dev, void *aux)
|
|||||||
sc->sc_i128_fbsz = prom_getpropint(node, "i128_fb_size", -1);
|
sc->sc_i128_fbsz = prom_getpropint(node, "i128_fb_size", -1);
|
||||||
if (sbus_bus_map(sc->sc_bustag,
|
if (sbus_bus_map(sc->sc_bustag,
|
||||||
sa->sa_reg[0].oa_space, sa->sa_reg[0].oa_base + reg,
|
sa->sa_reg[0].oa_space, sa->sa_reg[0].oa_base + reg,
|
||||||
(sc->sc_stride * sc->sc_height + PAGE_MASK) & ~PAGE_MASK,
|
round_page(sc->sc_stride * sc->sc_height),
|
||||||
BUS_SPACE_MAP_LINEAR | BUS_SPACE_MAP_LARGE,
|
BUS_SPACE_MAP_LINEAR | BUS_SPACE_MAP_LARGE,
|
||||||
&sc->sc_i128_fbh) != 0) {
|
&sc->sc_i128_fbh) != 0) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user