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/dev/wscons/wsdisplay.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/wscons') diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c index 98ac84e3f1c..65de8e1f22d 100644 --- a/sys/dev/wscons/wsdisplay.c +++ b/sys/dev/wscons/wsdisplay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsdisplay.c,v 1.34 2001/09/16 00:42:44 millert Exp $ */ +/* $OpenBSD: wsdisplay.c,v 1.35 2001/11/01 12:13:47 art Exp $ */ /* $NetBSD: wsdisplay.c,v 1.37.4.1 2000/06/30 16:27:53 simonb Exp $ */ /* @@ -1260,10 +1260,10 @@ wsdisplay_cfg_ioctl(sc, cmd, data, flag, p) return (EINVAL); } -int +paddr_t wsdisplaymmap(dev, offset, prot) dev_t dev; - int offset; /* XXX */ + off_t offset; int prot; { struct wsdisplay_softc *sc = wsdisplay_cd.cd_devs[WSDISPLAYUNIT(dev)]; -- cgit v1.2.3