Source-Changes-HG archive

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

[src/trunk]: src/sys according to VT82C686A chip specs, the VIA Technologies ...



details:   https://anonhg.NetBSD.org/src/rev/55f1862e34dd
branches:  trunk
changeset: 320898:55f1862e34dd
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Mar 04 13:24:17 2018 +0000

description:
according to VT82C686A chip specs, the VIA Technologies device 0x3057
is more a Power Management controller, rename the pcidevs entry and device
macro

PR kern/31963 by Nicolas Joly

diffstat:

 sys/arch/x86/pci/pcib.c |  10 +++++-----
 sys/dev/pci/pcidevs     |   4 ++--
 sys/dev/pci/viaenv.c    |   8 ++++----
 3 files changed, 11 insertions(+), 11 deletions(-)

diffs (86 lines):

diff -r 60a5fe5af7b1 -r 55f1862e34dd sys/arch/x86/pci/pcib.c
--- a/sys/arch/x86/pci/pcib.c   Sun Mar 04 13:13:18 2018 +0000
+++ b/sys/arch/x86/pci/pcib.c   Sun Mar 04 13:24:17 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcib.c,v 1.15 2012/04/06 20:38:52 plunky Exp $ */
+/*     $NetBSD: pcib.c,v 1.16 2018/03/04 13:24:17 jdolecek Exp $       */
 
 /*-
  * Copyright (c) 1996, 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.15 2012/04/06 20:38:52 plunky Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcib.c,v 1.16 2018/03/04 13:24:17 jdolecek Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -143,10 +143,10 @@
                break;
        case PCI_VENDOR_VIATECH:
                switch (PCI_PRODUCT(pa->pa_id)) {
-               case PCI_PRODUCT_VIATECH_VT82C686A_SMB:
+               case PCI_PRODUCT_VIATECH_VT82C686A_PWR:
                        /*
-                        * The VIA VT82C686A SMBus Controller itself as 
-                        * ISA bridge, but it's wrong !
+                        * The VIA VT82C686A Power Management Controller
+                        * identifies itself as ISA bridge, but it's wrong !
                         */
                        return (0);
                }
diff -r 60a5fe5af7b1 -r 55f1862e34dd sys/dev/pci/pcidevs
--- a/sys/dev/pci/pcidevs       Sun Mar 04 13:13:18 2018 +0000
+++ b/sys/dev/pci/pcidevs       Sun Mar 04 13:24:17 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: pcidevs,v 1.1318 2018/03/04 13:11:51 jdolecek Exp $
+$NetBSD: pcidevs,v 1.1319 2018/03/04 13:24:17 jdolecek Exp $
 
 /*
  * Copyright (c) 1995, 1996 Christopher G. Demetriou
@@ -7072,7 +7072,7 @@
 product VIATECH VT3043         0x3043  VT3043 (Rhine) 10/100 Ethernet
 product VIATECH VT6306         0x3044  VT6306 IEEE 1394 Host Controller
 product VIATECH VT6105M        0x3053  VT6105M (Rhine III) 10/100 Ethernet
-product VIATECH VT82C686A_SMB  0x3057  VT82C686A SMBus Controller
+product VIATECH VT82C686A_PWR  0x3057  VT82C686A Power Management Controller
 product VIATECH VT82C686A_AC97 0x3058  VT82C686A AC-97 Audio Controller
 product VIATECH VT8233_AC97    0x3059  VT8233/VT8235 AC-97 Audio Controller
 product VIATECH        VT6102          0x3065  VT6102 (Rhine II) 10/100 Ethernet
diff -r 60a5fe5af7b1 -r 55f1862e34dd sys/dev/pci/viaenv.c
--- a/sys/dev/pci/viaenv.c      Sun Mar 04 13:13:18 2018 +0000
+++ b/sys/dev/pci/viaenv.c      Sun Mar 04 13:24:17 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: viaenv.c,v 1.33 2014/08/11 06:02:38 ozaki-r Exp $      */
+/*     $NetBSD: viaenv.c,v 1.34 2018/03/04 13:24:17 jdolecek Exp $     */
 
 /*
  * Copyright (c) 2000 Johan Danielsson
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: viaenv.c,v 1.33 2014/08/11 06:02:38 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: viaenv.c,v 1.34 2018/03/04 13:24:17 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -99,7 +99,7 @@
                return 0;
 
        switch (PCI_PRODUCT(pa->pa_id)) {
-       case PCI_PRODUCT_VIATECH_VT82C686A_SMB:
+       case PCI_PRODUCT_VIATECH_VT82C686A_PWR:
        case PCI_PRODUCT_VIATECH_VT8231_PWR:
                return 1;
        default:
@@ -284,7 +284,7 @@
        aprint_naive("\n");
        aprint_normal(": VIA Technologies ");
        switch (PCI_PRODUCT(pa->pa_id)) {
-       case PCI_PRODUCT_VIATECH_VT82C686A_SMB:
+       case PCI_PRODUCT_VIATECH_VT82C686A_PWR:
                aprint_normal("VT82C686A Hardware Monitor\n");
                break;
        case PCI_PRODUCT_VIATECH_VT8231_PWR:



Home | Main Index | Thread Index | Old Index