summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add free sizessemarie2019-05-091-4/+4
| | | | ok tedu@
* Reject negative input from userland in spkrioctl(). One of the argumentsanton2019-02-202-2/+16
| | | | | | | | | | are later passed to timeout_add() which panics if the given ticks are negative. While here, clamp arguments in pcppi_bell() in order to prevent overflow. ok visa@ Reported-by: syzbot+23089c40a85aa70bed6f@syzkaller.appspotmail.com
* Use the MI interrupt enable/distable API instead of the MD one on i386 andkettenis2018-07-301-3/+4
| | | | | | remove the MD API. ok deraadt@
* Nuke unused variable.kevlo2018-06-041-3/+2
| | | | ok deraadt@
* prune files.* entries that refer to files not in treejsg2018-02-141-25/+1
| | | | ok krw@ mpi@
* Don't pull in <sys/file.h> just to get fcntl.hguenther2017-12-302-4/+4
| | | | ok deraadt@ krw@
* Delete unnecessary <sys/file.h> includesguenther2017-12-301-2/+1
| | | | ok millert@ krw@
* Interface counters should only increment.florian2017-11-041-9/+15
| | | | | | | haesbaert points out that ie(4) does a weird error accounting dance which requires it to decrement a interface counter in some cases. Shuffle things around to only ever do an increment "sure" kettenis, OK mpi
* fdc: Print warning if kthread_create failssf2017-09-081-2/+6
| | | | Other drivers do this, too. Fixes coverity CID 1455436.
* If you use sys/param.h, you don't need sys/types.hderaadt2017-09-0811-22/+11
|
* fdc: defer probing of floppy drivessf2017-09-032-8/+26
| | | | | | | | | Defer probing of the drives to a kthread. This avoids several seconds of delay() during boot. However, drives may now appear only after init has started. But this does not affect installs from floppy. In that case the root ramdisk is linked into the kernel and loaded by the boot loader. Approach suggested by deraadt@, tested by miod@
* 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.
* we_readmem() and ec_readmem() are inlined, but they can also be static.deraadt2017-07-262-6/+6
|
* fix a bungled logical/bitwise expression pointed out by clang; ok deraadt@naddy2017-06-041-2/+2
|
* Remove unused function, as pointed out by clang. ok deraadt@ kettenis@naddy2017-06-041-15/+1
|
* Also pass the blk offset to disk_unbusy(), so that it can pass it toderaadt2017-05-041-3/+3
| | | | | | the random subsystem as entropy. This value is pretty much unknown, and anyways our entropy input ring does not saturate from knowns. ok mikeb djm
* Remove side effects from assignment. Fixes warning with cppcheck.bluhm2017-05-041-4/+4
| | | | | No binary change. OK ratchov@
* Unifdef KGDB.mpi2017-04-303-51/+3
| | | | | | It doesn't compile und hasn't been working during the last decade. ok kettenis@, deraadt@
* Add a new sysctl machdep.lidaction. The sysctl works as follows:natano2017-03-021-3/+3
| | | | | | | | | | | | | | | machdep.lidaction=0 # do nothing machdep.lidaction=1 # suspend machdep.lidaction=2 # hibernate lidsuspend is just an alias for lidaction, so if you change one, the other one will have the same value. The plan is to remove machdep.lidsuspend eventually when people have upgraded their /ets/sysctl.conf. discussed with deraadt, who came up with the new MIB name no objections mlarkin ok stsp halex jcs
* asmc: on system resume, restore the keyboard backlight valuejcs2017-02-141-2/+17
| | | | ok various
* move counting if_opackets next to counting if_obytes in if_enqueue.dlg2017-01-225-15/+7
| | | | | | | this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it. ok mpi@ deraadt@
* Remove unused getdev() audio driver functions.ratchov2016-09-195-113/+5
|
* Remove drain(), query_encoding(), mappage() and get_default_params()ratchov2016-09-149-285/+13
| | | | | methods from all audio drivers and from the audio_if structure as they are never called.
* naddy discovered that bha no longer builds because it includes the nowtedu2016-09-042-198/+1
| | | | deleted aha.h header. therefore bha must be dragged into the attic too.
* aha remnants lurking in heretedu2016-09-031-3/+1
|
* the src tree is growing too large. delete the aha and ahb drivers intedu2016-09-033-1687/+1
| | | | order to make room for llvm. er, the llvm makefiles. er, some of them.
* Remove rt leftovers in isapnp, unbreak kernel config.bluhm2016-08-311-5/+1
| | | | OK deraadt@
* Support A Radio Free Europe!tedu2016-08-318-1884/+1
| | | | | remove long disabled radio devices ok deraadt
* remove some ISA drivers for devices not recently seen in the wild.tedu2016-08-3111-3585/+2
|
* Make the init code match the comment and disable watchdogjsg2016-08-301-2/+2
| | | | reset by mouse and keyboard instead of mouse and mouse.
* 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)
* G/C IFQ_SET_READY().mpi2016-04-135-10/+5
|
* make the ie(4)s bpf_mtap_ether outgoing packets like all the other driversdlg2016-03-291-13/+1
| | | | ok mpi@ claudio@
* Reduces the noise around the global ``ticks'' variable by renamingmpi2016-03-191-9/+9
| | | | | | all the local ones to ``nticks''. ok stefan@, deraadt@
* Change a bunch of (<blah> *)0 to NULL.krw2016-03-142-8/+8
| | | | ok beck@ deraadt@
* Move HID support files out of dev/usb into new dev/hid directoryjcs2016-01-081-2/+2
| | | | | | | | | These files aren't USB-specific and were used by the previous Bluetooth implementation, and will be used by the upcoming HID-over-i2C implementation ok deraadt previous version ok kettenis and mpi
* 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
|