diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2008-09-07 18:15:34 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2008-09-07 18:15:34 +0000 |
commit | f6147056c6e1989d3a47e244083c7b5ad1514887 (patch) | |
tree | 241f775dee0ba93218cf88ea09240b1d127d9e1b | |
parent | a568a3185ee59bb37249a48388136cdb5bb0b5d0 (diff) | |
download | FreeBSD-src-f6147056c6e1989d3a47e244083c7b5ad1514887.zip FreeBSD-src-f6147056c6e1989d3a47e244083c7b5ad1514887.tar.gz |
Add support for MacBook Air. (not tested)
Obtained from: mactel-linux
-rw-r--r-- | sys/dev/asmc/asmc.c | 7 | ||||
-rw-r--r-- | sys/dev/asmc/asmcvar.h | 8 |
2 files changed, 13 insertions, 2 deletions
diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c index ceab6cf..e5d18e4 100644 --- a/sys/dev/asmc/asmc.c +++ b/sys/dev/asmc/asmc.c @@ -197,6 +197,13 @@ struct asmc_model asmc_models[] = { NULL, NULL, ASMC_MP_TEMPS, ASMC_MP_TEMPNAMES, ASMC_MP_TEMPDESCS }, + + { + "MacBookAir1,1", "Apple SMC MacBook Air", + ASMC_SMS_FUNCS, ASMC_FAN_FUNCS, NULL, NULL, + ASMC_MBA_TEMPS, ASMC_MBA_TEMPNAMES, ASMC_MBA_TEMPDESCS + }, + { NULL, NULL } }; diff --git a/sys/dev/asmc/asmcvar.h b/sys/dev/asmc/asmcvar.h index 0d169a1..40c347f 100644 --- a/sys/dev/asmc/asmcvar.h +++ b/sys/dev/asmc/asmcvar.h @@ -126,8 +126,8 @@ struct asmc_softc { /* * Temperatures. * - * First for MacBook, second for MacBook Pro, third for Intel Mac Mini and - * last Mac Pro 8-core. + * First for MacBook, second for MacBook Pro, third for Intel Mac Mini, + * fourth the Mac Pro 8-core and finally the MacBook Air. * */ /* maximum array size for temperatures including the last NULL */ @@ -186,3 +186,7 @@ struct asmc_softc { "TM1S", "TM2P", "TM2S", "TM3S", "TM8P", \ "TM8S", "TM9P", "TM9S", "TN0H", "TS0C", \ NULL } + +#define ASMC_MBA_TEMPS { "TB0T", NULL } +#define ASMC_MBA_TEMPNAMES { "enclosure" } +#define ASMC_MBA_TEMPDESCS { "Enclosure Bottom" } |