Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2019 02:50:18 +0000 (UTC)
From:      David Bright <dab@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r342755 - stable/11/sys/dev/asmc
Message-ID:  <201901040250.x042oIlt078445@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dab
Date: Fri Jan  4 02:50:18 2019
New Revision: 342755
URL: https://svnweb.freebsd.org/changeset/base/342755

Log:
  MFC r342218:
  
  asmc: Add support for MacPro1,1
  
  PR:		203431
  Submitted by:	jjr@alisa.org & holindho@saunalahti.fi
  Reported by:	jjr@alisa.org

Modified:
  stable/11/sys/dev/asmc/asmc.c
  stable/11/sys/dev/asmc/asmcvar.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/asmc/asmc.c
==============================================================================
--- stable/11/sys/dev/asmc/asmc.c	Fri Jan  4 02:48:43 2019	(r342754)
+++ stable/11/sys/dev/asmc/asmc.c	Fri Jan  4 02:50:18 2019	(r342755)
@@ -272,13 +272,22 @@ struct asmc_model asmc_models[] = {
 	  ASMC_MM52_TEMPS, ASMC_MM52_TEMPNAMES, ASMC_MM52_TEMPDESCS
 	},
 
-	/* Idem for the MacPro */
+	/* Idem for the Mac Pro "Quad Core" (original) */
 	{
+	  "MacPro1,1", "Apple SMC Mac Pro (Quad Core)",
+	  NULL, NULL, NULL,
+	  ASMC_FAN_FUNCS,
+	  NULL, NULL, NULL,
+	  ASMC_MP1_TEMPS, ASMC_MP1_TEMPNAMES, ASMC_MP1_TEMPDESCS
+	},
+
+	/* Idem for the Mac Pro (8-core) */
+	{
 	  "MacPro2", "Apple SMC Mac Pro (8-core)",
 	  NULL, NULL, NULL,
 	  ASMC_FAN_FUNCS,
 	  NULL, NULL, NULL,
-	  ASMC_MP_TEMPS, ASMC_MP_TEMPNAMES, ASMC_MP_TEMPDESCS
+	  ASMC_MP2_TEMPS, ASMC_MP2_TEMPNAMES, ASMC_MP2_TEMPDESCS
 	},
 
 	/* Idem for the MacPro  2010*/

Modified: stable/11/sys/dev/asmc/asmcvar.h
==============================================================================
--- stable/11/sys/dev/asmc/asmcvar.h	Fri Jan  4 02:48:43 2019	(r342754)
+++ stable/11/sys/dev/asmc/asmcvar.h	Fri Jan  4 02:50:18 2019	(r342755)
@@ -372,7 +372,70 @@ struct asmc_softc {
 				  "Power Supply Temperature", \
 				  "Wireless Module Proximity Temperature", }
 
