summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi/atk0110.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Our ACPI namerefs are pointers to the byte structures for ACPI names.patrick2021-03-101-4/+4
| | | | | | | | | | | | These are not in a printable format, hence printing them as string is wrong. Additionally, aml_searchrel()/aml_searchname() expect the name to be passed in a printable format as well. Passing a nameref can lead to an out-of-bounds read, and the comparison can fail. Hence make sure that namerefs are passed to aml_getname() first, which returns printable strings. Note that aml_getname() uses a static buffer, so there are a few restrictions how the string can be used. ok kettenis@
* Fix some issues with referencing named ACPI nodes from Packages.kettenis2020-12-171-4/+4
| | | | | | | | | | | | | | | | | These references need to be resolved at runtime rather than when they're parsed such that they pick up the right values for those nodes which can be changed when for example _INI methods run. The current approach is to replace these reference with a string that names the node in question. The problem with that is that packages can also contain normal strings. Which means that we need special code that depends on the context where the package is used. This diff takes a different approach by retaining a reference when parsing. Code that uses a package will need to resolve this reference but there is no ambiguiety anymore. ok patrick@
* Use <stdint.h> types.kettenis2018-06-291-6/+6
| | | | ok mpi@, jung@, krw@, deraadt@
* move vendor HIDs into their drivers, clean up some unused definesjcs2017-02-251-2/+2
| | | | ok kettenis
* sizes for simple free() callsderaadt2015-08-251-2/+2
|
* lonely bcopy called me by namederaadt2014-12-191-2/+2
|
* missing \n in printf; Daniel Wadederaadt2014-10-161-2/+2
|
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-2/+2
| | | | after discussions with beck deraadt kettenis.
* Fix invalid / missing format specifiers in several dnprintf statementsmlarkin2014-05-211-7/+7
| | | | | | | (used only when ACPI_DEBUG is enabled) From a diff on tech@ by Fabian Raetz, with a minor change by me, tested on i386 and amd64 with ACPI_DEBUG enabled and disabled.
* remove stray printf; ok piroftideraadt2014-02-211-2/+1
|
* fix up unbalanced format stringsjsg2011-06-191-2/+2
| | | | ok deraadt@
* Add support for newer asus boards that use a different method to pollclaudio2010-09-211-160/+324
| | | | | | | and enumerate the sensors. When available aibs is using the RTMP, RVLT, and RFAN nodes else in new mode GGRP, GITM, and SITM are used. Tested by me and japser@ on old HW and me and Mattieu Baptiste on new HW. OK deraadt@
* acpi sub-drivers may not use sensordev_install(); all acpi/acpiec/dsdtderaadt2010-09-191-6/+17
| | | | | | | | operations must currently operate under the acpi thread. So use aml_register_notify with ACPI_POLL for now -- it is a horrific hack of an interface, but now that all drivers are unified to use it, we can consider improving it. tested by jasper and claudio
* Put the name string on the stack.nicm2010-05-171-2/+2
| | | | | | | Fixes build with gcc4 which otherwise optimises away the modifications to it, discovered by jakemsr@. ok marco jsg
* initialise 's' before first use in the unlikely error path; from cnstderaadt2010-02-261-8/+5
|
* turn off verbosederaadt2010-01-041-2/+2
|
* New aibs(4) driver for ASUSTeK AI Booster (ACPI ATK0110) hardware monitoring,cnst2009-07-231-0/+382
with sensor state support through limits provided by the ACPI. Tested on several ASUS motherboards kindly networked by Sam Fourman Jr. ok deraadt marco jordan