summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
2014-03-01Some {} are missing. The behavior is thus wrong: the code always jumps tomaxv
out1. Spotted by my code scanner. ok christos@
2014-02-25Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist beforepooka
the sysctl link sets are processed, and remove redundancy. Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate lines of code.
2014-01-25fix unusedchristos
2014-01-18+ Please also update ACPI_DATE in include/acapps.h.apb
2013-12-27use ACPI_DEBUG not ACPI_DEBUGGER which is used internally by acpicachristos
2013-12-27Add new functionschristos
2013-12-27- remove function list that was out of datechristos
- explain magical munging so that people are not scared to update in the future.
2013-12-27function argument changed widthchristos
2013-12-27constant changed namechristos
2013-11-20As discussed with bouyer@, fix a too eager T-state validation check tojruoho
accomodate new Intel CPUs.
2013-10-20fix unused variable warningschristos
2013-10-17remove unused variablechristos
2013-10-16print a warning if we failed.christos
2013-10-16remove unused variablechristos
2013-03-30reverse the polarity of the extra key option, always enabling them.christos
2013-03-30Define THINKPAD_EXTENDED_HOTKEYS to enable more hotkeys on ThinkPads.christos
This has only been tested on a T61. XXX: Should we put THINKPAD_EXTENDED_HOTKEYS into a opt_*.h include (defflag) or just always enable it?
2012-11-24Match LEN0068 in thinkpad(4) too, as newer Thinkpads report.riastradh
Tested on a W530. Lots of stuff is missing, though.
2012-10-12Add support for various things:cegger
- hddtemp sensor - ambient light sensor on/off (via sysctl) - display info - docking station info
2012-09-23locate PCI buses and determine their bus numbers using the infochs
previously extracted from ACPICA rather than trying to figure it out again. allow PCI buses that don't have a _PRT method.
2012-09-23re-enable the code to disable link devices at startup, ie. revert rev 1.3.chs
this fixes PCI interrupts on some systems (eg. HP XW9400) and we suspect that the problems which led to the original change were caused by buggy early implementations of ACPI, which are now ignored by date.
2012-08-14Use KM_SLEEP.jruoho
2012-08-14Collect rnd(9) entropy from coretemp(4), acpibat(4), aibs(4), hpacel(4),jruoho
thinkpad(4), and aps(4).
2012-07-29Replace local handling of entropy gathering with the new common codepgoyette
recently introduced into sysmon_envsys(4). Thanks to jruoho@ for testing.
2012-07-19Treat empty package returned from _AL<n> method the same as non-existent.christos
From jmcneill.
2012-07-15add function switch to switch on/off "wireless WAN", aka GSM et al modemspz
not tested to actually work, extensively tested not to do any harm if you don't have a wwan
2012-06-02Add some pre-processor magic to verify that the type of the data itemdsl
passed to sysctl_createv() actually matches the declared type for the item itself. In the places where the caller specifies a function and a structure address (typically the 'softc') an explicit (void *) cast is now needed. Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting AcpiGbl_EnableAmlDebugObject. (mostly passing the address of a uint64_t when typed as CTLTYPE_INT). I've test built quite a few kernels, but there may be some unfixed MD fallout. Most likely passing &char[] to char *. Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.
2012-04-27Remove the upper limit for the number of T-states.jruoho
2012-04-22As in Linux, prevent BIOS from trying to map addresses beyond ULONG_MAX.jruoho
2012-04-10Now that 6.0 is branched, remove the ACPI-related sysctl nodes in machdep.jruoho
2012-03-27Fix a regression introduced during the change of the DMI naming conventionsjruoho
(rev. 1.48). Also add a quirk for ASUSTeK's M2A-MX in order to allow powernow(4) to attach (reported by bouyer@).
2012-03-15Do not use uninitialized level if fujitsu_bp_get_brightness() returnedbouyer
an error; from gcc -O3 (completely harmless in this case though).
2012-02-25Set the flag for checking for PCI bus master activity only for C3.jruoho
2012-02-02Entropy-pool implementation move and cleanup.tls
1) Move core entropy-pool code and source/sink/sample management code to sys/kern from sys/dev. 2) Remove use of NRND as test for presence of entropy-pool code throughout source tree. 3) Remove use of RND_ENABLED in device drivers as microoptimization to avoid expensive operations on disabled entropy sources; make the rnd_add calls do this directly so all callers benefit. 4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might have lead to slight entropy overestimation for some sources. 5) Add new source types for environmental sensors, power sensors, VM system events, and skew between clocks, with a sample implementation for each. ok releng to go in before the branch due to the difficulty of later pullup (widespread #ifdef removal and moved files). Tested with release builds on amd64 and evbarm and live testing on amd64.
2012-01-22make it never match for now.christos
2012-01-22make it handle legacy devices too, although the ones in the table are not.christos
2012-01-22remove aborted work in progresschristos
2012-01-22add a tpm driver from bsssd.sourceforge.netchristos
2012-01-21initialize fan sensor state to ENVSYS_SINVALID, should fix:jmcneill
asus0 at acpi0 (ATKD, ASUS010-16843008) sme_update_sensor_dictionary: can not update sensor state 0 unknown asus0: couldn't register with envsys
2011-12-09provide a lock for mpu_attach.mrg
2011-11-24put back IPL_AUDIO and splaudio(), at the request of rmind. they aremrg
aliases and now we can easily revert audio to IPL_VM if necessary, without having to revert the whole branch.
2011-11-23Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. Fromjmcneill
the original ad-audiomp branch notes: Add MP locking to the audio drivers. Making the audio drivers MP safe is necessary before efforts can be made to make the VM system MP safe. The are two locks per device instance, an ISR lock and a character device lock. The ISR lock replaces calls to splaudio()/splx(), and will be held across calls to device methods which were called at splaudio() before (e.g. trigger_output). The character device lock is held across calls to nearly all of the methods, excluding some only used for initialization, e.g. get_locks. Welcome to 5.99.57.
2011-11-15Add comment.jruoho
2011-11-14add a machdep.dmi sysctl tree with the following read-only keys:jmcneill
system-vendor, system-product, system-version, system-serial, system-uuid bios-vendor, bios-version board-vendor, board-product, board-version, board-serial the *-serial and *-uuid keys are marked with CTLFLAG_PRIVATE a few of the pmf platform key names changed so update callers to match
2011-10-27Revert the revision 1.5 in cpufreq(9). Instead, document that the KPI canjruoho
not be used before interrupts have been enabled. Suggested by macallan@.
2011-10-20Initialize P-states to P0 (i.e. the highest frequency).jruoho
2011-10-18clear fixed events and disable GPEs before re-enabling interrupts on resumejmcneill
from S1
2011-10-18Convert to use cpufreq(9).jruoho
2011-10-13Remove bogus assertion that came with revisions 1.55-1.56.jruoho
2011-10-02_ACx is for active cooling policy, using it for envsys temp 'warn max' doesn'tjmcneill
make sense
2011-09-22valz(4) is superseded entirely by acpivga(4) these days.jakllsch