]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Driver for the Apple System Management Console (SMC). This hardware is
authorrpaulo <rpaulo@FreeBSD.org>
Wed, 7 Nov 2007 20:05:13 +0000 (20:05 +0000)
committerrpaulo <rpaulo@FreeBSD.org>
Wed, 7 Nov 2007 20:05:13 +0000 (20:05 +0000)
commiteb9c80fd27df769be301fd719efde3fa8a1b21e8
tree42e36871a8c1212c34fd702ed3161fe2d778794c
parent42f4fb0d92887bff8668df307654d1b9de73cb61
Driver for the Apple System Management Console (SMC). This hardware is
present on the MacBook, MacBook Pro, and Intel MacMini.

This driver exports information via sysctl in its private sysctl tree
dev.asmc.*. You can get information about temperatures, fan speeds, the
keyboard light sensor and the Sudden Motion Sensor (SMS).
The SMS is very useful to park the disk heads when the laptop is
moved. Basically, the SMS is setup so that, under movement, we get an
interrupt on irq 6 and a devd notification is sent.

Sponsored by:  Google Summer of Code 2007
Approved by:  njl (mentor)
Reviewed by:  attilio (previous version, but very similar), jhb (interrupt
   specific review)
sys/dev/asmc/asmc.c [new file with mode: 0644]
sys/dev/asmc/asmcvar.h [new file with mode: 0644]