From 307f62acf159a1e3d444891a8aa9a089e0b26b05 Mon Sep 17 00:00:00 2001 From: msmith Date: Mon, 21 Dec 1998 08:55:56 +0000 Subject: Check for DMA capbility is against unit,not controller. Submitted by: Lee Cremeans --- sys/pci/ide_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/pci/ide_pci.c b/sys/pci/ide_pci.c index 91b1867..3c10168 100644 --- a/sys/pci/ide_pci.c +++ b/sys/pci/ide_pci.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ide_pci.c,v 1.17 1998/12/14 05:47:26 dillon Exp $ + * $Id: ide_pci.c,v 1.18 1998/12/14 05:49:04 dillon Exp $ */ #include "pci.h" @@ -1195,7 +1195,7 @@ ide_pci_candma(int iobase_wd, int unit) cp = softc.cookies.lh_first; while(cp) { - if (cp->ctlr == unit && + if (cp->unit == unit && ((iobase_wd == 0) || (cp->iobase_wd == iobase_wd))) break; cp = cp->le.le_next; -- cgit v1.1