summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-10-31 11:00:25 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-10-31 11:00:25 +0000
commitf1ceff4a33130475b6d475519e0ac2e6826a9304 (patch)
tree2861dafaef2b8dd0f609dc4dd811c8e93edb80bf /sys/arch/macppc/dev
parent5e52cf2a7aad908f4756bbb6dccd325286680816 (diff)
Change the audio_hm_if->mappage interface to return paddr_t and take off_t
as the mmap offset.
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r--sys/arch/macppc/dev/awacs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/macppc/dev/awacs.c b/sys/arch/macppc/dev/awacs.c
index 4065fe4da84..382d54fa5dd 100644
--- a/sys/arch/macppc/dev/awacs.c
+++ b/sys/arch/macppc/dev/awacs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: awacs.c,v 1.5 2001/09/25 00:13:18 drahn Exp $ */
+/* $OpenBSD: awacs.c,v 1.6 2001/10/31 11:00:24 art Exp $ */
/* $NetBSD: awacs.c,v 1.4 2001/02/26 21:07:51 wiz Exp $ */
/*-
@@ -112,7 +112,7 @@ int awacs_set_port(void *, mixer_ctrl_t *);
int awacs_get_port(void *, mixer_ctrl_t *);
int awacs_query_devinfo(void *, mixer_devinfo_t *);
size_t awacs_round_buffersize(void *, int, size_t);
-int awacs_mappage(void *, void *, int, int);
+paddr_t awacs_mappage(void *, void *, off_t, int);
int awacs_get_props(void *);
void *awacs_allocm __P((void *, int, size_t, int, int));
@@ -995,11 +995,11 @@ awacs_allocm(h, dir, size, type, flags)
return p->addr;
}
-int
+paddr_t
awacs_mappage(h, mem, off, prot)
void *h;
void *mem;
- int off;
+ off_t off;
int prot;
{
if (off < 0)