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 the ICH6 IDE controller (82801FB).



details:   https://anonhg.NetBSD.org/src/rev/6bb2cf9b7f0d
branches:  trunk
changeset: 571074:6bb2cf9b7f0d
user:      cube <cube%NetBSD.org@localhost>
date:      Wed Nov 10 17:19:05 2004 +0000

description:
Add support for the ICH6 IDE controller (82801FB).

diffstat:

 sys/dev/pci/piixide.c |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (69 lines):

diff -r d1f0e6a55d81 -r 6bb2cf9b7f0d sys/dev/pci/piixide.c
--- a/sys/dev/pci/piixide.c     Wed Nov 10 17:17:14 2004 +0000
+++ b/sys/dev/pci/piixide.c     Wed Nov 10 17:19:05 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: piixide.c,v 1.16 2004/10/22 15:09:22 cube Exp $        */
+/*     $NetBSD: piixide.c,v 1.17 2004/11/10 17:19:05 cube Exp $        */
 
 /*
  * Copyright (c) 1999, 2000, 2001 Manuel Bouyer.
@@ -140,6 +140,11 @@
          "Intel 6300ESB Serial ATA Controller",
          piixsata_chip_map,
        },
+       { PCI_PRODUCT_INTEL_82801FB_IDE,
+         0,
+         "Intel 82801FB IDE Controller (ICH6)",
+         piix_chip_map,
+       },
        { PCI_PRODUCT_INTEL_82801FB_SATA,
          0,
          "Intel 82801FB Serial ATA/Raid Controller",
@@ -215,6 +220,7 @@
                case PCI_PRODUCT_INTEL_82801DBM_IDE:
                case PCI_PRODUCT_INTEL_82801EB_IDE:
                case PCI_PRODUCT_INTEL_6300ESB_IDE:
+               case PCI_PRODUCT_INTEL_82801FB_IDE:
                        sc->sc_wdcdev.sc_atac.atac_cap |= ATAC_CAP_UDMA;
                }
        }
@@ -232,6 +238,7 @@
        case PCI_PRODUCT_INTEL_82801DBM_IDE:
        case PCI_PRODUCT_INTEL_82801EB_IDE:
        case PCI_PRODUCT_INTEL_6300ESB_IDE:
+       case PCI_PRODUCT_INTEL_82801FB_IDE:
                sc->sc_wdcdev.sc_atac.atac_udma_cap = 5;
                break;
        default:
@@ -265,6 +272,7 @@
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801DB_IDE ||
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801DBM_IDE ||
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801EB_IDE ||
+                   sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801FB_IDE ||
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_6300ESB_IDE) {
                        ATADEBUG_PRINT((", IDE_CONTROL 0x%x",
                            pci_conf_read(sc->sc_pc, sc->sc_tag, PIIX_CONFIG)),
@@ -328,6 +336,7 @@
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801DB_IDE ||
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801DBM_IDE ||
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801EB_IDE ||
+                   sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801FB_IDE ||
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_6300ESB_IDE) {
                        ATADEBUG_PRINT((", IDE_CONTROL 0x%x",
                            pci_conf_read(sc->sc_pc, sc->sc_tag, PIIX_CONFIG)),
@@ -489,6 +498,7 @@
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801DB_IDE ||
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801DBM_IDE ||
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801EB_IDE ||
+                   sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801FB_IDE ||
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_6300ESB_IDE) {
                        ideconf |= PIIX_CONFIG_PINGPONG;
                }
@@ -499,6 +509,7 @@
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801DB_IDE ||
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801DBM_IDE ||
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801EB_IDE ||
+                   sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801FB_IDE ||
                    sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_6300ESB_IDE) {
                        /* setup Ultra/100 */
                        if (drvp->UDMA_mode > 2 &&



Home | Main Index | Thread Index | Old Index