From d5cc9696a2b0e4aab5c615d0009f9ab5030bbcaa Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Thu, 1 Nov 2001 12:13:48 +0000 Subject: 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. --- sys/arch/hp300/dev/grf.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/arch/hp300/dev/grf.c') diff --git a/sys/arch/hp300/dev/grf.c b/sys/arch/hp300/dev/grf.c index 62ab0256a0a..b54ba27555b 100644 --- a/sys/arch/hp300/dev/grf.c +++ b/sys/arch/hp300/dev/grf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grf.c,v 1.14 2001/09/11 20:05:24 miod Exp $ */ +/* $OpenBSD: grf.c,v 1.15 2001/11/01 12:13:46 art Exp $ */ /* $NetBSD: grf.c,v 1.30 1998/08/20 08:33:41 kleink Exp $ */ /* @@ -301,10 +301,11 @@ grfselect(dev, rw, p) } /*ARGSUSED*/ -int +paddr_t grfmmap(dev, off, prot) dev_t dev; - int off, prot; + off_t off; + int prot; { struct grf_softc *sc = grf_cd.cd_devs[GRFUNIT(dev)]; -- cgit v1.2.3