Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci match VIA Technologies VX800, VX855, and VT8237S...



details:   https://anonhg.NetBSD.org/src/rev/b5fbc5408248
branches:  trunk
changeset: 451734:b5fbc5408248
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Jun 01 08:20:14 2019 +0000

description:
match VIA Technologies VX800, VX855, and VT8237S in RAID mode

patch provided and testing done by Andrius Varanavicius via PR kern/43309

diffstat:

 sys/dev/pci/viaide.c |  27 +++++++++++++++++++++++++--
 1 files changed, 25 insertions(+), 2 deletions(-)

diffs (62 lines):

diff -r 89c211bdfd0d -r b5fbc5408248 sys/dev/pci/viaide.c
--- a/sys/dev/pci/viaide.c      Sat Jun 01 08:15:04 2019 +0000
+++ b/sys/dev/pci/viaide.c      Sat Jun 01 08:20:14 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: viaide.c,v 1.87 2018/12/09 11:14:02 jdolecek Exp $     */
+/*     $NetBSD: viaide.c,v 1.88 2019/06/01 08:20:14 jdolecek Exp $     */
 
 /*
  * Copyright (c) 1999, 2000, 2001 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: viaide.c,v 1.87 2018/12/09 11:14:02 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: viaide.c,v 1.88 2019/06/01 08:20:14 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -309,6 +309,16 @@
          NULL,
          via_chip_map,
        },
+       { PCI_PRODUCT_VIATECH_VX800,
+         0,
+         "VIA Technologies VX800 SATA Controller",
+         via_sata_chip_map_new,
+       },
+       { PCI_PRODUCT_VIATECH_VX855,
+         0,
+         NULL,
+         via_sata_chip_map_new,
+       },
        { PCI_PRODUCT_VIATECH_VX900_IDE,
          0,
          NULL,
@@ -349,6 +359,11 @@
          "VIA Technologies VT8237S SATA Controller",
          via_sata_chip_map_7,
        },
+       { PCI_PRODUCT_VIATECH_VT8237S_SATA_RAID,
+         0,
+         "VIA Technologies VT8237S SATA Controller (RAID mode)",
+         via_sata_chip_map_7,
+       },
        { 0,
          0,
          NULL,
@@ -546,6 +561,14 @@
                                aprint_normal("VT8251 ATA133 controller\n");
                                sc->sc_wdcdev.sc_atac.atac_udma_cap = 6;
                                break;
+                       case PCI_PRODUCT_VIATECH_VX800:
+                               aprint_normal("VT800 ATA133 controller\n");
+                               sc->sc_wdcdev.sc_atac.atac_udma_cap = 6;
+                               break;
+                       case PCI_PRODUCT_VIATECH_VX855:
+                               aprint_normal("VT855 ATA133 controller\n");
+                               sc->sc_wdcdev.sc_atac.atac_udma_cap = 6;
+                               break;
                        default:
                unknown:
                                aprint_normal("unknown VIA ATA controller\n");



Home | Main Index | Thread Index | Old Index