summaryrefslogtreecommitdiff
path: root/sys/arch/sun3/dev/cg4.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-11-01 12:13:48 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-11-01 12:13:48 +0000
commitd5cc9696a2b0e4aab5c615d0009f9ab5030bbcaa (patch)
tree9a94822b0c5101e2ea8729a3c2885a26f42e1493 /sys/arch/sun3/dev/cg4.c
parent9dcaf3656438ee022f80bec8c3b7b7d5d3765802 (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/sun3/dev/cg4.c')
-rw-r--r--sys/arch/sun3/dev/cg4.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sun3/dev/cg4.c b/sys/arch/sun3/dev/cg4.c
index 27221fe73e5..ac1ba39ea96 100644
--- a/sys/arch/sun3/dev/cg4.c
+++ b/sys/arch/sun3/dev/cg4.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cg4.c,v 1.8 1997/01/16 04:03:43 kstailey Exp $ */
+/* $OpenBSD: cg4.c,v 1.9 2001/11/01 12:13:46 art Exp $ */
/* $NetBSD: cg4.c,v 1.11 1996/10/29 19:54:19 gwr Exp $ */
/*
@@ -305,10 +305,10 @@ cg4ioctl(dev, cmd, data, flags, p)
* 1920k gap
* 1024k color memory
*/
-int
+paddr_t
cg4mmap(dev, off, prot)
dev_t dev;
- register int off;
+ off_t off;
int prot;
{
struct cg4_softc *sc = cgfour_cd.cd_devs[minor(dev)];