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_MBP9_TEMPS { "Ts0P", "Ts0S", "TA0P", "TB1T", "TB2T", \
261 "TB0T", "TC1C", "TC2C", "TC0E", "TC0F", \
262 "TC0J", "TC0P", "TCFC", "TCGC", "TCSA", \
263 "TCTD", "TCXC", "TG1D", "TM0P", "TM0S", \
266 #define ASMC_MBP9_TEMPNAMES { "Ts0P", "Ts0S", "TA0P", "TB1T", "TB2T", \
267 "TB0T", "TC1C", "TC2C", "TC0E", "TC0F", \
268 "TC0J", "TC0P", "TCFC", "TCGC", "TCSA", \
269 "TCTD", "TCXC", "TG1D", "TM0P", "TM0S", \
272 #define ASMC_MBP9_TEMPDESCS { "Palm Rest", "Memory Proximity", "Airflow 1", \
273 "Battery 1", "Battery 2", "Battery TS_MAX", \
274 "CPU Core 1", "CPU Core 2", "CPU1", "CPU1", \
275 "TC0J", "CPU 1 Proximity", "TCFC", \
276 "PECI GPU", "PECI SA", "TCTD", "PECI CPU", \
277 "GPU Die", "Memory Bank A1", "Memory Module A1", \
281 #define ASMC_MBP112_TEMPS { "TB0T", "TB1T", "TB2T", "TBXT", "TC0E", \
282 "TC0F", "TC0P", "TC1C", "TC2C", "TC3C", \
283 "TC4C", "TCFC", "TCGC", "TCSA", "TCTD", \
284 "TCXC", "TH0A", "TH0B", "TH0F", "TH0R", \
285 "TH0V", "TH0a", "TH0b", "TH0c", "TM0P", \
286 "TM0S", "TP0P", "TPCD", "TW0P", "Ta0P", \
287 "TaSP", "Th1H", "Th2H", "Ts0P", "Ts0S", \
290 #define ASMC_MBP112_TEMPNAMES { "TB0T", "TB1T", "TB2T", "TBXT", "TC0E", \
291 "TC0F", "TC0P", "TC1C", "TC2C", "TC3C", \
292 "TC4C", "TCFC", "TCGC", "TCSA", "TCTD", \
293 "TCXC", "TH0A", "TH0B", "TH0F", "TH0R", \
294 "TH0V", "TH0a", "TH0b", "TH0c", "TM0P", \
295 "TM0S", "TP0P", "TPCD", "TW0P", "Ta0P", \
296 "TaSP", "Th1H", "Th2H", "Ts0P", "Ts0S", \
299 #define ASMC_MBP112_TEMPDESCS { "TB0T", "TB1T", "TB2T", "TBXT", "TC0E", \
300 "TC0F", "TC0P", "TC1C", "TC2C", "TC3C", \
301 "TC4C", "TCFC", "TCGC", "TCSA", "TCTD", \
302 "TCXC", "TH0A", "TH0B", "TH0F", "TH0R", \
303 "TH0V", "TH0a", "TH0b", "TH0c", "TM0P", \
304 "TM0S", "TP0P", "TPCD", "TW0P", "Ta0P", \
305 "TaSP", "Th1H", "Th2H", "Ts0P", "Ts0S", \
308 #define ASMC_MBP113_TEMPS { "TB0T", "TB1T", "TB2T", "TBXT", "TC0E", \
309 "TC0F", "TC0P", "TC1C", "TC2C", "TC3C", \
310 "TC4C", "TCFC", "TCGC", "TCSA", "TCTD", \
311 "TCXC", "TG0D", "TG0P", "TG1D", "TG1F", \
312 "TG1d", "TH0A", "TH0B", "TH0F", "TH0R", \
313 "TH0V", "TH0a", "TH0b", "TH0c", "TM0P", \
314 "TM0S", "TP0P", "TPCD", "TW0P", "Ta0P", \
315 "TaSP", "Th1H", "Th2H", "Ts0P", "Ts0S", \
318 #define ASMC_MBP113_TEMPNAMES { "TB0T", "TB1T", "TB2T", "TBXT", "TC0E", \
319 "TC0F", "TC0P", "TC1C", "TC2C", "TC3C", \
320 "TC4C", "TCFC", "TCGC", "TCSA", "TCTD", \
321 "TCXC", "TG0D", "TG0P", "TG1D", "TG1F", \
322 "TG1d", "TH0A", "TH0B", "TH0F", "TH0R", \
323 "TH0V", "TH0a", "TH0b", "TH0c", "TM0P", \
324 "TM0S", "TP0P", "TPCD", "TW0P", "Ta0P", \
325 "TaSP", "Th1H", "Th2H", "Ts0P", "Ts0S", \
328 #define ASMC_MBP113_TEMPDESCS { "TB0T", "TB1T", "TB2T", "TBXT", "TC0E", \
329 "TC0F", "TC0P", "TC1C", "TC2C", "TC3C", \
330 "TC4C", "TCFC", "TCGC", "TCSA", "TCTD", \
331 "TCXC", "TG0D", "TG0P", "TG1D", "TG1F", \
332 "TG1d", "TH0A", "TH0B", "TH0F", "TH0R", \
333 "TH0V", "TH0a", "TH0b", "TH0c", "TM0P", \
334 "TM0S", "TP0P", "TPCD", "TW0P", "Ta0P", \
335 "TaSP", "Th1H", "Th2H", "Ts0P", "Ts0S", \
339 #define ASMC_MM_TEMPS { "TN0P", "TN1P", NULL }
340 #define ASMC_MM_TEMPNAMES { "northbridge1", "northbridge2" }
341 #define ASMC_MM_TEMPDESCS { "Northbridge Point 1", \
342 "Northbridge Point 2" }
344 #define ASMC_MM31_TEMPS { "TC0D", "TC0H", \
349 #define ASMC_MM31_TEMPNAMES { "cpu0_die", "cpu0_heatsink", \
350 "cpu0_proximity", "hdd_bay", \
352 "northbridge_proximity", \
353 "wireless_proximity", }
355 #define ASMC_MM31_TEMPDESCS { "CPU0 Die Core Temperature", \
356 "CPU0 Heatsink Temperature", \
357 "CPU0 Proximity Temperature", \
358 "HDD Bay Temperature", \
359 "Northbridge Die Core Temperature", \
360 "Northbridge Proximity Temperature", \
361 "Wireless Module Proximity Temperature", }
363 #define ASMC_MM41_TEMPS { "TA0P", "TC0D", "TC0G", "TC0H", "TC0P", \
364 "TC0p", "TCPG", "TH0G", "TH0P", "TH0p", \
365 "TM0G", "TM0P", "TM0p", "TN0D", "TN0G", \
366 "TN0P", "TN0p", "TN1D", "TN1E", "TN1F", \
367 "TN1G", "TN1S", "TNPG", "TO0P", "TO0p", \
368 "TW0P", "Tm0P", "Tp0C", NULL }
370 #define ASMC_MM41_TEMPNAMES { "TA0P", "TC0D", "TC0G", "TC0H", "TC0P", \
371 "TC0p", "TCPG", "TH0G", "TH0P", "TH0p", \
372 "TM0G", "TM0P", "TM0p", "TN0D", "TN0G", \
373 "TN0P", "TN0p", "TN1D", "TN1E", "TN1F", \
374 "TN1G", "TN1S", "TNPG", "TO0P", "TO0p", \
375 "TW0P", "Tm0P", "Tp0C", NULL }
377 #define ASMC_MM41_TEMPDESCS { "TA0P", "TC0D", "TC0G", "TC0H", "TC0P", \
378 "TC0p", "TCPG", "TH0G", "TH0P", "TH0p", \
379 "TM0G", "TM0P", "TM0p", "TN0D", "TN0G", \
380 "TN0P", "TN0p", "TN1D", "TN1E", "TN1F", \
381 "TN1G", "TN1S", "TNPG", "TO0P", "TO0p", \
382 "TW0P", "Tm0P", "Tp0C", NULL }
384 #define ASMC_MM52_TEMPS { "TA0P", "TA1P", \
394 #define ASMC_MM52_TEMPNAMES { "ambient_air_proximity", "ambient_cpu_pch_wireless_dimm", \
395 "cpu_die", "cpu_proximity", \
396 "gpu_diode1", "gpu_diode2", \
397 "gpu_proximity", "gpu_integrated_switcher", \
398 "thunderbolt_proximity", \
399 "memory_slot1", "memory_slot2", \
400 "memory_proximity", "pch_controller_proximity", \
401 "pch_controller_die", "pwr_supply", \
402 "wireless_proximity", }
404 #define ASMC_MM52_TEMPDESCS { "Ambient Air Proximity Temperature", \
405 "Combo Ambient CPU PCH Wireless DIMM Temperature", \
406 "CPU Die Temperature", "CPU Proximity Temperature", \
407 "GPU Diode 1 Temperature" , "GPU Diode 2 Temperature", \
408 "GPU Proximity Temperature", \
409 "Integrated Graphics/GPU Switcher Temperature", \
410 "Thunderbolt Proximity Temperature", \
411 "Memory Slot 1 Temperature", \
412 "Memory Slot 2 Temperature", \
413 "Memory Slots Proximity Temperature", \
414 "Platform Controller Hub Proximity Temperature", \
415 "Platform Controller Hub Die Temperature", \
416 "Power Supply Temperature", \
417 "Wireless Module Proximity Temperature", }
419 #define ASMC_MP1_TEMPS { "TA0P", \
421 "TC0P", "TC0C", "TC1C", \
422 "TC2C", "TC3C", "THTG", \
425 "TM0P", "TM1P", "TM2P", \
426 "TM8P", "TM9P", "TMAP", \
427 "TM0S", "TM1S", "TM2P", "TM3S", \
428 "TM8S", "TM9S", "TMAS", "TMBS", \
430 "Tp0C", "Tp1C", "Tv0S", "Tv1S", NULL }
432 #define ASMC_MP1_TEMPNAMES { "ambient", \
433 "cpu_a_heatsink", "cpu_b_heatsink", \
434 "cpu_a_proximity", "cpu_core0", "cpu_core1", \
435 "cpu_core2", "cpu_core3", "THTG", \
436 "hdd_bay0", "hdd_bay1", \
437 "hdd_bay2", "hdd_bay3", \
438 "memory_card_a_proximity0", \
439 "memory_card_a_proximity1", \
440 "memory_card_a_proximity2", \
441 "memory_card_b_proximity0", \
442 "memory_card_b_proximity1", \
443 "memory_card_b_proximity2", \
444 "memory_card_a_slot0", \
445 "memory_card_a_slot1", \
446 "memory_card_a_slot2", \
447 "memory_card_a_slot3", \
448 "memory_card_b_slot0", \
449 "memory_card_b_slot1", \
450 "memory_card_b_slot2", \
451 "memory_card_b_slot3", \
452 "mch_heatsink", "expansion_slots", \
453 "power_supply_loc0", "power_supply_loc1", \
456 #define ASMC_MP1_TEMPDESCS { "Ambient Air", \
457 "CPU A Heatsink", "CPU B Heatsink", \
459 "CPU Core 1", "CPU Core 2", \
460 "CPU Core 3", "CPU Core 4", "THTG", \
461 "Hard Drive Bay 1", "Hard Drive Bay 2", \
462 "Hard Drive Bay 3", "Hard Drive Bay 4", \
463 "Memory Riser A, Proximity 1", \
464 "Memory Riser A, Proximity 2", \
465 "Memory Riser A, Proximity 3", \
466 "Memory Riser B, Proximity 1", \
467 "Memory Riser B, Proximity 2", \
468 "Memory Riser B, Proximity 3", \
469 "Memory Riser A, Slot 1", \
470 "Memory Riser A, Slot 2", \
471 "Memory Riser A, Slot 3", \
472 "Memory Riser A, Slot 4", \
473 "Memory Riser B, Slot 1", \
474 "Memory Riser B, Slot 2", \
475 "Memory Riser B, Slot 3", \
476 "Memory Riser B, Slot 4", \
477 "MCH Heatsink", "Expansion Slots", \
478 "Power Supply, Location 1", \
479 "Power Supply, Location 2", \
482 #define ASMC_MP2_TEMPS { "TA0P", "TCAG", "TCAH", "TCBG", "TCBH", \
483 "TC0C", "TC0D", "TC0P", "TC1C", "TC1D", \
484 "TC2C", "TC2D", "TC3C", "TC3D", "THTG", \
485 "TH0P", "TH1P", "TH2P", "TH3P", "TMAP", \
486 "TMAS", "TMBS", "TM0P", "TM0S", "TM1P", \
487 "TM1S", "TM2P", "TM2S", "TM3S", "TM8P", \
488 "TM8S", "TM9P", "TM9S", "TN0H", "TS0C", \
491 #define ASMC_MP2_TEMPNAMES { "TA0P", "TCAG", "TCAH", "TCBG", "TCBH", \
492 "TC0C", "TC0D", "TC0P", "TC1C", "TC1D", \
493 "TC2C", "TC2D", "TC3C", "TC3D", "THTG", \
494 "TH0P", "TH1P", "TH2P", "TH3P", "TMAP", \
495 "TMAS", "TMBS", "TM0P", "TM0S", "TM1P", \
496 "TM1S", "TM2P", "TM2S", "TM3S", "TM8P", \
497 "TM8S", "TM9P", "TM9S", "TN0H", "TS0C", }
499 #define ASMC_MP2_TEMPDESCS { "TA0P", "TCAG", "TCAH", "TCBG", "TCBH", \
500 "TC0C", "TC0D", "TC0P", "TC1C", "TC1D", \
501 "TC2C", "TC2D", "TC3C", "TC3D", "THTG", \
502 "TH0P", "TH1P", "TH2P", "TH3P", "TMAP", \
503 "TMAS", "TMBS", "TM0P", "TM0S", "TM1P", \
504 "TM1S", "TM2P", "TM2S", "TM3S", "TM8P", \
505 "TM8S", "TM9P", "TM9S", "TN0H", "TS0C", }
507 #define ASMC_MP5_TEMPS { "TA0P", "TCAC", "TCAD", "TCAG", "TCAH", \
508 "TCAS", "TCBC", "TCBD", "TCBG", "TCBH", \
509 "TCBS", "TH1F", "TH1P", "TH1V", "TH2F", \
510 "TH2P", "TH2V", "TH3F", "TH3P", "TH3V", \
511 "TH4F", "TH4P", "TH4V", "THPS", "THTG", \
512 "TM1P", "TM2P", "TM2V", "TM3P", "TM3V", \
513 "TM4P", "TM5P", "TM6P", "TM6V", "TM7P", \
514 "TM7V", "TM8P", "TM8V", "TM9V", "TMA1", \
515 "TMA2", "TMA3", "TMA4", "TMB1", "TMB2", \
516 "TMB3", "TMB4", "TMHS", "TMLS", "TMPS", \
517 "TMPV", "TMTG", "TN0D", "TN0H", "TNTG", \
518 "Te1F", "Te1P", "Te1S", "Te2F", "Te2S", \
519 "Te3F", "Te3S", "Te4F", "Te4S", "Te5F", \
520 "Te5S", "TeGG", "TeGP", "TeRG", "TeRP", \
521 "TeRV", "Tp0C", "Tp1C", "TpPS", "TpTG", \
524 #define ASMC_MP5_TEMPNAMES { "ambient", "TCAC", "TCAD", "TCAG", "TCAH", \
525 "TCAS", "TCBC", "TCBD", "TCBG", "TCBH", \
526 "TCBS", "TH1F", "TH1P", "TH1V", "TH2F", \
527 "TH2P", "TH2V", "TH3F", "TH3P", "TH3V", \
528 "TH4F", "TH4P", "TH4V", "THPS", "THTG", \
529 "TM1P", "TM2P", "TM2V", "TM3P", "TM3V", \
530 "TM4P", "TM5P", "TM6P", "TM6V", "TM7P", \
531 "TM7V", "TM8P", "TM8V", "TM9V", "ram_a1", \
532 "ram_a2", "ram_a3", "ram_a4", "ram_b1", "ram_b2", \
533 "ram_b3", "ram_b4", "TMHS", "TMLS", "TMPS", \
534 "TMPV", "TMTG", "TN0D", "TN0H", "TNTG", \
535 "Te1F", "Te1P", "Te1S", "Te2F", "Te2S", \
536 "Te3F", "Te3S", "Te4F", "Te4S", "Te5F", \
537 "Te5S", "TeGG", "TeGP", "TeRG", "TeRP", \
538 "TeRV", "Tp0C", "Tp1C", "TpPS", "TpTG", }
540 #define ASMC_MP5_TEMPDESCS { "TA0P", "TCAC", "TCAD", "TCAG", "TCAH", \
541 "TCAS", "TCBC", "TCBD", "TCBG", "TCBH", \
542 "TCBS", "TH1F", "TH1P", "TH1V", "TH2F", \
543 "TH2P", "TH2V", "TH3F", "TH3P", "TH3V", \
544 "TH4F", "TH4P", "TH4V", "THPS", "THTG", \
545 "TM1P", "TM2P", "TM2V", "TM3P", "TM3V", \
546 "TM4P", "TM5P", "TM6P", "TM6V", "TM7P", \
547 "TM7V", "TM8P", "TM8V", "TM9V", "TMA1", \
548 "TMA2", "TMA3", "TMA4", "TMB1", "TMB2", \
549 "TMB3", "TMB4", "TMHS", "TMLS", "TMPS", \
550 "TMPV", "TMTG", "TN0D", "TN0H", "TNTG", \
551 "Te1F", "Te1P", "Te1S", "Te2F", "Te2S", \
552 "Te3F", "Te3S", "Te4F", "Te4S", "Te5F", \
553 "Te5S", "TeGG", "TeGP", "TeRG", "TeRP", \
554 "TeRV", "Tp0C", "Tp1C", "TpPS", "TpTG", }
556 #define ASMC_MBA_TEMPS { "TB0T", NULL }
557 #define ASMC_MBA_TEMPNAMES { "enclosure" }
558 #define ASMC_MBA_TEMPDESCS { "Enclosure Bottom" }
560 #define ASMC_MBA3_TEMPS { "TB0T", "TB1T", "TB2T", \
561 "TC0D", "TC0E", "TC0P", NULL }
563 #define ASMC_MBA3_TEMPNAMES { "enclosure", "TB1T", "TB2T", \
564 "TC0D", "TC0E", "TC0P" }
566 #define ASMC_MBA3_TEMPDESCS { "Enclosure Bottom", "TB1T", "TB2T", \
567 "TC0D", "TC0E", "TC0P" }
569 #define ASMC_MBA5_TEMPS { "TB0T", "TB1T", "TB2T", "TC0C", \
570 "TC0D", "TC0E", "TC0F", "TC0P", \
571 "TC1C", "TC2C", "TCGC", "TCSA", \
572 "TCXC", "THSP", "TM0P", "TPCD", \
573 "Ta0P", "Th1H", "Tm0P", "Tm1P", \
574 "Ts0P", "Ts0S", NULL }
576 #define ASMC_MBA5_TEMPNAMES { "enclosure1", "enclosure2", "enclosure3", "TC0C", \
577 "cpudiode", "cputemp1", "cputemp2", "cpuproximity", \
578 "cpucore1", "cpucore2", "cpupeci", "pecisa", \
579 "TCXC", "THSP", "memorybank", "pchdie", \
580 "Ta0P", "heatpipe", "mainboardproximity1", "mainboardproximity2", \
581 "palmrest", "memoryproximity" }
583 #define ASMC_MBA5_TEMPDESCS { "Enclosure Bottom 1", "Enclosure Bottom 2", "Enclosure Bottom 3", "TC0C",\
584 "CPU Diode", "CPU Temp 1", "CPU Temp 2", "CPU Proximity", \
585 "CPU Core 1", "CPU Core 2", "CPU Peci Core", "PECI SA", \
586 "TCXC", "THSP", "Memory Bank A", "PCH Die", \
587 "Ta0P", "Heatpipe", "Mainboard Proximity 1", "Mainboard Proximity 2", \
588 "Palm Rest", "Memory Proximity" }
590 #define ASMC_MBA7_TEMPS { "TB0T", "TB1T", "TB2T", \
591 "TC0E", "TC0F", "TC0P", \
593 "TCGC", "TCSA", "TCXC", \
594 "THSP", "TM0P", "TPCD", \
595 "TW0P" "Ta0P", "Th1H", \
596 "Tm0P", "Ts0P", "Ts0S", NULL }
598 #define ASMC_MBA7_TEMPNAMES { "enclosure1", "enclosure2", "enclosure3", \
599 "cputemp1", "cputemp2", "cpuproximity", \
600 "cpucore1", "cpucore2", \
601 "pecigpu", "pecisa", "pecicpu", \
602 "thunderboltproximity", "memorybank", "pchdie", \
603 "wirelessproximity", "airflowproximity", "heatpipe", \
604 "mainboardproximity", "palmrest", "memoryproximity" }
606 #define ASMC_MBA7_TEMPDESCS { "Enclosure Bottom 1", "Enclosure Bottom 2", "Enclosure Bottom 3", \
607 "CPU Temp 1", "CPU Temp 2", "CPU Proximity", \
608 "CPU Core 1", "CPU Core 2", \
609 "PECI GPU", "PECI SA", "PECI CPU", \
610 "Thunderbolt Proximity", "Memory Bank A", "PCH Die", \
611 "Wireless Proximity", "Airflow Proxmity", "Heatpipe", \
612 "Mainboard Proximity", "Palm Rest", "Memory Proximity" }