summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/dev/nvram.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/mvme68k/dev/nvram.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/mvme68k/dev/nvram.c')
-rw-r--r--sys/arch/mvme68k/dev/nvram.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/mvme68k/dev/nvram.c b/sys/arch/mvme68k/dev/nvram.c
index 5d32e7bcf1d..fe17a557c75 100644
--- a/sys/arch/mvme68k/dev/nvram.c
+++ b/sys/arch/mvme68k/dev/nvram.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nvram.c,v 1.7 2001/01/04 04:00:51 smurph Exp $ */
+/* $OpenBSD: nvram.c,v 1.8 2001/11/01 12:13:46 art Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -409,10 +409,11 @@ int flags;
* will also be mmap'd, due to NBPG being 4K. On the MVME147 the NVRAM
* repeats, so userland gets two copies back-to-back.
*/
-int
+paddr_t
nvrammmap(dev, off, prot)
-dev_t dev;
-int off, prot;
+ dev_t dev;
+ off_t off;
+ int prot;
{
int unit = minor(dev);
struct nvramsoftc *sc = (struct nvramsoftc *) nvram_cd.cd_devs[unit];