summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-12-21 08:55:56 +0000
committermsmith <msmith@FreeBSD.org>1998-12-21 08:55:56 +0000
commit307f62acf159a1e3d444891a8aa9a089e0b26b05 (patch)
tree9901f513c817f412b52083aa64b483a6838d1edf
parent953800406c481161521b5c25cb80dfda0ab5ad5f (diff)
downloadFreeBSD-src-307f62acf159a1e3d444891a8aa9a089e0b26b05.zip
FreeBSD-src-307f62acf159a1e3d444891a8aa9a089e0b26b05.tar.gz
Check for DMA capbility is against unit,not controller.
Submitted by: Lee Cremeans <lee@st-lcremean.tidalwave.net>
-rw-r--r--sys/pci/ide_pci.c4
1 files 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;
OpenPOWER on IntegriCloud