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 82801EB Serial ATA. Not te...



details:   https://anonhg.NetBSD.org/src/rev/685ae02f3446
branches:  trunk
changeset: 552005:685ae02f3446
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Mon Sep 15 20:24:42 2003 +0000

description:
Add support for Intel 82801EB Serial ATA. Not tested with a drive yet,
Matthias Scheler tested that the controller attaches properly.

diffstat:

 sys/dev/pci/pciide.c |  14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r 583f06274133 -r 685ae02f3446 sys/dev/pci/pciide.c
--- a/sys/dev/pci/pciide.c      Mon Sep 15 20:15:44 2003 +0000
+++ b/sys/dev/pci/pciide.c      Mon Sep 15 20:24:42 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pciide.c,v 1.197 2003/09/15 20:15:44 bouyer Exp $      */
+/*     $NetBSD: pciide.c,v 1.198 2003/09/15 20:24:42 bouyer Exp $      */
 
 
 /*
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pciide.c,v 1.197 2003/09/15 20:15:44 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pciide.c,v 1.198 2003/09/15 20:24:42 bouyer Exp $");
 
 #ifndef WDCDEBUG
 #define WDCDEBUG
@@ -338,6 +338,11 @@
          "Intel 31244 Serial ATA Controller",
          artisea_chip_map,
        },
+       { PCI_PRODUCT_INTEL_82801EB_SATA,
+         0,
+         "Intel 82801EB Serial ATA Controller",
+         artisea_chip_map,
+       },
        { 0,
          0,
          NULL,
@@ -5538,10 +5543,11 @@
        if (pciide_chipen(sc, pa) == 0)
                return;
 
-       aprint_normal("%s: bus-master DMA support resent",
+       aprint_normal("%s: bus-master DMA support present",
            sc->sc_wdcdev.sc_dev.dv_xname);
 #ifndef PCIIDE_I31244_ENABLEDMA
-       if (PCI_REVISION(pa->pa_class) == 0) {
+       if (sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_31244 &&
+           PCI_REVISION(pa->pa_class) == 0) {
                aprint_normal(" but disabled due to rev. 0");
                sc->sc_dma_ok = 0;
        } else



Home | Main Index | Thread Index | Old Index