Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-2]: src/sys/dev/pci Pull up revision 1.2 via patch (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/9bfdae7e0850
branches:  netbsd-2
changeset: 563349:9bfdae7e0850
user:      tron <tron%NetBSD.org@localhost>
date:      Thu Apr 07 16:01:57 2005 +0000

description:
Pull up revision 1.2 via patch (requested by bouyer in ticket #1037):
Add RAID support, from Shin'ichiro TAYA on current-users@.

diffstat:

 sys/dev/pci/pdcsata.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r b2fc8bd14a44 -r 9bfdae7e0850 sys/dev/pci/pdcsata.c
--- a/sys/dev/pci/pdcsata.c     Thu Apr 07 15:31:40 2005 +0000
+++ b/sys/dev/pci/pdcsata.c     Thu Apr 07 16:01:57 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pdcsata.c,v 1.3.4.2 2005/04/02 21:24:31 he Exp $       */
+/*     $NetBSD: pdcsata.c,v 1.3.4.3 2005/04/07 16:01:57 tron Exp $     */
 
 /*
  * Copyright (c) 2004, Manuel Bouyer.
@@ -189,6 +189,9 @@
        if (sc->sc_dma_ok) {
                sc->sc_wdcdev.cap |= WDC_CAPABILITY_DMA | WDC_CAPABILITY_UDMA;
        }
+       if (PCI_CLASS(pa->pa_class) == PCI_CLASS_MASS_STORAGE &&
+           PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_MASS_STORAGE_RAID)
+               sc->sc_wdcdev.cap |= WDC_CAPABILITY_RAID;
        sc->sc_wdcdev.cap |= WDC_CAPABILITY_IRQACK;
        sc->sc_wdcdev.irqack = pdc203xx_irqack;
        sc->sc_wdcdev.PIO_cap = 4;



Home | Main Index | Thread Index | Old Index