summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/dev
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/hp300/dev
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/hp300/dev')
-rw-r--r--sys/arch/hp300/dev/grf.c7
-rw-r--r--sys/arch/hp300/dev/hil.c7
2 files changed, 8 insertions, 6 deletions
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)];
diff --git a/sys/arch/hp300/dev/hil.c b/sys/arch/hp300/dev/hil.c
index d6a858a22ee..9ca2a2061a7 100644
--- a/sys/arch/hp300/dev/hil.c
+++ b/sys/arch/hp300/dev/hil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hil.c,v 1.13 2001/08/12 21:14:31 mickey Exp $ */
+/* $OpenBSD: hil.c,v 1.14 2001/11/01 12:13:46 art Exp $ */
/* $NetBSD: hil.c,v 1.34 1997/04/02 22:37:32 scottr Exp $ */
/*
@@ -728,10 +728,11 @@ hpuxhilioctl(dev, cmd, data, flag)
#endif
/* ARGSUSED */
-int
+paddr_t
hilmmap(dev, off, prot)
dev_t dev;
- int off, prot;
+ off_t off;
+ int prot;
{
return (-1);
}