Module Name:    src
Committed By:   jakllsch
Date:           Fri Nov 20 20:16:30 UTC 2009

Modified Files:
        src/sys/dev/pci: viaide.c

Log Message:
Switch VT8237R SATA to via_sata_chip_map_7().  via_sata_chip_map_7()
works fine and is consistent with the other VIA SATA controllers.

Tested on VT8237R+.

(Somewhat amazing that via_sata_chip_map_0() worked at all for the
second port.)


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/dev/pci/viaide.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/viaide.c
diff -u src/sys/dev/pci/viaide.c:1.62 src/sys/dev/pci/viaide.c:1.63
--- src/sys/dev/pci/viaide.c:1.62	Wed Nov 18 19:42:18 2009
+++ src/sys/dev/pci/viaide.c	Fri Nov 20 20:16:30 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: viaide.c,v 1.62 2009/11/18 19:42:18 jakllsch Exp $	*/
+/*	$NetBSD: viaide.c,v 1.63 2009/11/20 20:16:30 jakllsch Exp $	*/
 
 /*
  * Copyright (c) 1999, 2000, 2001 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: viaide.c,v 1.62 2009/11/18 19:42:18 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: viaide.c,v 1.63 2009/11/20 20:16:30 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -47,8 +47,6 @@
 		    struct pci_attach_args *);
 static void	via_sata_chip_map(struct pciide_softc *,
 		    struct pci_attach_args *, int);
-static void	via_sata_chip_map_0(struct pciide_softc *,
-		    struct pci_attach_args *);
 static void	via_sata_chip_map_6(struct pciide_softc *,
 		    struct pci_attach_args *);
 static void	via_sata_chip_map_7(struct pciide_softc *,
@@ -332,7 +330,7 @@
 	{ PCI_PRODUCT_VIATECH_VT8237R_SATA,
 	  0,
 	  "VIA Technologies VT8237R SATA Controller",
-	  via_sata_chip_map_0,
+	  via_sata_chip_map_7,
 	},
 	{ PCI_PRODUCT_VIATECH_VT8237S_SATA,
 	  0,
@@ -964,12 +962,6 @@
 }
 
 static void
-via_sata_chip_map_0(struct pciide_softc *sc, struct pci_attach_args *pa)
-{
-	via_sata_chip_map(sc, pa, 0);
-}
-
-static void
 via_sata_chip_map_6(struct pciide_softc *sc, struct pci_attach_args *pa)
 {
 	via_sata_chip_map(sc, pa, 6);

Reply via email to