summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/bwtwo.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/sparc/dev/bwtwo.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/sparc/dev/bwtwo.c')
-rw-r--r--sys/arch/sparc/dev/bwtwo.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/bwtwo.c b/sys/arch/sparc/dev/bwtwo.c
index da78add7781..da88fe0fdbc 100644
--- a/sys/arch/sparc/dev/bwtwo.c
+++ b/sys/arch/sparc/dev/bwtwo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bwtwo.c,v 1.17 2001/08/17 13:52:28 mickey Exp $ */
+/* $OpenBSD: bwtwo.c,v 1.18 2001/11/01 12:13:46 art Exp $ */
/* $NetBSD: bwtwo.c,v 1.33 1997/05/24 20:16:02 pk Exp $ */
/*
@@ -444,10 +444,11 @@ bwtwounblank(dev)
* Return the address that would map the given device at the given
* offset, allowing for the given protection, or return -1 for error.
*/
-int
+paddr_t
bwtwommap(dev, off, prot)
dev_t dev;
- int off, prot;
+ off_t off;
+ int prot;
{
register struct bwtwo_softc *sc = bwtwo_cd.cd_devs[minor(dev)];