FreeBSD Tips: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
MacBook 6,1 (13-Inch, Late 2009) unibody polycarbonate white 再生計画 その3
asmc モジュールを修正した。
<syntaxhighlight lang="diff" enclose="div">
pkg info -D nvidia-driver-340--- a/asmc/asmc.c
+++ b/asmc/asmc.c
@@ -173,6 +173,12 @@ struct asmc_model asmc_models[] = {
},
{
+   "MacBook6,1", "Apple SMC MacBook Core 2 Duo (13-inch, Late 2009)",
+   ASMC_SMS_FUNCS, ASMC_FAN_FUNCS2, ASMC_LIGHT_FUNCS_DISABLED,
+   ASMC_MB61_TEMPS, ASMC_MB61_TEMPNAMES, ASMC_MB61_TEMPDESCS
+ },
+
+ {
  "MacBook7,1", "Apple SMC MacBook Core 2 Duo (mid 2010)",
  ASMC_SMS_FUNCS, ASMC_FAN_FUNCS2, ASMC_LIGHT_FUNCS_DISABLED,
  ASMC_MB71_TEMPS, ASMC_MB71_TEMPNAMES, ASMC_MB71_TEMPDESCS
--- a/asmc/asmcvar.h
+++ b/asmc/asmcvar.h
@@ -157,6 +157,18 @@ struct asmc_softc {
  "Heatsink 1","Heatsink 2" \
  "Memory Bank A", }
+#define ASMC_MB61_TEMPS { "TB0T", "TB1T", "TB2T", "TC0D", "TC0P", \
+   "TH0P", "TN0D", "TN0P", "TN1D", "Th1H", \
+   "Ts0P", "Ts0S", NULL }
+
+#define ASMC_MB61_TEMPNAMES { "enclosure_bottom0", "battery_1", "battery_2", "cpu_package", "cpu_proximity", \
+   "hdd_bay", "northbridge0_diode", "northbridge0_proximity", "mpc_die2", "heatsink1", \
+   "palm_rest", "memory_proximity", }
+
+#define ASMC_MB61_TEMPDESCS { "Enclosure Bottom 0", "Battery 1", "Battery 2", "CPU Package", "CPU Proximity", \
+   "HDD Bay", "Northbridge Diode", "Northbridge Proximity", "MPC Die 2", "Heatsink 1", \
+   "Palm Rest", "Memory Proximity", }
+
#define ASMC_MB71_TEMPS { "TB0T", "TB1T", "TB2T", "TC0D", "TC0P", \
  "TH0P", "TN0D", "TN0P", "TN0S", "TN1D", \
  "TN1E", "TN1F", "TN1G", "TN1S", "Th1H", \
</syntaxhighlight>
*再生計画 雑多なメモ
*再生計画 雑多なメモ
<syntaxhighlight lang="bash" enclose="div">
<syntaxhighlight lang="bash" enclose="div">