diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-01 12:13:48 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-01 12:13:48 +0000 |
commit | d5cc9696a2b0e4aab5c615d0009f9ab5030bbcaa (patch) | |
tree | 9a94822b0c5101e2ea8729a3c2885a26f42e1493 /sys/arch/sparc/dev/cgsix.c | |
parent | 9dcaf3656438ee022f80bec8c3b7b7d5d3765802 (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/cgsix.c')
-rw-r--r-- | sys/arch/sparc/dev/cgsix.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/cgsix.c b/sys/arch/sparc/dev/cgsix.c index 580f687c54b..3dc5a1ef021 100644 --- a/sys/arch/sparc/dev/cgsix.c +++ b/sys/arch/sparc/dev/cgsix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgsix.c,v 1.15 2001/08/17 13:52:28 mickey Exp $ */ +/* $OpenBSD: cgsix.c,v 1.16 2001/11/01 12:13:46 art Exp $ */ /* $NetBSD: cgsix.c,v 1.33 1997/08/07 19:12:30 pk Exp $ */ /* @@ -718,10 +718,11 @@ struct mmo { * * XXX needs testing against `demanding' applications (e.g., aviator) */ -int +paddr_t cgsixmmap(dev, off, prot) dev_t dev; - int off, prot; + off_t off; + int prot; { register struct cgsix_softc *sc = cgsix_cd.cd_devs[minor(dev)]; register struct mmo *mo; |