summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k/dev/grf.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-11-01 12:13:48 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-11-01 12:13:48 +0000
commitd5cc9696a2b0e4aab5c615d0009f9ab5030bbcaa (patch)
tree9a94822b0c5101e2ea8729a3c2885a26f42e1493 /sys/arch/mac68k/dev/grf.c
parent9dcaf3656438ee022f80bec8c3b7b7d5d3765802 (diff)
Change d_mmap in struct cdevsw from:
int (*d_mmap) __P((dev_t, int, int)); to: paddr_t (*d_mmap) __P((dev_t, off_t, int)); This allows us to mmap devices past 4GB offsets.
Diffstat (limited to 'sys/arch/mac68k/dev/grf.c')
-rw-r--r--sys/arch/mac68k/dev/grf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mac68k/dev/grf.c b/sys/arch/mac68k/dev/grf.c
index d0f1810a74e..19e2ebd6cbf 100644
--- a/sys/arch/mac68k/dev/grf.c
+++ b/sys/arch/mac68k/dev/grf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grf.c,v 1.16 2001/09/11 20:05:24 miod Exp $ */
+/* $OpenBSD: grf.c,v 1.17 2001/11/01 12:13:46 art Exp $ */
/* $NetBSD: grf.c,v 1.41 1997/02/24 06:20:04 scottr Exp $ */
/*
@@ -271,10 +271,10 @@ grfselect(dev, rw, p)
}
/*ARGSUSED*/
-int
+paddr_t
grfmmap(dev, off, prot)
dev_t dev;
- int off;
+ off_t off;
int prot;
{
int unit = GRFUNIT(dev);