diff options
author | 2003-06-08 00:41:10 +0000 | |
---|---|---|
committer | 2003-06-08 00:41:10 +0000 | |
commit | 17b735795306a9a8523e7a088e0c7fae52ca69de (patch) | |
tree | 92724f94feddb98fea36782ec18ce378215acff9 | |
parent | - remove invalid authentication type "otp" (diff) | |
download | wireguard-openbsd-17b735795306a9a8523e7a088e0c7fae52ca69de.tar.xz wireguard-openbsd-17b735795306a9a8523e7a088e0c7fae52ca69de.zip |
Do not hardcode the dma channel to 1, use the softc settings instead.
mickey@ ok
-rw-r--r-- | sys/dev/isa/ad1848.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/isa/ad1848.c b/sys/dev/isa/ad1848.c index 0adb6cd76d2..db11e21acca 100644 --- a/sys/dev/isa/ad1848.c +++ b/sys/dev/isa/ad1848.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ad1848.c,v 1.28 2003/04/27 11:22:53 ho Exp $ */ +/* $OpenBSD: ad1848.c,v 1.29 2003/06/08 00:41:10 miod Exp $ */ /* $NetBSD: ad1848.c,v 1.45 1998/01/30 02:02:38 augustss Exp $ */ /* @@ -1648,8 +1648,14 @@ ad1848_malloc(addr, direction, size, pool, flags) int flags; { struct ad1848_softc *sc = addr; + int drq; - return isa_malloc(sc->sc_isa, 1, size, pool, flags); + if (sc->sc_mode == AUMODE_RECORD) + drq = sc->sc_recdrq == -1 ? sc->sc_drq : sc->sc_recdrq; + else + drq = sc->sc_drq; + + return isa_malloc(sc->sc_isa, drq, size, pool, flags); } void |