History log of /freebsd-10-stable/sys/dev/asmc/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
330961 15-Mar-2018 emaste

MFC r330667: asmc: update temperature sensor name/description

PR: 225911
Submitted by: Trev

273847 30-Oct-2014 hselasky

MFC r273733, r273740 and r273773:

The SYSCTL data pointers can come from userspace and must not be
directly accessed. Although this will work on some platforms, it can
throw an exception if the pointer is invalid and then panic the kernel.

Add a missing SYSCTL_IN() of "SCTP_BASE_STATS" structure.

Sponsored by: Mellanox Technologies

273302 20-Oct-2014 rpaulo

MFC r271975:
Improvements to asmc(4):

1. changed the code so that 2**16 keys are supported
2. changed the number of possible fans in a system from 2 to 6
3. added write support for some fan sysctls
4. added a new sysctl which shows the ID of the fan
5. added four more apple models with their temperature keys
6. changed the maxnumber of temperature keys from 36 to 80
7. replaced several fixed buf sizes to sizeof buf

Obtained from: Denis Ahrens denis at h3q.com

271069 03-Sep-2014 gavin

Merge r268303 from head:

Add support to asmc(4) for Macmini 3,1.

PR: 190195
Submitted by: fbsdbugs2 sentry.org
Relnotes: yes

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


242826 09-Nov-2012 rdivacky

Give device_printf format string to pacify clang warning.


241885 22-Oct-2012 eadler

This isn't functionally identical. In some cases a hint to disable
unit 0 would in fact disable all units.

This reverts r241856

Approved by: cperciva (implicit)


241856 22-Oct-2012 eadler

Now that device disabling is generic, remove extraneous code from the
device drivers that used to provide this feature.

Reviewed by: des
Approved by: cperciva
MFC after: 1 week


197202 14-Sep-2009 rpaulo

Use %zu for size_t.
Fix printf format string (again)

Pointed out by: bde, ed


197195 14-Sep-2009 rpaulo

Fix previous commit. I got it backwards.

MFC after: 1 week


197193 14-Sep-2009 rpaulo

Fix printf format string in asmc_key_dump().

Spotted by: tinderbox
MFC after: 1 week


197190 14-Sep-2009 rpaulo

Make the sudden motion sensor work on older models and add a bit of
debugging.

Submitted by: Christoph Langguth <christoph at rosenkeller.org>
MFC after: 1 week


196455 23-Aug-2009 rpaulo

Make dev.asmc.N.light.control writable by everyone.

Submitted by: Patrick Lamaiziere <patfbsd at davenulle.org>
MFC after: 1 week


195046 26-Jun-2009 rpaulo

Add support for MacBook4,1.

Submitted by: Christoph Langguth <christoph at rosenkeller.org>
MFC after: 2 weeks
Approved by: re (kib)


193530 05-Jun-2009 jkim

Import ACPICA 20090521.


185433 29-Nov-2008 rpaulo

Check for non-existing model DMI string.

Submitted by: ganbold
Found with: Coverity Prevent(tm)
CID: 2434
MFC after: 1 week


182850 07-Sep-2008 rpaulo

Add support for MacBook Air. (not tested)

Obtained from: mactel-linux


178145 12-Apr-2008 rpaulo

Match the Mac Pro with 8 cores. This machine reports 35 temperature
sensors and some fans.
As I don't own this machine, I could not test this patch.

Obtained from: applesmc Linux driver.


178122 11-Apr-2008 rpaulo

Don't call acpi_disabled() because we are not part of the acpi.ko
module. Instead, use resource_disabled() that doesn't depend on any
module.

Noticed by: Ian FREISLICH <ianf at clue.co.za>


178118 11-Apr-2008 rpaulo

Style nit. No functional change.


177979 07-Apr-2008 rpaulo

Actually, I was looking at the wrong Linux .c file. Set INIT2 to its
previous value.
While there, lower the delay for the misterious key.


177977 07-Apr-2008 rpaulo

* Add missing #else in the #ifdef DEBUG section.
* Fix the login in asmc_init().
* Change the INIT2 constant to reflect the same change in the Linux driver.


177976 07-Apr-2008 rpaulo

"Prettyfy" numbers in hexadecimal. No functional change.


177972 07-Apr-2008 rpaulo

The SMC is represented on the acpi tables, so we can completely remove
dependency on isa. We are now an acpi child.

Also:
* Add compile time debugging activation
* Increase the delay for the SMS init flag.


177941 05-Apr-2008 jhb

Move INTR_FILTER from opt_global.h to its own header.


173851 22-Nov-2007 rpaulo

Move ASMC_FAN_FUNCS in the Macmini structure declaration one line up
so that this macro expands in the right place.

Submitted by: Ed Schouten <ed at fxq.nl>
Approved by: njl (mentor)


173426 07-Nov-2007 rpaulo

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)