summaryrefslogtreecommitdiff
path: root/sys/dev/ic/interwave.c
diff options
context:
space:
mode:
authorsimonb <simonb@NetBSD.org>2000-06-26 04:55:19 +0000
committersimonb <simonb@NetBSD.org>2000-06-26 04:55:19 +0000
commit889c658b5bade4e72ee61a17ccc6b886541a16ee (patch)
tree0f00804a921864ab4d9f6ef08d469cbdc9a9cf33 /sys/dev/ic/interwave.c
parent472221aa398d2e7677796734a88fde50951e3ebc (diff)
Change the kernel mmap interface so that the offset to map is an
"off_t" and the return value is a "paddr_t" to allow mappings at offsets past 2^31 bytes. Somewhat inspired by FreeBSD, which only changed the offset to a "vm_offset_t". Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
Diffstat (limited to 'sys/dev/ic/interwave.c')
-rw-r--r--sys/dev/ic/interwave.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/interwave.c b/sys/dev/ic/interwave.c
index a07f51438b7..e6e0242a418 100644
--- a/sys/dev/ic/interwave.c
+++ b/sys/dev/ic/interwave.c
@@ -1,4 +1,4 @@
-/* $NetBSD: interwave.c,v 1.12 2000/02/07 22:07:30 thorpej Exp $ */
+/* $NetBSD: interwave.c,v 1.13 2000/06/26 04:56:18 simonb Exp $ */
/*
* Copyright (c) 1997, 1999 The NetBSD Foundation, Inc.
@@ -1653,11 +1653,11 @@ iw_round_buffersize(addr, direction, size)
return (size);
}
-int
+paddr_t
iw_mappage(addr, mem, off, prot)
void *addr;
void *mem;
- int off;
+ off_t off;
int prot;
{
return isa_mappage(mem, off, prot);