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 82801BAM IDE controller, f...



details:   https://anonhg.NetBSD.org/src/rev/26324dfa8d59
branches:  trunk
changeset: 503943:26324dfa8d59
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Feb 18 17:58:59 2001 +0000

description:
Add support for INTEL 82801BAM IDE controller, from OpenBSD.

diffstat:

 sys/dev/pci/pciide.c |  21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diffs (72 lines):

diff -r 42cf9a4e5964 -r 26324dfa8d59 sys/dev/pci/pciide.c
--- a/sys/dev/pci/pciide.c      Sun Feb 18 17:54:50 2001 +0000
+++ b/sys/dev/pci/pciide.c      Sun Feb 18 17:58:59 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pciide.c,v 1.105 2001/01/12 16:03:59 bouyer Exp $      */
+/*     $NetBSD: pciide.c,v 1.106 2001/02/18 17:58:59 bouyer Exp $      */
 
 
 /*
@@ -264,6 +264,11 @@
          "Intel 82801BA IDE Controller (ICH2)",
          piix_chip_map,
        },
+       { PCI_PRODUCT_INTEL_82801BAM_IDE,
+         0,
+         "Intel 82801BAM IDE Controller (ICH2)",
+         piix_chip_map,
+       },
        { 0,
          0,
          NULL,
@@ -1349,6 +1354,7 @@
                case PCI_PRODUCT_INTEL_82801AA_IDE:
                case PCI_PRODUCT_INTEL_82801AB_IDE:
                case PCI_PRODUCT_INTEL_82801BA_IDE:
+               case PCI_PRODUCT_INTEL_82801BAM_IDE:
                        sc->sc_wdcdev.cap |= WDC_CAPABILITY_UDMA;
                }
        }
@@ -1359,6 +1365,7 @@
                sc->sc_wdcdev.UDMA_cap = 4;
                break;
        case PCI_PRODUCT_INTEL_82801BA_IDE:
+       case PCI_PRODUCT_INTEL_82801BAM_IDE:
                sc->sc_wdcdev.UDMA_cap = 5;
                break;
        default:
@@ -1385,7 +1392,8 @@
                }
                if (sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801AA_IDE ||
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801AB_IDE ||
-                   sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801BA_IDE) {
+                   sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801BA_IDE ||
+                   sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801BAM_IDE) {
                        WDCDEBUG_PRINT((", IDE_CONTROL 0x%x",
                            pci_conf_read(sc->sc_pc, sc->sc_tag, PIIX_CONFIG)),
                            DEBUG_PROBE);
@@ -1436,7 +1444,8 @@
                }
                if (sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801AA_IDE ||
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801AB_IDE ||
-                   sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801BA_IDE) {
+                   sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801BA_IDE ||
+                   sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801BAM_IDE) {
                        WDCDEBUG_PRINT((", IDE_CONTROL 0x%x",
                            pci_conf_read(sc->sc_pc, sc->sc_tag, PIIX_CONFIG)),
                            DEBUG_PROBE);
@@ -1596,10 +1605,12 @@
 
                if (sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801AA_IDE ||
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801AB_IDE ||
-                   sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801BA_IDE) {
+                   sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801BA_IDE ||
+                   sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801BAM_IDE) {
                        ideconf |= PIIX_CONFIG_PINGPONG;
                }
-               if (sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801BA_IDE) {
+               if (sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801BA_IDE ||
+                   sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801BAM_IDE) {
                        /* setup Ultra/100 */
                        if (drvp->UDMA_mode > 2 &&
                            (ideconf & PIIX_CONFIG_CR(channel, drive)) == 0)



Home | Main Index | Thread Index | Old Index