Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Switch VT8237R SATA to via_sata_chip_map_7(). v...
details: https://anonhg.NetBSD.org/src/rev/e738321715cb
branches: trunk
changeset: 749184:e738321715cb
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Fri Nov 20 20:16:30 2009 +0000
description:
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.)
diffstat:
sys/dev/pci/viaide.c | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
diffs (49 lines):
diff -r 16ad29ce82d4 -r e738321715cb sys/dev/pci/viaide.c
--- a/sys/dev/pci/viaide.c Fri Nov 20 19:25:37 2009 +0000
+++ b/sys/dev/pci/viaide.c Fri Nov 20 20:16:30 2009 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index