Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/pci Added Family 12h support.



details:   https://anonhg.NetBSD.org/src/rev/f1a01a249ac8
branches:  trunk
changeset: 777745:f1a01a249ac8
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Fri Mar 02 19:26:41 2012 +0000

description:
Added Family 12h support.

diffstat:

 sys/arch/x86/pci/amdtemp.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (53 lines):

diff -r 94b8a186e637 -r f1a01a249ac8 sys/arch/x86/pci/amdtemp.c
--- a/sys/arch/x86/pci/amdtemp.c        Fri Mar 02 19:26:40 2012 +0000
+++ b/sys/arch/x86/pci/amdtemp.c        Fri Mar 02 19:26:41 2012 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: amdtemp.c,v 1.12 2011/07/31 22:04:07 jmcneill Exp $ */
+/*      $NetBSD: amdtemp.c,v 1.13 2012/03/02 19:26:41 nonaka Exp $ */
 /*      $OpenBSD: kate.c,v 1.2 2008/03/27 04:52:03 cnst Exp $   */
 
 /*
@@ -48,7 +48,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdtemp.c,v 1.12 2011/07/31 22:04:07 jmcneill Exp $ ");
+__KERNEL_RCSID(0, "$NetBSD: amdtemp.c,v 1.13 2012/03/02 19:26:41 nonaka Exp $ ");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -196,7 +196,7 @@
        case PCI_PRODUCT_AMD_AMD64_MISC:
        case PCI_PRODUCT_AMD_AMD64_F10_MISC:
        case PCI_PRODUCT_AMD_AMD64_F11_MISC:
-       case PCI_PRODUCT_AMD_F14_NB:
+       case PCI_PRODUCT_AMD_F14_NB:    /* Family12h too */
                break;
        default:
                return 0;
@@ -268,7 +268,8 @@
 
        case 0x10: /* AMD Barcelona/Phenom */
        case 0x11: /* AMD Griffin */
-       case 0x14: /* AMD Fusion */
+       case 0x12: /* AMD Lynx/Sabine (Llano) */
+       case 0x14: /* AMD Brazos (Ontario/Zacate/Desna) */
                amdtemp_family10_init(sc);
                break;
 
@@ -296,6 +297,7 @@
                break;
        case 0x10:
        case 0x11:
+       case 0x12:
        case 0x14:
                amdtemp_family10_setup_sensors(sc, device_unit(self));
                break;
@@ -322,6 +324,7 @@
                break;
        case 0x10:
        case 0x11:
+       case 0x12:
        case 0x14:
                sc->sc_sme->sme_refresh = amdtemp_family10_refresh;
                break;



Home | Main Index | Thread Index | Old Index