summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/maestro.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>2001-10-31 11:00:24 +0000
committerart <art@openbsd.org>2001-10-31 11:00:24 +0000
commit120083e95450f3c17be9a360371e7febffdaba8c (patch)
tree0477326c2f3bacd601823f2256ae18300b1aa033 /sys/dev/pci/maestro.c
parentThere is no need to fake handling of /dev/zero here. The vm system ultrix/ultrix_misc.c sunos/sunos_misc.c (diff)
downloadwireguard-openbsd-120083e95450f3c17be9a360371e7febffdaba8c.tar.xz
wireguard-openbsd-120083e95450f3c17be9a360371e7febffdaba8c.zip
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/maestro.c')
-rw-r--r--sys/dev/pci/maestro.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/pci/maestro.c b/sys/dev/pci/maestro.c
index f5878e66e39..49b39438794 100644
--- a/sys/dev/pci/maestro.c
+++ b/sys/dev/pci/maestro.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: maestro.c,v 1.11 2001/09/21 17:55:44 miod Exp $ */
+/* $OpenBSD: maestro.c,v 1.12 2001/10/31 11:00:24 art Exp $ */
/* $FreeBSD: /c/ncvs/src/sys/dev/sound/pci/maestro.c,v 1.3 2000/11/21 12:22:11 julian Exp $ */
/*
* FreeBSD's ESS Agogo/Maestro driver
@@ -180,7 +180,7 @@ int maestro_query_devinfo __P((void *, mixer_devinfo_t *));
void *maestro_malloc __P((void *, int, size_t, int, int));
void maestro_free __P((void *, void *, int));
size_t maestro_round_buffersize __P((void *, int, size_t));
-int maestro_mappage __P((void *, void *, int, int));
+paddr_t maestro_mappage __P((void *, void *, off_t, int));
int maestro_get_props __P((void *));
int maestro_trigger_output __P((void *, void *, void *, int, void (*)(void *),
void *, struct audio_params *));
@@ -603,10 +603,11 @@ maestro_free(self, ptr, pool)
salloc_free(sc->dmapool, ptr);
}
-int
+paddr_t
maestro_mappage(self, mem, off, prot)
void *self, *mem;
- int off, prot;
+ off_t off;
+ int prot;
{
struct maestro_softc *sc = (struct maestro_softc *)self;