summaryrefslogtreecommitdiff
path: root/sys/dev/asmc
Commit message (Collapse)AuthorAgeFilesLines
* MFC 197190:Rui Paulo2009-09-222-3/+123
| | | | | | | | | | | | Make the sudden motion sensor work on older models and add a bit of debugging. Submitted by: Christoph Langguth <christoph at rosenkeller.org> Approved by: re (kib) Notes: svn path=/stable/8/; revision=197417
* MFC r196455:Rui Paulo2009-08-311-1/+2
| | | | | | | | | | Make dev.asmc.N.light.control writable by everyone. Submitted by: Patrick Lamaiziere <patfbsd at davenulle.org> Approved by: re (rwatson) Notes: svn path=/stable/8/; revision=196694
* Add support for MacBook4,1.Rui Paulo2009-06-262-46/+143
| | | | | | | | | Submitted by: Christoph Langguth <christoph at rosenkeller.org> MFC after: 2 weeks Approved by: re (kib) Notes: svn path=/head/; revision=195046
* Import ACPICA 20090521.Jung-uk Kim2009-06-051-1/+3
| | | | Notes: svn path=/head/; revision=193530
* Check for non-existing model DMI string.Rui Paulo2008-11-291-0/+3
| | | | | | | | | | Submitted by: ganbold Found with: Coverity Prevent(tm) CID: 2434 MFC after: 1 week Notes: svn path=/head/; revision=185433
* Add support for MacBook Air. (not tested)Rui Paulo2008-09-072-2/+13
| | | | | | | Obtained from: mactel-linux Notes: svn path=/head/; revision=182850
* Match the Mac Pro with 8 cores. This machine reports 35 temperatureRui Paulo2008-04-122-5/+44
| | | | | | | | | | sensors and some fans. As I don't own this machine, I could not test this patch. Obtained from: applesmc Linux driver. Notes: svn path=/head/; revision=178145
* Don't call acpi_disabled() because we are not part of the acpi.koRui Paulo2008-04-111-1/+1
| | | | | | | | | | module. Instead, use resource_disabled() that doesn't depend on any module. Noticed by: Ian FREISLICH <ianf at clue.co.za> Notes: svn path=/head/; revision=178122
* Style nit. No functional change.Rui Paulo2008-04-111-2/+3
| | | | Notes: svn path=/head/; revision=178118
* Actually, I was looking at the wrong Linux .c file. Set INIT2 to itsRui Paulo2008-04-072-2/+2
| | | | | | | | previous value. While there, lower the delay for the misterious key. Notes: svn path=/head/; revision=177979
* * Add missing #else in the #ifdef DEBUG section.Rui Paulo2008-04-072-5/+6
| | | | | | | | * Fix the login in asmc_init(). * Change the INIT2 constant to reflect the same change in the Linux driver. Notes: svn path=/head/; revision=177977
* "Prettyfy" numbers in hexadecimal. No functional change.Rui Paulo2008-04-071-2/+2
| | | | Notes: svn path=/head/; revision=177976
* The SMC is represented on the acpi tables, so we can completely removeRui Paulo2008-04-072-56/+84
| | | | | | | | | | | dependency on isa. We are now an acpi child. Also: * Add compile time debugging activation * Increase the delay for the SMS init flag. Notes: svn path=/head/; revision=177972
* Move INTR_FILTER from opt_global.h to its own header.John Baldwin2008-04-051-0/+2
| | | | Notes: svn path=/head/; revision=177941
* Move ASMC_FAN_FUNCS in the Macmini structure declaration one line upRui Paulo2007-11-221-1/+1
| | | | | | | | | | so that this macro expands in the right place. Submitted by: Ed Schouten <ed at fxq.nl> Approved by: njl (mentor) Notes: svn path=/head/; revision=173851
* Driver for the Apple System Management Console (SMC). This hardware isRui Paulo2007-11-072-0/+1141
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) Notes: svn path=/head/; revision=173426