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/mvme68k/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/mvme68k/dev')
-rw-r--r-- | sys/arch/mvme68k/dev/flash.c | 7 | ||||
-rw-r--r-- | sys/arch/mvme68k/dev/nvram.c | 9 | ||||
-rw-r--r-- | sys/arch/mvme68k/dev/sram.c | 7 | ||||
-rw-r--r-- | sys/arch/mvme68k/dev/vmel.c | 6 | ||||
-rw-r--r-- | sys/arch/mvme68k/dev/vmes.c | 6 |
5 files changed, 19 insertions, 16 deletions
diff --git a/sys/arch/mvme68k/dev/flash.c b/sys/arch/mvme68k/dev/flash.c index 3bafb882bea..bd1907c403f 100644 --- a/sys/arch/mvme68k/dev/flash.c +++ b/sys/arch/mvme68k/dev/flash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: flash.c,v 1.8 2001/05/16 12:49:46 ho Exp $ */ +/* $OpenBSD: flash.c,v 1.9 2001/11/01 12:13:46 art Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -474,10 +474,11 @@ tryerase: return (error); } -int +paddr_t flashmmap(dev, off, prot) dev_t dev; - int off, prot; + off_t off; + int prot; { int unit = minor(dev); struct flashsoftc *sc = (struct flashsoftc *) flash_cd.cd_devs[unit]; diff --git a/sys/arch/mvme68k/dev/nvram.c b/sys/arch/mvme68k/dev/nvram.c index 5d32e7bcf1d..fe17a557c75 100644 --- a/sys/arch/mvme68k/dev/nvram.c +++ b/sys/arch/mvme68k/dev/nvram.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvram.c,v 1.7 2001/01/04 04:00:51 smurph Exp $ */ +/* $OpenBSD: nvram.c,v 1.8 2001/11/01 12:13:46 art Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -409,10 +409,11 @@ int flags; * will also be mmap'd, due to NBPG being 4K. On the MVME147 the NVRAM * repeats, so userland gets two copies back-to-back. */ -int +paddr_t nvrammmap(dev, off, prot) -dev_t dev; -int off, prot; + dev_t dev; + off_t off; + int prot; { int unit = minor(dev); struct nvramsoftc *sc = (struct nvramsoftc *) nvram_cd.cd_devs[unit]; diff --git a/sys/arch/mvme68k/dev/sram.c b/sys/arch/mvme68k/dev/sram.c index 4175f2cea99..09228b823b9 100644 --- a/sys/arch/mvme68k/dev/sram.c +++ b/sys/arch/mvme68k/dev/sram.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sram.c,v 1.5 1997/11/20 17:02:31 etheisen Exp $ */ +/* $OpenBSD: sram.c,v 1.6 2001/11/01 12:13:46 art Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -217,10 +217,11 @@ sramwrite(dev, uio, flags) return (memdevrw(sc->sc_vaddr, sc->sc_len, uio, flags)); } -int +paddr_t srammmap(dev, off, prot) dev_t dev; - int off, prot; + off_t off; + int prot; { int unit = minor(dev); struct sramsoftc *sc = (struct sramsoftc *) sram_cd.cd_devs[unit]; diff --git a/sys/arch/mvme68k/dev/vmel.c b/sys/arch/mvme68k/dev/vmel.c index 1762bc20fbe..aba946017de 100644 --- a/sys/arch/mvme68k/dev/vmel.c +++ b/sys/arch/mvme68k/dev/vmel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmel.c,v 1.5 1996/12/11 21:04:14 deraadt Exp $ */ +/* $OpenBSD: vmel.c,v 1.6 2001/11/01 12:13:46 art Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -155,10 +155,10 @@ 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; + off_t off; int prot; { int unit = minor(dev); diff --git a/sys/arch/mvme68k/dev/vmes.c b/sys/arch/mvme68k/dev/vmes.c index f4fb5c564bb..fa79cc6e4a5 100644 --- a/sys/arch/mvme68k/dev/vmes.c +++ b/sys/arch/mvme68k/dev/vmes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmes.c,v 1.6 1997/02/05 15:50:56 deraadt Exp $ */ +/* $OpenBSD: vmes.c,v 1.7 2001/11/01 12:13:46 art Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -155,10 +155,10 @@ 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; + off_t off; int prot; { int unit = minor(dev); |