summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev/vmes.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/mvme88k/dev/vmes.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/mvme88k/dev/vmes.c')
-rw-r--r--sys/arch/mvme88k/dev/vmes.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/mvme88k/dev/vmes.c b/sys/arch/mvme88k/dev/vmes.c
index 4832d7f73cc..f907c093b1e 100644
--- a/sys/arch/mvme88k/dev/vmes.c
+++ b/sys/arch/mvme88k/dev/vmes.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmes.c,v 1.5 2001/08/26 02:37:07 miod Exp $ */
+/* $OpenBSD: vmes.c,v 1.6 2001/11/01 12:13:46 art Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -65,7 +65,7 @@ int vmesclose __P((dev_t, int, int));
int vmesioctl __P((dev_t, int, caddr_t, int, struct proc *));
int vmesread __P((dev_t, struct uio *, int));
int vmeswrite __P((dev_t, struct uio *, int));
-int vmesmmap __P((dev_t, int, int));
+paddr_t vmesmmap __P((dev_t, off_t, int));
int
vmesmatch(parent, cf, args)
@@ -161,10 +161,11 @@ vmeswrite(dev, uio, flags)
return (vmerw(sc->sc_vme, uio, flags, BUS_VMES));
}
-int
+paddr_t
vmesmmap(dev, off, prot)
dev_t dev;
- int off, prot;
+ off_t off;
+ int prot;
{
int unit = minor(dev);
struct vmessoftc *sc = (struct vmessoftc *) vmes_cd.cd_devs[unit];