XXX Workaround for ViBRA cards with two 8 bit DMA channels.

This commit is contained in:
augustss 1997-11-12 20:28:42 +00:00
parent a46d55768b
commit dd95190002

View File

@ -1,4 +1,4 @@
/* $NetBSD: sb.c,v 1.55 1997/10/19 07:42:35 augustss Exp $ */ /* $NetBSD: sb.c,v 1.56 1997/11/12 20:28:42 augustss Exp $ */
/* /*
* Copyright (c) 1991-1993 Regents of the University of California. * Copyright (c) 1991-1993 Regents of the University of California.
@ -137,11 +137,14 @@ sbmatch(sc)
} }
} }
if (0 <= sc->sc_drq16 && sc->sc_drq16 <= 3)
/* /*
* XXX THIS IS WRONG! My ViBRA16S PnP * XXX Some ViBRA16 cards seem to have two 8 bit DMA
* XXX has 1 drqs, but this resets it to use drq8 everywhere! * channels. I've no clue how to use them, so ignore
* XXX --thorpej@netbsd.org * one of them for now. -- augustss@netbsd.org
*/ */
sc->sc_drq16 = -1;
if (ISSB16CLASS(sc)) { if (ISSB16CLASS(sc)) {
if (sc->sc_drq16 == -1) if (sc->sc_drq16 == -1)
sc->sc_drq16 = sc->sc_drq8; sc->sc_drq16 = sc->sc_drq8;