summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev/vmel.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/vmel.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/vmel.c')
-rw-r--r--sys/arch/mvme88k/dev/vmel.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/mvme88k/dev/vmel.c b/sys/arch/mvme88k/dev/vmel.c
index 8c91db1892b..4b6660783e1 100644
--- a/sys/arch/mvme88k/dev/vmel.c
+++ b/sys/arch/mvme88k/dev/vmel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmel.c,v 1.5 2001/08/26 02:37:07 miod Exp $ */
+/* $OpenBSD: vmel.c,v 1.6 2001/11/01 12:13:46 art Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -65,7 +65,7 @@ int vmelclose __P((dev_t, int, int));
int vmelioctl __P((dev_t, int, caddr_t, int, struct proc *));
int vmelread __P((dev_t, struct uio *, int));
int vmelwrite __P((dev_t, struct uio *, int));
-int vmelmmap __P((dev_t, int, int));
+paddr_t vmelmmap __P((dev_t, off_t, int));
int
vmelmatch(parent, cf, args)
@@ -161,10 +161,11 @@ vmelwrite(dev, uio, flags)
return (vmerw(sc->sc_vme, uio, flags, BUS_VMEL));
}
-int
+paddr_t
vmelmmap(dev, off, prot)
dev_t dev;
- int off, prot;
+ off_t off;
+ int prot;
{
int unit = minor(dev);
struct vmelsoftc *sc = (struct vmelsoftc *) vmel_cd.cd_devs[unit];