| 3023bb49 | 20-Feb-2026 |
Enji Cooper <ngie@FreeBSD.org> |
asmc: introduce the concept of generic models
Having to enter in each of the models for Apple hardware, recompiling, etc, is tedious. Provide generic models so end-users can leverage some of the cap
asmc: introduce the concept of generic models
Having to enter in each of the models for Apple hardware, recompiling, etc, is tedious. Provide generic models so end-users can leverage some of the capabilities provided by the driver, i.e., common features like minimal fans and lights (if present on the generic model) support.
The generic models are as follows: - Macmini - MacBookAir - MacBookPro - MacPro
This sort of follows the pattern established by the `applesmc` driver in Linux.
MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D55395
show more ...
|
| 94db3650 | 25-Feb-2026 |
Abdelkader Boudih <freebsd@seuros.com> |
asmc: add Wake-on-LAN control via sysctl
Apple Mac systems support Wake-on-LAN from powered-off state (S5/G2) via the AUPO SMC key.
This change adds a convenience sysctl, `dev.asmc.0.wol`. This can
asmc: add Wake-on-LAN control via sysctl
Apple Mac systems support Wake-on-LAN from powered-off state (S5/G2) via the AUPO SMC key.
This change adds a convenience sysctl, `dev.asmc.0.wol`. This can be disabled if set to 0 and enabled if set to 1.
The AUPO key is volatile and resets to 0x00 on every boot, so WoL must be manually enabled before each shutdown to work from powered-off state. Users need to run: `sysctl dev.asmc.0.wol=1` before shutting down the system. The sysctl is best set to persist in `/etc/sysctl.conf`.
MFC after: 1 week Reviewed By: markj, ngie Differential Revision: https://reviews.freebsd.org/D54439
show more ...
|
| ef1cde51 | 20-Feb-2026 |
Enji Cooper <ngie@FreeBSD.org> |
chore: asmc: use designated initializers in macros
This code cleanup makes it easier for human readers to understand what each of the fields actually represents, as well as makes it easier to modify
chore: asmc: use designated initializers in macros
This code cleanup makes it easier for human readers to understand what each of the fields actually represents, as well as makes it easier to modify what the macros actually do under the covers, without introducing potential human errors.
No functional change intended.
MFC after: 1 week
show more ...
|
| 90edc161 | 20-Feb-2026 |
Enji Cooper <ngie@FreeBSD.org> |
asmc: use symbolic names with the MacPro3,1 model
Use `ASMC_LIGHT_FUNCS_DISABLED` and `ASMC_SMS_FUNCS_DISABLED` instead of the unrolled versions of the macros.
This makes it easier to adjust the un
asmc: use symbolic names with the MacPro3,1 model
Use `ASMC_LIGHT_FUNCS_DISABLED` and `ASMC_SMS_FUNCS_DISABLED` instead of the unrolled versions of the macros.
This makes it easier to adjust the underlying macros/fields for `struct asmc_model`.
No functional change intended.
MFC after: 1 week
show more ...
|
| d76bb14e | 08-Feb-2026 |
Enji Cooper <ngie@FreeBSD.org> |
chore: asmc: additional style(9) cleanup
Pick out non-gratuitous style(9) changes suggested by `clang-format` on the driver. This helps eliminate minor stylistic issues with spaces, braces, line len
chore: asmc: additional style(9) cleanup
Pick out non-gratuitous style(9) changes suggested by `clang-format` on the driver. This helps eliminate minor stylistic issues with spaces, braces, line lengths, etc, so future functional changes in the driver will be easier to pick out.
Many of the other `clang-format` suggested changes were not taken because they were considerably more gratuitous.
No functional change intended.
MFC after: 1 week
show more ...
|