summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa/asmc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move array bounds tests before access to avoid reading past the end ofjsg2017-08-221-3/+3
| | | | | | | an array. Coverity CIDs 1452968 1453000. ok jung@ who mentions this case isn't hit in practice due to arrays having a terminating NULL.
* asmc: on system resume, restore the keyboard backlight valuejcs2017-02-141-2/+17
| | | | ok various
* do not try to probe light sensors for machines with none available, this wasjung2016-04-221-9/+10
| | | | | | | | | | already fixed in -r1.7 (for kettenis macmini), but since then the code was heavily shuffled and moved around and this regression was re-introduced choose a different fix now and introduce a light sensor flag for the different models to allow or avoid the probing prodded by landry (macmini again)
* lower case temperature descriptions and separate fan description from fanjung2016-04-191-50/+50
| | | | | | location by a comma to avoid ambiguity with newer models hint from kettenis (last year)
* set sensor type later on initjung2015-12-271-5/+5
|
* fold for loops back into a wait function in a similar manner as acpiec doesjung2015-12-271-31/+17
|
* rename kbdled to backlight and mention chip model in commentjung2015-12-271-11/+11
|
* extra taskq is gone, so also remove the no longer needed init variablejung2015-12-271-19/+17
|
* simplify and unify keyboard backlight hooks, doing the same kassert instead ofjung2015-12-271-17/+5
| | | | for-loop as acpithinkpad does
* with Mark's fix in previous commit the extra taskq for delayed initializationjung2015-12-271-35/+6
| | | | | and updates is no longer needed and can be removed, so simplify things and initialize the sensors on attach and update them through the sensors task
* The Apple SMC is implemented on a H8S/2117 chip. Communication with the chipkettenis2015-12-221-32/+41
| | | | | | | | | | | | becomes much more reliably if we pay attention to the IBF and OBF flags. This removes the need for excessive delays and retries, making operations complete in microseconds instead of seconds. This diff also removes flushing the read buffer after a read operations. This doesn't seem to be necessary, but we might need to put that back if the length of a reply changes for some keys. ok jung@, deraadt@
* ignore unlikely temperature values like -127 degCjung2015-12-151-2/+5
|
* add 2 more temperature keys found in macbook pro (10,2)jung2015-12-151-10/+9
| | | | | | | | found via key dump diff, run by Bryan Vyhmeister also remove 3 temperature keys which likely do not return useful values verified with help from macbook pro output of tb (4,1 and 5,5), kettenis (12,1), and Cristoph R. Murauer (9,1) via misc@
* add more temperature keys found in newer macbook airs (6,1 and 7,2)jung2015-12-151-7/+8
| | | | encountered via key dump diff, run by Bryan Vyhmeister
* make sure the read fan description is always nul terminatedjung2015-12-151-2/+3
| | | | hint from kettenis
* enable keyboard backlight support via wskbd(4) hooksjung2015-12-121-3/+78
| | | | | | tested by Bryan Vyhmeister, krw, tb, and myself ok krw tb
* remove wrapper function and call LKSB key write directlyjung2015-12-111-18/+10
|
* remove no longer needed prototypejung2015-12-111-3/+2
|
* instead of checking the status everywhere do it directly after (trying) thejung2015-12-111-48/+53
| | | | command and propagate the result
* enable keyboard backlight led earlier to avoid racejung2015-10-291-9/+12
|
* refactor to use a taskq and postpone the long running initial sensor probing,jung2015-10-251-248/+264
| | | | | also avoid excessive tsleep()s for updates within the sensor task, moreover this should fix some seldom seen 'comm collision' errors
* avoid using a var uninitialisedjsg2015-10-151-1/+2
| | | | ok jung@
* add location to the fan descriptionjung2015-10-101-1/+17
|
* fix wrong brackets in if statementjung2015-10-101-2/+2
|
* tweak initial output a bit: do not show number of light sensors, just show ifjung2015-10-041-3/+3
| | | | | some is found or not, also remove kbdled output as there is no (known) way to test if (not) available at all
* a macmini has no light sensor, but reading from light sensor keys isjung2015-10-041-9/+3
| | | | | | | | | successful, while info/type reading from same keys fails and avoids initialization; so check the validity flag earlier and do not try to attach invalid (non-existing) keys debugged with help from kettenis
* remove duplicate key, found by kettenisjung2015-10-041-3/+3
|
* relax vendor comparison to match variations found in olderjung2015-10-011-2/+2
| | | | models for example macmini1,1
* add const, prodded by mpijung2015-10-011-2/+2
|
* remove superfluous sensor_attach() added for debug reasonsjung2015-10-011-2/+1
|
* fix semicolon after if statementjsg2015-10-011-1/+2
| | | | ok jung@
* add a (disabled) driver for the Apple System Management Controller (SMC) asjung2015-09-301-0/+651
found in Apple Intel based devices "go at it" deraadt@