aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/asmc
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2022-05-04 14:33:40 +0000
committerMark Johnston <markj@FreeBSD.org>2022-05-04 15:30:47 +0000
commit308340cce2f02f06855f3ed355a2936fbc5c16bf (patch)
treeed1bc63dd6553071110caaa39cc12fa310128be1 /sys/dev/asmc
parent8d20f1560d05ef4c96680cd1a0a0b9ac9054700f (diff)
Diffstat (limited to 'sys/dev/asmc')
-rw-r--r--sys/dev/asmc/asmc.c16
-rw-r--r--sys/dev/asmc/asmcvar.h24
2 files changed, 40 insertions, 0 deletions
diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c
index 24d29ebeb2e0..b8884f7f6d64 100644
--- a/sys/dev/asmc/asmc.c
+++ b/sys/dev/asmc/asmc.c
@@ -341,6 +341,22 @@ struct asmc_model asmc_models[] = {
},
{
+ "MacBookAir4,1", "Apple SMC Macbook Air 11-inch (Mid 2011)",
+ ASMC_SMS_FUNCS_DISABLED,
+ ASMC_FAN_FUNCS2,
+ ASMC_LIGHT_FUNCS,
+ ASMC_MBA4_TEMPS, ASMC_MBA4_TEMPNAMES, ASMC_MBA4_TEMPDESCS
+ },
+
+ {
+ "MacBookAir4,2", "Apple SMC Macbook Air 13-inch (Mid 2011)",
+ ASMC_SMS_FUNCS_DISABLED,
+ ASMC_FAN_FUNCS2,
+ ASMC_LIGHT_FUNCS,
+ ASMC_MBA4_TEMPS, ASMC_MBA4_TEMPNAMES, ASMC_MBA4_TEMPDESCS
+ },
+
+ {
"MacBookAir5,1", "Apple SMC MacBook Air 11-inch (Mid 2012)",
ASMC_SMS_FUNCS_DISABLED,
ASMC_FAN_FUNCS2,
diff --git a/sys/dev/asmc/asmcvar.h b/sys/dev/asmc/asmcvar.h
index d30961c84472..0c5714f97806 100644
--- a/sys/dev/asmc/asmcvar.h
+++ b/sys/dev/asmc/asmcvar.h
@@ -594,6 +594,30 @@ struct asmc_softc {
#define ASMC_MBA3_TEMPDESCS { "Enclosure Bottom", "TB1T", "TB2T", \
"TC0D", "TC0E", "TC0P" }
+#define ASMC_MBA4_TEMPS { "TB0T", "TB1T", "TB2T", "TC0C", \
+ "TC0D", "TC0E", "TC0F", "TC0P", \
+ "TC1C", "TC2C", "TCGC", "TCSA", \
+ "TH0F", "TH0J", "TH0O", "TH0o", \
+ "TM0P", "TPCD", "Ta0P", "Th1H", \
+ "Tm0P", "Tm1P", "Ts0P", "Ts0S", \
+ NULL }
+
+#define ASMC_MBA4_TEMPNAMES { "TB0T", "TB1T", "TB2T", "TC0C", \
+ "TC0D", "TC0E", "TC0F", "TC0P", \
+ "TC1C", "TC2C", "TCGC", "TCSA", \
+ "TH0F", "TH0J", "TH0O", "TH0o", \
+ "TM0P", "TPCD", "Ta0P", "Th1H", \
+ "Tm0P", "Tm1P", "Ts0P", "Ts0S", \
+ NULL }
+
+#define ASMC_MBA4_TEMPDESCS { "TB0T", "TB1T", "TB2T", "TC0C", \
+ "TC0D", "TC0E", "TC0F", "TC0P", \
+ "TC1C", "TC2C", "TCGC", "TCSA", \
+ "TH0F", "TH0J", "TH0O", "TH0o", \
+ "TM0P", "TPCD", "Ta0P", "Th1H", \
+ "Tm0P", "Tm1P", "Ts0P", "Ts0S", \
+ NULL }
+
#define ASMC_MBA5_TEMPS { "TB0T", "TB1T", "TB2T", "TC0C", \
"TC0D", "TC0E", "TC0F", "TC0P", \
"TC1C", "TC2C", "TCGC", "TCSA", \