Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Add support for Intel ICH2
details: https://anonhg.NetBSD.org/src/rev/60aef84b9aaf
branches: trunk
changeset: 499408:60aef84b9aaf
user: bouyer <bouyer%NetBSD.org@localhost>
date: Sun Nov 19 15:32:24 2000 +0000
description:
Add support for Intel ICH2
diffstat:
sys/dev/pci/pciide.c | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diffs (44 lines):
diff -r 28852b5db7c8 -r 60aef84b9aaf sys/dev/pci/pciide.c
--- a/sys/dev/pci/pciide.c Sun Nov 19 15:23:55 2000 +0000
+++ b/sys/dev/pci/pciide.c Sun Nov 19 15:32:24 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pciide.c,v 1.92 2000/11/14 18:42:58 thorpej Exp $ */
+/* $NetBSD: pciide.c,v 1.93 2000/11/19 15:32:24 bouyer Exp $ */
/*
@@ -259,6 +259,11 @@
"Intel 82801AB IDE Controller (ICH0)",
piix_chip_map,
},
+ { PCI_PRODUCT_INTEL_82801BA_IDE,
+ 0,
+ "Intel 82801BA IDE Controller (ICH2)",
+ piix_chip_map,
+ },
{ 0,
0,
NULL,
@@ -1330,13 +1335,20 @@
case PCI_PRODUCT_INTEL_82440MX_IDE:
case PCI_PRODUCT_INTEL_82801AA_IDE:
case PCI_PRODUCT_INTEL_82801AB_IDE:
+ case PCI_PRODUCT_INTEL_82801BA_IDE:
sc->sc_wdcdev.cap |= WDC_CAPABILITY_UDMA;
}
}
sc->sc_wdcdev.PIO_cap = 4;
sc->sc_wdcdev.DMA_cap = 2;
- sc->sc_wdcdev.UDMA_cap =
- (sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801AA_IDE) ? 4 : 2;
+ switch(sc->sc_pp->ide_product) {
+ case PCI_PRODUCT_INTEL_82801AA_IDE:
+ case PCI_PRODUCT_INTEL_82801BA_IDE:
+ sc->sc_wdcdev.UDMA_cap = 4;
+ break;
+ default:
+ sc->sc_wdcdev.UDMA_cap = 2;
+ }
if (sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82371FB_IDE)
sc->sc_wdcdev.set_modes = piix_setup_channel;
else
Home |
Main Index |
Thread Index |
Old Index