-#define ASMC_MP_TEMPS		{ "TA0P", "TCAG", "TCAH", "TCBG", "TCBH", \
+#define ASMC_MP1_TEMPS		{ "TA0P", \
+				  "TCAH", "TCBH", \
+				  "TC0P", "TC0C", "TC1C", \
+				  "TC2C", "TC3C", "THTG", \
+				  "TH0P", "TH1P", \
+				  "TH2P", "TH3P", \
+				  "TM0P", "TM1P", "TM2P", \
+				  "TM8P", "TM9P", "TMAP", \
+				  "TM0S", "TM1S", "TM2P", "TM3S", \
+				  "TM8S", "TM9S", "TMAS", "TMBS", \
+				  "TN0H", "TS0C", \
+				  "Tp0C", "Tp1C", "Tv0S", "Tv1S", NULL }
+
+#define ASMC_MP1_TEMPNAMES	{ "ambient", \
+				  "cpu_a_heatsink", "cpu_b_heatsink", \
+				  "cpu_a_proximity", "cpu_core0", "cpu_core1", \
+				  "cpu_core2", "cpu_core3", "THTG", \
+				  "hdd_bay0", "hdd_bay1", \
+				  "hdd_bay2", "hdd_bay3", \
+				  "memory_card_a_proximity0", \
+				  "memory_card_a_proximity1", \
+				  "memory_card_a_proximity2", \
+				  "memory_card_b_proximity0", \
+				  "memory_card_b_proximity1", \
+				  "memory_card_b_proximity2", \
+				  "memory_card_a_slot0", \
+				  "memory_card_a_slot1", \
+				  "memory_card_a_slot2", \
+				  "memory_card_a_slot3", \
+				  "memory_card_b_slot0", \
+				  "memory_card_b_slot1", \
+				  "memory_card_b_slot2", \
+				  "memory_card_b_slot3", \
+				  "mch_heatsink", "expansion_slots", \
+				  "power_supply_loc0", "power_supply_loc1", \
+				  "Tv0S", "Tv1S", }
+
+#define ASMC_MP1_TEMPDESCS	{ "Ambient Air", \
+				  "CPU A Heatsink", "CPU B Heatsink", \
+				  "CPU A Proximity", \
+				  "CPU Core 1", "CPU Core 2", \
+				  "CPU Core 3", "CPU Core 4", "THTG", \
+				  "Hard Drive Bay 1", "Hard Drive Bay 2", \
+				  "Hard Drive Bay 3", "Hard Drive Bay 4", \
+				  "Memory Riser A, Proximity 1", \
+				  "Memory Riser A, Proximity 2", \
+				  "Memory Riser A, Proximity 3", \
+				  "Memory Riser B, Proximity 1", \
+				  "Memory Riser B, Proximity 2", \
+				  "Memory Riser B, Proximity 3", \
+				  "Memory Riser A, Slot 1", \
+				  "Memory Riser A, Slot 2", \
+				  "Memory Riser A, Slot 3", \
+				  "Memory Riser A, Slot 4", \
+				  "Memory Riser B, Slot 1", \
+				  "Memory Riser B, Slot 2", \
+				  "Memory Riser B, Slot 3", \
+				  "Memory Riser B, Slot 4", \
+				  "MCH Heatsink", "Expansion Slots", \
+				  "Power Supply, Location 1", \
+				  "Power Supply, Location 2", \
+				  "Tv0S", "Tv1S", }
+
+#define ASMC_MP2_TEMPS		{ "TA0P", "TCAG", "TCAH", "TCBG", "TCBH", \
 				  "TC0C", "TC0D", "TC0P", "TC1C", "TC1D", \
 				  "TC2C", "TC2D", "TC3C", "TC3D", "THTG", \
 				  "TH0P", "TH1P", "TH2P", "TH3P", "TMAP", \
@@ -381,7 +444,7 @@ struct asmc_softc {
 				  "TM8S", "TM9P", "TM9S", "TN0H", "TS0C", \
 				  NULL }
 
-#define ASMC_MP_TEMPNAMES	{ "TA0P", "TCAG", "TCAH", "TCBG", "TCBH", \
+#define ASMC_MP2_TEMPNAMES	{ "TA0P", "TCAG", "TCAH", "TCBG", "TCBH", \
 				  "TC0C", "TC0D", "TC0P", "TC1C", "TC1D", \
 				  "TC2C", "TC2D", "TC3C", "TC3D", "THTG", \
 				  "TH0P", "TH1P", "TH2P", "TH3P", "TMAP", \
@@ -389,7 +452,7 @@ struct asmc_softc {
 				  "TM1S", "TM2P", "TM2S", "TM3S", "TM8P", \
 				  "TM8S", "TM9P", "TM9S", "TN0H", "TS0C", }
 
-#define ASMC_MP_TEMPDESCS	{ "TA0P", "TCAG", "TCAH", "TCBG", "TCBH", \
+#define ASMC_MP2_TEMPDESCS	{ "TA0P", "TCAG", "TCAH", "TCBG", "TCBH", \
 				  "TC0C", "TC0D", "TC0P", "TC1C", "TC1D", \
 				  "TC2C", "TC2D", "TC3C", "TC3D", "THTG", \
 				  "TH0P", "TH1P", "TH2P", "TH3P", "TMAP", \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901040250.x042oIlt078445>