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/amiga/dev | |
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/amiga/dev')
-rw-r--r-- | sys/arch/amiga/dev/grf.c | 7 | ||||
-rw-r--r-- | sys/arch/amiga/dev/view.c | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/sys/arch/amiga/dev/grf.c b/sys/arch/amiga/dev/grf.c index 29fe4a7e4b6..1210e75ffb0 100644 --- a/sys/arch/amiga/dev/grf.c +++ b/sys/arch/amiga/dev/grf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grf.c,v 1.11 2001/09/11 20:05:20 miod Exp $ */ +/* $OpenBSD: grf.c,v 1.12 2001/11/01 12:13:45 art Exp $ */ /* $NetBSD: grf.c,v 1.32 1996/12/23 09:10:01 veego Exp $ */ /* @@ -314,10 +314,11 @@ grfselect(dev, rw, p) * map the contents of a graphics display card into process' * memory space. */ -int +paddr_t grfmmap(dev, off, prot) dev_t dev; - int off, prot; + off_t off + int prot; { struct grf_softc *gp; struct grfinfo *gi; diff --git a/sys/arch/amiga/dev/view.c b/sys/arch/amiga/dev/view.c index bc29ae7b157..0d2d6d3657d 100644 --- a/sys/arch/amiga/dev/view.c +++ b/sys/arch/amiga/dev/view.c @@ -1,4 +1,4 @@ -/* $OpenBSD: view.c,v 1.4 2001/05/16 12:49:44 ho Exp $ */ +/* $OpenBSD: view.c,v 1.5 2001/11/01 12:13:45 art Exp $ */ /* $NetBSD: view.c,v 1.16 1996/10/13 03:07:35 christos Exp $ */ /* @@ -386,10 +386,11 @@ view_set_colormap(vu, ucm) } /*ARGSUSED*/ -int +paddr_t viewmmap(dev, off, prot) dev_t dev; - int off, prot; + off_t off; + int prot; { struct view_softc *vu; bmap_t *bm; |