Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Use the redefined Promise product ids.



details:   https://anonhg.NetBSD.org/src/rev/0f78ce7dbff9
branches:  trunk
changeset: 555592:0f78ce7dbff9
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Sat Nov 22 20:57:18 2003 +0000

description:
Use the redefined Promise product ids.

diffstat:

 sys/dev/pci/pdcide.c |  102 +++++++++++++++++++++++----------------------------
 1 files changed, 46 insertions(+), 56 deletions(-)

diffs (177 lines):

diff -r 0f9cbd8a9269 -r 0f78ce7dbff9 sys/dev/pci/pdcide.c
--- a/sys/dev/pci/pdcide.c      Sat Nov 22 20:56:53 2003 +0000
+++ b/sys/dev/pci/pdcide.c      Sat Nov 22 20:57:18 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pdcide.c,v 1.7 2003/11/15 16:40:46 bouyer Exp $        */
+/*     $NetBSD: pdcide.c,v 1.8 2003/11/22 20:57:18 fvdl Exp $  */
 
 /*
  * Copyright (c) 1999, 2000, 2001 Manuel Bouyer.
@@ -53,71 +53,61 @@
     pdcide_match, pdcide_attach, NULL, NULL);
 
 static const struct pciide_product_desc pciide_promise_products[] =  {
-       { PCI_PRODUCT_PROMISE_ULTRA33,
+       { PCI_PRODUCT_PROMISE_PDC20246,
          0,
          "Promise Ultra33/ATA Bus Master IDE Accelerator",
          pdc202xx_chip_map,
        },
-       { PCI_PRODUCT_PROMISE_ULTRA66,
+       { PCI_PRODUCT_PROMISE_PDC20262,
          0,
          "Promise Ultra66/ATA Bus Master IDE Accelerator",
          pdc202xx_chip_map,
        },
-       { PCI_PRODUCT_PROMISE_ULTRA100,
+       { PCI_PRODUCT_PROMISE_PDC20267,
          0,
          "Promise Ultra100/ATA Bus Master IDE Accelerator",
          pdc202xx_chip_map,
        },
-       { PCI_PRODUCT_PROMISE_ULTRA100X,
+       { PCI_PRODUCT_PROMISE_PDC20265,
          0,
          "Promise Ultra100/ATA Bus Master IDE Accelerator",
          pdc202xx_chip_map,
        },
-       { PCI_PRODUCT_PROMISE_ULTRA100TX2,
+       { PCI_PRODUCT_PROMISE_PDC20268,
          0,
          "Promise Ultra100TX2/ATA Bus Master IDE Accelerator",
          pdc202xx_chip_map,
        },
-       { PCI_PRODUCT_PROMISE_ULTRA100TX2v2,
+       { PCI_PRODUCT_PROMISE_PDC20270,
          0,
          "Promise Ultra100TX2v2/ATA Bus Master IDE Accelerator",
          pdc202xx_chip_map,
        },
-       { PCI_PRODUCT_PROMISE_ULTRA133,
+       { PCI_PRODUCT_PROMISE_PDC20269,
          0,
          "Promise Ultra133/ATA Bus Master IDE Accelerator",
          pdc202xx_chip_map,
        },
-       { PCI_PRODUCT_PROMISE_ULTRA133TX2,
+       { PCI_PRODUCT_PROMISE_PDC20276,
          0,
          "Promise Ultra133TX2/ATA Bus Master IDE Accelerator",
          pdc202xx_chip_map,
        },
-       { PCI_PRODUCT_PROMISE_MBULTRA133,
+       { PCI_PRODUCT_PROMISE_PDC20275,
          0,
          "Promise Ultra133/ATA Bus Master IDE Accelerator (MB)",
          pdc202xx_chip_map,
        },
-       { PCI_PRODUCT_PROMISE_ULTRA133TX2v2,
+       { PCI_PRODUCT_PROMISE_PDC20271,
          0,
          "Promise Ultra133TX2v2/ATA Bus Master IDE Accelerator",
          pdc202xx_chip_map,
        },
-       { PCI_PRODUCT_PROMISE_FASTTRAK133LITE,
+       { PCI_PRODUCT_PROMISE_PDC20277,
          0,
          "Promise Fasttrak133 Lite Bus Master IDE Accelerator",
          pdc202xx_chip_map,
        },
-       { PCI_PRODUCT_PROMISE_SATA150TX2PLUS,
-         0,
-         "Promise Serial ATA/150 TX2plus Bus Master IDE Accelerator",
-         pdc202xx_chip_map,
-       },
-       { PCI_PRODUCT_PROMISE_SATA150FT378,
-         0,
-         "Promise FastTrak 378 Serial ATA/150 Bus Master IDE Controller",
-         pdc202xx_chip_map,
-       },
        { 0,
          0,
          NULL,
@@ -150,40 +140,40 @@
 
 /* Macros to test product */
 #define PDC_IS_262(sc)                                                 \
-       ((sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA66 ||     \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA100 ||     \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA100X ||    \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA100TX2 ||  \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA100TX2v2 || \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA133 ||     \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA133TX2 ||  \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_MBULTRA133 || \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA133TX2v2 || \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_FASTTRAK133LITE)
+       ((sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20262 ||    \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20267 ||     \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20265 ||     \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20268 ||     \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20270 || \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20269 ||     \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20276 ||     \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20275 || \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20271 || \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20277)
 #define PDC_IS_265(sc)                                                 \
-       ((sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA100 ||    \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA100X ||    \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA100TX2 ||  \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA100TX2v2 || \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA133 ||     \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA133TX2 ||  \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_MBULTRA133 || \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA133TX2v2 || \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_FASTTRAK133LITE)
+       ((sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20267 ||    \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20265 ||     \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20268 ||     \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20270 || \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20269 ||     \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20276 ||     \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20275 || \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20271 || \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20277)
 #define PDC_IS_268(sc)                                                 \
-       ((sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA100TX2 || \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA100TX2v2 || \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA133 ||     \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA133TX2 ||  \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_MBULTRA133 || \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA133TX2v2 || \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_FASTTRAK133LITE)
+       ((sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20268 ||    \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20270 || \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20269 ||     \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20276 ||     \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20275 || \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20271 || \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20277)
 #define PDC_IS_276(sc)                                                 \
-       ((sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA133 ||    \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA133TX2 ||  \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_MBULTRA133 || \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA133TX2v2 || \
-       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_FASTTRAK133LITE)
+       ((sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20269 ||    \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20276 ||     \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20275 || \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20271 || \
+       (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20277)
 
 static void
 pdc202xx_chip_map(struct pciide_softc *sc, struct pci_attach_args *pa)
@@ -246,9 +236,9 @@
        sc->sc_wdcdev.channels = sc->wdc_chanarray;
        sc->sc_wdcdev.nchannels = PCIIDE_NUM_CHANNELS;
 
-       if (sc->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA66 ||
-           sc->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA100 ||
-           sc->sc_pp->ide_product == PCI_PRODUCT_PROMISE_ULTRA100X) {
+       if (sc->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20262 ||
+           sc->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20267 ||
+           sc->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20265) {
                sc->sc_wdcdev.dma_start = pdc20262_dma_start;
                sc->sc_wdcdev.dma_finish = pdc20262_dma_finish;
        }



Home | Main Index | Thread Index | Old Index