diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1998-08-20 08:37:48 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1998-08-20 08:37:48 +0000 |
commit | f728c5b4c81a8009e428b98030f656fd41171a22 (patch) | |
tree | 527674535161a106f2d717bfcba0359413a66d7c /sys/dev/isa | |
parent | 13648b42bd02ac17e8fd5b9d67171fa5a7ac1b26 (diff) |
mmap support for gus, dillema@acm.org
Diffstat (limited to 'sys/dev/isa')
-rw-r--r-- | sys/dev/isa/gus.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/sys/dev/isa/gus.c b/sys/dev/isa/gus.c index cec95c396a1..c3978b3668c 100644 --- a/sys/dev/isa/gus.c +++ b/sys/dev/isa/gus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gus.c,v 1.16 1998/05/13 10:25:13 provos Exp $ */ +/* $OpenBSD: gus.c,v 1.17 1998/08/20 08:37:47 provos Exp $ */ /* $NetBSD: gus.c,v 1.51 1998/01/25 23:48:06 mycroft Exp $ */ /*- @@ -615,10 +615,10 @@ struct audio_hw_if gus_hw_if = { gus_mixer_set_port, gus_mixer_get_port, gus_mixer_query_devinfo, - NULL, - NULL, - NULL, - NULL, + ad1848_malloc, + ad1848_free, + ad1848_round, + ad1848_mappage, gus_get_props, }; @@ -650,10 +650,10 @@ static struct audio_hw_if gusmax_hw_if = { gusmax_mixer_set_port, gusmax_mixer_get_port, gusmax_mixer_query_devinfo, - NULL, - NULL, - NULL, - NULL, + ad1848_malloc, + ad1848_free, + ad1848_round, + ad1848_mappage, gusmax_get_props, }; @@ -3564,7 +3564,8 @@ gus_get_props(addr) void *addr; { struct gus_softc *sc = addr; - return sc->sc_recdrq == sc->sc_drq ? 0 : AUDIO_PROP_FULLDUPLEX; + return AUDIO_PROP_MMAP | + (sc->sc_recdrq == sc->sc_drq ? 0 : AUDIO_PROP_FULLDUPLEX); } STATIC int |