2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
4 * Copyright (c) 2007, 2008 Rui Paulo <rpaulo@FreeBSD.org>
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
20 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
24 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
25 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE.
32 #define ASMC_MAXFANS 6
41 struct sysctl_oid *sc_fan_tree[ASMC_MAXFANS+1];
42 struct sysctl_oid *sc_temp_tree;
43 struct sysctl_oid *sc_sms_tree;
44 struct sysctl_oid *sc_light_tree;
45 struct asmc_model *sc_model;
48 struct resource *sc_ioport;
49 struct resource *sc_irq;
52 struct taskqueue *sc_sms_tq;
53 struct task sc_sms_task;
54 uint8_t sc_sms_intr_works;
60 #define ASMC_DATAPORT_READ(sc) bus_read_1(sc->sc_ioport, 0x00)
61 #define ASMC_DATAPORT_WRITE(sc, val) \
62 bus_write_1(sc->sc_ioport, 0x00, val)
63 #define ASMC_STATUS_MASK 0x0f
68 #define ASMC_CMDPORT_READ(sc) bus_read_1(sc->sc_ioport, 0x04)
69 #define ASMC_CMDPORT_WRITE(sc, val) \
70 bus_write_1(sc->sc_ioport, 0x04, val)
71 #define ASMC_CMDREAD 0x10
72 #define ASMC_CMDWRITE 0x11
77 #define ASMC_INTPORT_READ(sc) bus_read_1(sc->sc_ioport, 0x1f)
81 #define ASMC_NKEYS "#KEY" /* RO; 4 bytes */
84 * Fan control via SMC.
86 #define ASMC_KEY_FANCOUNT "FNum" /* RO; 1 byte */
87 #define ASMC_KEY_FANMANUAL "FS! " /* RW; 2 bytes */
88 #define ASMC_KEY_FANID "F%dID" /* RO; 16 bytes */
89 #define ASMC_KEY_FANSPEED "F%dAc" /* RO; 2 bytes */
90 #define ASMC_KEY_FANMINSPEED "F%dMn" /* RO; 2 bytes */
91 #define ASMC_KEY_FANMAXSPEED "F%dMx" /* RO; 2 bytes */
92 #define ASMC_KEY_FANSAFESPEED "F%dSf" /* RO; 2 bytes */
93 #define ASMC_KEY_FANTARGETSPEED "F%dTg" /* RW; 2 bytes */
96 * Sudden Motion Sensor (SMS).
98 #define ASMC_SMS_INIT1 0xe0
99 #define ASMC_SMS_INIT2 0xf8
100 #define ASMC_KEY_SMS "MOCN" /* RW; 2 bytes */
101 #define ASMC_KEY_SMS_X "MO_X" /* RO; 2 bytes */
102 #define ASMC_KEY_SMS_Y "MO_Y" /* RO; 2 bytes */
103 #define ASMC_KEY_SMS_Z "MO_Z" /* RO; 2 bytes */
104 #define ASMC_KEY_SMS_LOW "MOLT" /* RW; 2 bytes */
105 #define ASMC_KEY_SMS_HIGH "MOHT" /* RW; 2 bytes */
106 #define ASMC_KEY_SMS_LOW_INT "MOLD" /* RW; 1 byte */
107 #define ASMC_KEY_SMS_HIGH_INT "MOHD" /* RW; 1 byte */
108 #define ASMC_KEY_SMS_FLAG "MSDW" /* RW; 1 byte */
109 #define ASMC_SMS_INTFF 0x60 /* Free fall Interrupt */
110 #define ASMC_SMS_INTHA 0x6f /* High Acceleration Interrupt */
111 #define ASMC_SMS_INTSH 0x80 /* Shock Interrupt */
114 * Keyboard backlight.
116 #define ASMC_KEY_LIGHTLEFT "ALV0" /* RO; 6 bytes */
117 #define ASMC_KEY_LIGHTRIGHT "ALV1" /* RO; 6 bytes */
118 #define ASMC_KEY_LIGHTVALUE "LKSB" /* WO; 2 bytes */
123 #define ASMC_KEY_CLAMSHELL "MSLD" /* RO; 1 byte */
128 #define ASMC_KEY_INTOK "NTOK" /* WO; 1 byte */
133 * First for MacBook, second for MacBook Pro, third for Intel Mac Mini,
134 * fourth the Mac Pro 8-core and finally the MacBook Air.
137 /* maximum array size for temperatures including the last NULL */
138 #define ASMC_TEMP_MAX 80
139 #define ASMC_MB_TEMPS { "TB0T", "TN0P", "TN1P", "Th0H", "Th1H", \
141 #define ASMC_MB_TEMPNAMES { "enclosure", "northbridge1", \
142 "northbridge2", "heatsink1", \
143 "heatsink2", "memory", }
144 #define ASMC_MB_TEMPDESCS { "Enclosure Bottomside", \
145 "Northbridge Point 1", \
146 "Northbridge Point 2", "Heatsink 1", \
147 "Heatsink 2", "Memory Bank A", }
149 #define ASMC_MB31_TEMPS { "TB0T", "TN0P", "Th0H", "Th1H", \
152 #define ASMC_MB31_TEMPNAMES { "enclosure", "northbridge1", \
153 "heatsink1", "heatsink2", \
156 #define ASMC_MB31_TEMPDESCS { "Enclosure Bottomside", \
157 "Northbridge Point 1", \
158 "Heatsink 1","Heatsink 2" \
161 #define ASMC_MBP_TEMPS { "TB0T", "Th0H", "Th1H", "Tm0P", \
162 "TG0H", "TG0P", "TG0T", NULL }
164 #define ASMC_MBP_TEMPNAMES { "enclosure", "heatsink1", \
165 "heatsink2", "memory", "graphics", \
166 "graphicssink", "unknown", }
168 #define ASMC_MBP_TEMPDESCS { "Enclosure Bottomside", \
169 "Heatsink 1", "Heatsink 2", \
170 "Memory Controller", \
171 "Graphics Chip", "Graphics Heatsink", \
174 #define ASMC_MBP4_TEMPS { "TB0T", "Th0H", "Th1H", "Th2H", "Tm0P", \
175 "TG0H", "TG0D", "TC0D", "TC0P", "Ts0P", \
176 "TTF0", "TW0P", NULL }
178 #define ASMC_MBP4_TEMPNAMES { "enclosure", "heatsink1", "heatsink2", \
179 "heatsink3", "memory", "graphicssink", \
180 "graphics", "cpu", "cpu2", "unknown1", \
181 "unknown2", "wireless", }
183 #define ASMC_MBP4_TEMPDESCS { "Enclosure Bottomside", \
184 "Main Heatsink 1", "Main Heatsink 2", \
186 "Memory Controller", \
187 "Graphics Chip Heatsink", \
188 "Graphics Chip Diode", \
189 "CPU Temperature Diode", "CPU Point 2", \
190 "Unknown", "Unknown", \
193 #define ASMC_MBP5_TEMPS { "TB0T", "TB1T", "TB2T", "TB3T", "TC0D", \
194 "TC0F", "TC0P", "TG0D", "TG0F", "TG0H", \
195 "TG0P", "TG0T", "TG1H", "TN0D", "TN0P", \
196 "TTF0", "Th2H", "Tm0P", "Ts0P", "Ts0S", \
199 #define ASMC_MBP5_TEMPNAMES { "enclosure_bottom_0", "enclosure_bottom_1", \
200 "enclosure_bottom_2", "enclosure_bottom_3", \
201 "cpu_diode", "cpu", \
202 "cpu_pin", "gpu_diode", \
203 "gpu", "gpu_heatsink", \
204 "gpu_pin", "gpu_transistor", \
205 "gpu_2_heatsink", "northbridge_diode", \
206 "northbridge_pin", "unknown", \
207 "heatsink_2", "memory_controller", \
208 "pci_express_slot_pin", "pci_express_slot_unk" }
210 #define ASMC_MBP5_TEMPDESCS { "Enclosure Bottom 0", "Enclosure Bottom 1", \
211 "Enclosure Bottom 2", "Enclosure Bottom 3", \
212 "CPU Diode", "CPU ???", \
213 "CPU Pin", "GPU Diode", \
214 "GPU ???", "GPU Heatsink", \
215 "GPU Pin", "GPU Transistor", \
216 "GPU 2 Heatsink", "Northbridge Diode", \
217 "Northbridge Pin", "Unknown", \
218 "Heatsink 2", "Memory Controller", \
219 "PCI Express Slot Pin", "PCI Express Slot (unk)" }
221 #define ASMC_MBP81_TEMPS { "TB0T", "TB1T", "TB2T", "TC0C", "TC0D", \
222 "TC0E", "TC0F", "TC0P", "TC1C", "TC2C", \
223 "TCFC", "TCGC", "TCSA", "TM0S", "TMBS", \
224 "TP0P", "TPCD", "TW0P", "Th1H", "Ts0P", \
227 #define ASMC_MBP81_TEMPNAMES { "enclosure", "TB1T", "TB2T", "TC0C", "TC0D", \
228 "TC0E", "TC0F", "TC0P", "TC1C", "TC2C", \
229 "TCFC", "TCGC", "TCSA", "TM0S", "TMBS", \
230 "TP0P", "TPCD", "wireless", "Th1H", "Ts0P", \
233 #define ASMC_MBP81_TEMPDESCS { "Enclosure Bottomside", "TB1T", "TB2T", "TC0C", "TC0D", \
234 "TC0E", "TC0F", "TC0P", "TC1C", "TC2C", \
235 "TCFC", "TCGC", "TCSA", "TM0S", "TMBS", \
236 "TP0P", "TPCD", "TW0P", "Th1H", "Ts0P", \
239 #define ASMC_MBP82_TEMPS { "TB0T", "TB1T", "TB2T", "TC0C", "TC0D", \
240 "TC0E", "TC0F", "TC0P", "TC1C", "TC2C", \
241 "TC3C", "TC4C", "TCFC", "TCGC", "TCSA", \
242 "TCTD", "TG0D", "TG0P", "THSP", "TM0S", \
243 "TMBS", "TP0P", "TPCD", "TW0P", "Th1H", \
244 "Th2H", "Tm0P", "Ts0P", "Ts0S", NULL }
246 #define ASMC_MBP82_TEMPNAMES { "enclosure", "TB1T", "TB2T", "TC0C", "TC0D", \
247 "TC0E", "TC0F", "TC0P", "TC1C", "TC2C", \
248 "TC3C", "TC4C", "TCFC", "TCGC", "TCSA", \
249 "TCTD", "graphics", "TG0P", "THSP", "TM0S", \
250 "TMBS", "TP0P", "TPCD", "wireless", "Th1H", \
251 "Th2H", "memory", "Ts0P", "Ts0S" }
253 #define ASMC_MBP82_TEMPDESCS { "Enclosure Bottomside", "TB1T", "TB2T", "TC0C", "TC0D", \
254 "TC0E", "TC0F", "TC0P", "TC1C", "TC2C", \
255 "TC3C", "TC4C", "TCFC", "TCGC", "TCSA", \
256 "TCTD", "TG0D", "TG0P", "THSP", "TM0S", \
257 "TMBS", "TP0P", "TPCD", "TW0P", "Th1H", \
258 "Th2H", "Tm0P", "Ts0P", "Ts0S" }
260 #define ASMC_MBP112_TEMPS { "TB0T", "TB1T", "TB2T", "TBXT", "TC0E", \
261 "TC0F", "TC0P", "TC1C", "TC2C", "TC3C", \
262 "TC4C", "TCFC", "TCGC", "TCSA", "TCTD", \
263 "TCXC", "TH0A", "TH0B", "TH0F", "TH0R", \
264 "TH0V", "TH0a", "TH0b", "TH0c", "TM0P", \
265 "TM0S", "TP0P", "TPCD", "TW0P", "Ta0P", \
266 "TaSP", "Th1H", "Th2H", "Ts0P", "Ts0S", \
269 #define ASMC_MBP112_TEMPNAMES { "TB0T", "TB1T", "TB2T", "TBXT", "TC0E", \
270 "TC0F", "TC0P", "TC1C", "TC2C", "TC3C", \
271 "TC4C", "TCFC", "TCGC", "TCSA", "TCTD", \
272 "TCXC", "TH0A", "TH0B", "TH0F", "TH0R", \
273 "TH0V", "TH0a", "TH0b", "TH0c", "TM0P", \
274 "TM0S", "TP0P", "TPCD", "TW0P", "Ta0P", \
275 "TaSP", "Th1H", "Th2H", "Ts0P", "Ts0S", \
278 #define ASMC_MBP112_TEMPDESCS { "TB0T", "TB1T", "TB2T", "TBXT", "TC0E", \
279 "TC0F", "TC0P", "TC1C", "TC2C", "TC3C", \
280 "TC4C", "TCFC", "TCGC", "TCSA", "TCTD", \
281 "TCXC", "TH0A", "TH0B", "TH0F", "TH0R", \
282 "TH0V", "TH0a", "TH0b", "TH0c", "TM0P", \
283 "TM0S", "TP0P", "TPCD", "TW0P", "Ta0P", \
284 "TaSP", "Th1H", "Th2H", "Ts0P", "Ts0S", \
287 #define ASMC_MBP113_TEMPS { "TB0T", "TB1T", "TB2T", "TBXT", "TC0E", \
288 "TC0F", "TC0P", "TC1C", "TC2C", "TC3C", \
289 "TC4C", "TCFC", "TCGC", "TCSA", "TCTD", \
290 "TCXC", "TG0D", "TG0P", "TG1D", "TG1F", \
291 "TG1d", "TH0A", "TH0B", "TH0F", "TH0R", \
292 "TH0V", "TH0a", "TH0b", "TH0c", "TM0P", \
293 "TM0S", "TP0P", "TPCD", "TW0P", "Ta0P", \
294 "TaSP", "Th1H", "Th2H", "Ts0P", "Ts0S", \
297 #define ASMC_MBP113_TEMPNAMES { "TB0T", "TB1T", "TB2T", "TBXT", "TC0E", \
298 "TC0F", "TC0P", "TC1C", "TC2C", "TC3C", \
299 "TC4C", "TCFC", "TCGC", "TCSA", "TCTD", \
300 "TCXC", "TG0D", "TG0P", "TG1D", "TG1F", \
301 "TG1d", "TH0A", "TH0B", "TH0F", "TH0R", \
302 "TH0V", "TH0a", "TH0b", "TH0c", "TM0P", \
303 "TM0S", "TP0P", "TPCD", "TW0P", "Ta0P", \
304 "TaSP", "Th1H", "Th2H", "Ts0P", "Ts0S", \
307 #define ASMC_MBP113_TEMPDESCS { "TB0T", "TB1T", "TB2T", "TBXT", "TC0E", \
308 "TC0F", "TC0P", "TC1C", "TC2C", "TC3C", \
309 "TC4C", "TCFC", "TCGC", "TCSA", "TCTD", \
310 "TCXC", "TG0D", "TG0P", "TG1D", "TG1F", \
311 "TG1d", "TH0A", "TH0B", "TH0F", "TH0R", \
312 "TH0V", "TH0a", "TH0b", "TH0c", "TM0P", \
313 "TM0S", "TP0P", "TPCD", "TW0P", "Ta0P", \
314 "TaSP", "Th1H", "Th2H", "Ts0P", "Ts0S", \
318 #define ASMC_MM_TEMPS { "TN0P", "TN1P", NULL }
319 #define ASMC_MM_TEMPNAMES { "northbridge1", "northbridge2" }
320 #define ASMC_MM_TEMPDESCS { "Northbridge Point 1", \
321 "Northbridge Point 2" }
323 #define ASMC_MM31_TEMPS { "TC0D", "TC0H", \
328 #define ASMC_MM31_TEMPNAMES { "cpu0_die", "cpu0_heatsink", \
329 "cpu0_proximity", "hdd_bay", \
331 "northbridge_proximity", \
332 "wireless_proximity", }
334 #define ASMC_MM31_TEMPDESCS { "CPU0 Die Core Temperature", \
335 "CPU0 Heatsink Temperature", \
336 "CPU0 Proximity Temperature", \
337 "HDD Bay Temperature", \
338 "Northbridge Die Core Temperature", \
339 "Northbridge Proximity Temperature", \
340 "Wireless Module Proximity Temperature", }
342 #define ASMC_MM52_TEMPS { "TA0P", "TA1P", \
352 #define ASMC_MM52_TEMPNAMES { "ambient_air_proximity", "ambient_cpu_pch_wireless_dimm", \
353 "cpu_die", "cpu_proximity", \
354 "gpu_diode1", "gpu_diode2", \
355 "gpu_proximity", "gpu_integrated_switcher", \
356 "thunderbolt_proximity", \
357 "memory_slot1", "memory_slot2", \
358 "memory_proximity", "pch_controller_proximity", \
359 "pch_controller_die", "pwr_supply", \
360 "wireless_proximity", }
362 #define ASMC_MM52_TEMPDESCS { "Ambient Air Proximity Temperature", \
363 "Combo Ambient CPU PCH Wireless DIMM Temperature", \
364 "CPU Die Temperature", "CPU Proximity Temperature", \
365 "GPU Diode 1 Temperature" , "GPU Diode 2 Temperature", \
366 "GPU Proximity Temperature", \
367 "Integrated Graphics/GPU Switcher Temperature", \
368 "Thunderbolt Proximity Temperature", \
369 "Memory Slot 1 Temperature", \
370 "Memory Slot 2 Temperature", \
371 "Memory Slots Proximity Temperature", \
372 "Platform Controller Hub Proximity Temperature", \
373 "Platform Controller Hub Die Temperature", \
374 "Power Supply Temperature", \
375 "Wireless Module Proximity Temperature", }
377 #define ASMC_MP1_TEMPS { "TA0P", \
379 "TC0P", "TC0C", "TC1C", \
380 "TC2C", "TC3C", "THTG", \
383 "TM0P", "TM1P", "TM2P", \
384 "TM8P", "TM9P", "TMAP", \
385 "TM0S", "TM1S", "TM2P", "TM3S", \
386 "TM8S", "TM9S", "TMAS", "TMBS", \
388 "Tp0C", "Tp1C", "Tv0S", "Tv1S", NULL }
390 #define ASMC_MP1_TEMPNAMES { "ambient", \
391 "cpu_a_heatsink", "cpu_b_heatsink", \
392 "cpu_a_proximity", "cpu_core0", "cpu_core1", \
393 "cpu_core2", "cpu_core3", "THTG", \
394 "hdd_bay0", "hdd_bay1", \
395 "hdd_bay2", "hdd_bay3", \
396 "memory_card_a_proximity0", \
397 "memory_card_a_proximity1", \
398 "memory_card_a_proximity2", \
399 "memory_card_b_proximity0", \
400 "memory_card_b_proximity1", \
401 "memory_card_b_proximity2", \
402 "memory_card_a_slot0", \
403 "memory_card_a_slot1", \
404 "memory_card_a_slot2", \
405 "memory_card_a_slot3", \
406 "memory_card_b_slot0", \
407 "memory_card_b_slot1", \
408 "memory_card_b_slot2", \
409 "memory_card_b_slot3", \
410 "mch_heatsink", "expansion_slots", \
411 "power_supply_loc0", "power_supply_loc1", \
414 #define ASMC_MP1_TEMPDESCS { "Ambient Air", \
415 "CPU A Heatsink", "CPU B Heatsink", \
417 "CPU Core 1", "CPU Core 2", \
418 "CPU Core 3", "CPU Core 4", "THTG", \
419 "Hard Drive Bay 1", "Hard Drive Bay 2", \
420 "Hard Drive Bay 3", "Hard Drive Bay 4", \
421 "Memory Riser A, Proximity 1", \
422 "Memory Riser A, Proximity 2", \
423 "Memory Riser A, Proximity 3", \
424 "Memory Riser B, Proximity 1", \
425 "Memory Riser B, Proximity 2", \
426 "Memory Riser B, Proximity 3", \
427 "Memory Riser A, Slot 1", \
428 "Memory Riser A, Slot 2", \
429 "Memory Riser A, Slot 3", \
430 "Memory Riser A, Slot 4", \
431 "Memory Riser B, Slot 1", \
432 "Memory Riser B, Slot 2", \
433 "Memory Riser B, Slot 3", \
434 "Memory Riser B, Slot 4", \
435 "MCH Heatsink", "Expansion Slots", \
436 "Power Supply, Location 1", \
437 "Power Supply, Location 2", \
440 #define ASMC_MP2_TEMPS { "TA0P", "TCAG", "TCAH", "TCBG", "TCBH", \
441 "TC0C", "TC0D", "TC0P", "TC1C", "TC1D", \
442 "TC2C", "TC2D", "TC3C", "TC3D", "THTG", \
443 "TH0P", "TH1P", "TH2P", "TH3P", "TMAP", \
444 "TMAS", "TMBS", "TM0P", "TM0S", "TM1P", \
445 "TM1S", "TM2P", "TM2S", "TM3S", "TM8P", \
446 "TM8S", "TM9P", "TM9S", "TN0H", "TS0C", \
449 #define ASMC_MP2_TEMPNAMES { "TA0P", "TCAG", "TCAH", "TCBG", "TCBH", \
450 "TC0C", "TC0D", "TC0P", "TC1C", "TC1D", \
451 "TC2C", "TC2D", "TC3C", "TC3D", "THTG", \
452 "TH0P", "TH1P", "TH2P", "TH3P", "TMAP", \
453 "TMAS", "TMBS", "TM0P", "TM0S", "TM1P", \
454 "TM1S", "TM2P", "TM2S", "TM3S", "TM8P", \
455 "TM8S", "TM9P", "TM9S", "TN0H", "TS0C", }
457 #define ASMC_MP2_TEMPDESCS { "TA0P", "TCAG", "TCAH", "TCBG", "TCBH", \
458 "TC0C", "TC0D", "TC0P", "TC1C", "TC1D", \
459 "TC2C", "TC2D", "TC3C", "TC3D", "THTG", \
460 "TH0P", "TH1P", "TH2P", "TH3P", "TMAP", \
461 "TMAS", "TMBS", "TM0P", "TM0S", "TM1P", \
462 "TM1S", "TM2P", "TM2S", "TM3S", "TM8P", \
463 "TM8S", "TM9P", "TM9S", "TN0H", "TS0C", }
465 #define ASMC_MP5_TEMPS { "TA0P", "TCAC", "TCAD", "TCAG", "TCAH", \
466 "TCAS", "TCBC", "TCBD", "TCBG", "TCBH", \
467 "TCBS", "TH1F", "TH1P", "TH1V", "TH2F", \
468 "TH2P", "TH2V", "TH3F", "TH3P", "TH3V", \
469 "TH4F", "TH4P", "TH4V", "THPS", "THTG", \
470 "TM1P", "TM2P", "TM2V", "TM3P", "TM3V", \
471 "TM4P", "TM5P", "TM6P", "TM6V", "TM7P", \
472 "TM7V", "TM8P", "TM8V", "TM9V", "TMA1", \
473 "TMA2", "TMA3", "TMA4", "TMB1", "TMB2", \
474 "TMB3", "TMB4", "TMHS", "TMLS", "TMPS", \
475 "TMPV", "TMTG", "TN0D", "TN0H", "TNTG", \
476 "Te1F", "Te1P", "Te1S", "Te2F", "Te2S", \
477 "Te3F", "Te3S", "Te4F", "Te4S", "Te5F", \
478 "Te5S", "TeGG", "TeGP", "TeRG", "TeRP", \
479 "TeRV", "Tp0C", "Tp1C", "TpPS", "TpTG", \
482 #define ASMC_MP5_TEMPNAMES { "ambient", "TCAC", "TCAD", "TCAG", "TCAH", \
483 "TCAS", "TCBC", "TCBD", "TCBG", "TCBH", \
484 "TCBS", "TH1F", "TH1P", "TH1V", "TH2F", \
485 "TH2P", "TH2V", "TH3F", "TH3P", "TH3V", \
486 "TH4F", "TH4P", "TH4V", "THPS", "THTG", \
487 "TM1P", "TM2P", "TM2V", "TM3P", "TM3V", \
488 "TM4P", "TM5P", "TM6P", "TM6V", "TM7P", \
489 "TM7V", "TM8P", "TM8V", "TM9V", "ram_a1", \
490 "ram_a2", "ram_a3", "ram_a4", "ram_b1", "ram_b2", \
491 "ram_b3", "ram_b4", "TMHS", "TMLS", "TMPS", \
492 "TMPV", "TMTG", "TN0D", "TN0H", "TNTG", \
493 "Te1F", "Te1P", "Te1S", "Te2F", "Te2S", \
494 "Te3F", "Te3S", "Te4F", "Te4S", "Te5F", \
495 "Te5S", "TeGG", "TeGP", "TeRG", "TeRP", \
496 "TeRV", "Tp0C", "Tp1C", "TpPS", "TpTG", }
498 #define ASMC_MP5_TEMPDESCS { "TA0P", "TCAC", "TCAD", "TCAG", "TCAH", \
499 "TCAS", "TCBC", "TCBD", "TCBG", "TCBH", \
500 "TCBS", "TH1F", "TH1P", "TH1V", "TH2F", \
501 "TH2P", "TH2V", "TH3F", "TH3P", "TH3V", \
502 "TH4F", "TH4P", "TH4V", "THPS", "THTG", \
503 "TM1P", "TM2P", "TM2V", "TM3P", "TM3V", \
504 "TM4P", "TM5P", "TM6P", "TM6V", "TM7P", \
505 "TM7V", "TM8P", "TM8V", "TM9V", "TMA1", \
506 "TMA2", "TMA3", "TMA4", "TMB1", "TMB2", \
507 "TMB3", "TMB4", "TMHS", "TMLS", "TMPS", \
508 "TMPV", "TMTG", "TN0D", "TN0H", "TNTG", \
509 "Te1F", "Te1P", "Te1S", "Te2F", "Te2S", \
510 "Te3F", "Te3S", "Te4F", "Te4S", "Te5F", \
511 "Te5S", "TeGG", "TeGP", "TeRG", "TeRP", \
512 "TeRV", "Tp0C", "Tp1C", "TpPS", "TpTG", }
514 #define ASMC_MBA_TEMPS { "TB0T", NULL }
515 #define ASMC_MBA_TEMPNAMES { "enclosure" }
516 #define ASMC_MBA_TEMPDESCS { "Enclosure Bottom" }
518 #define ASMC_MBA3_TEMPS { "TB0T", "TB1T", "TB2T", \
519 "TC0D", "TC0E", "TC0P", NULL }
521 #define ASMC_MBA3_TEMPNAMES { "enclosure", "TB1T", "TB2T", \
522 "TC0D", "TC0E", "TC0P" }
524 #define ASMC_MBA3_TEMPDESCS { "Enclosure Bottom", "TB1T", "TB2T", \
525 "TC0D", "TC0E", "TC0P" }
527 #define ASMC_MBA5_TEMPS { "TB0T", "TB1T", "TB2T", "TC0C", \
528 "TC0D", "TC0E", "TC0F", "TC0P", \
529 "TC1C", "TC2C", "TCGC", "TCSA", \
530 "TCXC", "THSP", "TM0P", "TPCD", \
531 "Ta0P", "Th1H", "Tm0P", "Tm1P", \
532 "Ts0P", "Ts0S", NULL }
534 #define ASMC_MBA5_TEMPNAMES { "enclosure1", "enclosure2", "enclosure3", "TC0C", \
535 "cpudiode", "cputemp1", "cputemp2", "cpuproximity", \
536 "cpucore1", "cpucore2", "cpupeci", "pecisa", \
537 "TCXC", "THSP", "memorybank", "pchdie", \
538 "Ta0P", "heatpipe", "mainboardproximity1", "mainboardproximity2", \
539 "palmrest", "memoryproximity" }
541 #define ASMC_MBA5_TEMPDESCS { "Enclosure Bottom 1", "Enclosure Bottom 2", "Enclosure Bottom 3", "TC0C",\
542 "CPU Diode", "CPU Temp 1", "CPU Temp 2", "CPU Proximity", \
543 "CPU Core 1", "CPU Core 2", "CPU Peci Core", "PECI SA", \
544 "TCXC", "THSP", "Memory Bank A", "PCH Die", \
545 "Ta0P", "Heatpipe", "Mainboard Proximity 1", "Mainboard Proximity 2", \
546 "Palm Rest", "Memory Proximity" }
548 #define ASMC_MBA7_TEMPS { "TB0T", "TB1T", "TB2T", \
549 "TC0E", "TC0F", "TC0P", \
551 "TCGC", "TCSA", "TCXC", \
552 "THSP", "TM0P", "TPCD", \
553 "TW0P" "Ta0P", "Th1H", \
554 "Tm0P", "Ts0P", "Ts0S", NULL }
556 #define ASMC_MBA7_TEMPNAMES { "enclosure1", "enclosure2", "enclosure3", \
557 "cputemp1", "cputemp2", "cpuproximity", \
558 "cpucore1", "cpucore2", \
559 "pecigpu", "pecisa", "pecicpu", \
560 "thunderboltproximity", "memorybank", "pchdie", \
561 "wirelessproximity", "airflowproximity", "heatpipe", \
562 "mainboardproximity", "palmrest", "memoryproximity" }
564 #define ASMC_MBA7_TEMPDESCS { "Enclosure Bottom 1", "Enclosure Bottom 2", "Enclosure Bottom 3", \
565 "CPU Temp 1", "CPU Temp 2", "CPU Proximity", \
566 "CPU Core 1", "CPU Core 2", \
567 "PECI GPU", "PECI SA", "PECI CPU", \
568 "Thunderbolt Proximity", "Memory Bank A", "PCH Die", \
569 "Wireless Proximity", "Airflow Proxmity", "Heatpipe", \
570 "Mainboard Proximity", "Palm Rest", "Memory Proximity" }