summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k/dev/grf.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1999-04-24 06:39:42 +0000
committerJason Downs <downsj@cvs.openbsd.org>1999-04-24 06:39:42 +0000
commitc0a834999d2cacf20cd9faa9e14bafa87bd7b550 (patch)
treeb7487da64b179b63848dd9a1999ed139d8a526b6 /sys/arch/mac68k/dev/grf.c
parent8719cd984582e26609154ea1717c68d2f83419c5 (diff)
Use the generic m68k param.h.
Diffstat (limited to 'sys/arch/mac68k/dev/grf.c')
-rw-r--r--sys/arch/mac68k/dev/grf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/mac68k/dev/grf.c b/sys/arch/mac68k/dev/grf.c
index 694423e145d..8ed4a43d03e 100644
--- a/sys/arch/mac68k/dev/grf.c
+++ b/sys/arch/mac68k/dev/grf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grf.c,v 1.8 1998/11/20 23:57:24 deraadt Exp $ */
+/* $OpenBSD: grf.c,v 1.9 1999/04/24 06:39:40 downsj Exp $ */
/* $NetBSD: grf.c,v 1.41 1997/02/24 06:20:04 scottr Exp $ */
/*
@@ -331,9 +331,9 @@ grfaddr(gp, off)
register struct grfmode *gm = gp->sc_grfmode;
u_long addr;
- if (off >= 0 && off < mac68k_round_page(gm->fbsize + gm->fboff)) {
+ if (off >= 0 && off < m68k_round_page(gm->fbsize + gm->fboff)) {
addr = (u_long)(*gp->sc_phys)(gp, (vm_offset_t)gm->fbbase)+off;
- return mac68k_btop(addr);
+ return m68k_btop(addr);
}
/* bogus */
return (-1);
@@ -357,13 +357,13 @@ grfmap(dev, addrp, p)
if (grfdebug & GDB_MMAP)
printf("grfmap(%d): addr %p\n", p->p_pid, *addrp);
#endif
- len = mac68k_round_page(gp->sc_grfmode->fbsize + gp->sc_grfmode->fboff);
+ len = m68k_round_page(gp->sc_grfmode->fbsize + gp->sc_grfmode->fboff);
flags = MAP_SHARED | MAP_FIXED;
if (gp->sc_slot == NULL)
- *addrp = (caddr_t) mac68k_trunc_page(mac68k_vidphys);
+ *addrp = (caddr_t) m68k_trunc_page(mac68k_vidphys);
else
- *addrp = (caddr_t) mac68k_trunc_page(
+ *addrp = (caddr_t) m68k_trunc_page(
NUBUS_SLOT2PA(gp->sc_slot->slot));
vn.v_type = VCHR; /* XXX */