diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-10-31 11:00:25 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-10-31 11:00:25 +0000 |
commit | f1ceff4a33130475b6d475519e0ac2e6826a9304 (patch) | |
tree | 2861dafaef2b8dd0f609dc4dd811c8e93edb80bf /sys/dev/pci/cs4281.c | |
parent | 5e52cf2a7aad908f4756bbb6dccd325286680816 (diff) |
Change the audio_hm_if->mappage interface to return paddr_t and take off_t
as the mmap offset.
Diffstat (limited to 'sys/dev/pci/cs4281.c')
-rw-r--r-- | sys/dev/pci/cs4281.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/cs4281.c b/sys/dev/pci/cs4281.c index 6e976100fbc..0f6aa1ca3f4 100644 --- a/sys/dev/pci/cs4281.c +++ b/sys/dev/pci/cs4281.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cs4281.c,v 1.8 2001/10/03 00:59:27 kevlo Exp $ */ +/* $OpenBSD: cs4281.c,v 1.9 2001/10/31 11:00:24 art Exp $ */ /* $Tera: cs4281.c,v 1.18 2000/12/27 14:24:45 tacha Exp $ */ /* @@ -196,7 +196,7 @@ int cs4281_query_devinfo __P((void *, mixer_devinfo_t *)); void *cs4281_malloc __P((void *, u_long, int, int)); u_long cs4281_round_buffersize __P((void *, u_long)); void cs4281_free __P((void *, void *, int)); -int cs4281_mappage __P((void *, void *, int, int)); +paddr_t cs4281_mappage __P((void *, void *, off_t, int)); int cs4281_allocmem __P((struct cs4281_softc *, size_t, int, int, struct cs4281_dma *)); @@ -1418,8 +1418,8 @@ cs4281_round_buffersize(void *addr, u_long size) return (size); } -int -cs4281_mappage(void *addr, void *mem, int off, int prot) +paddr_t +cs4281_mappage(void *addr, void *mem, off_t off, int prot) { struct cs4281_softc *sc; struct cs4281_dma *p; |