summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa (follow)
Commit message (Collapse)AuthorAgeFilesLines
* change wsdisplay attribute type from long to uint32_tjsg2020-05-251-7/+7
| | | | | | | | miod explained it was initially a long as it was thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. suggested and reviewed by miod@
* rename wsdisplay alloc_attr() to pack_attr()jsg2020-05-251-4/+4
| | | | | | | | Suggested by John Carmack. miod agrees a rename would make sense and explained it was initially thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. ok mpi@
* pcppi(4), spkr(4): ticks -> millisecondscheloha2020-04-062-27/+27
| | | | | | | | | | | | | | | | | | | | | | | In pcppi(4), convert from ticks to milliseconds. While we're doing this, we can also convert spkr(4), too. The spkr(4) conversion from ticks to milliseconds is trickier because the driver is written with musical intervals (whole notes, quarter notes, etc.), not the typical units (seconds, milliseconds, etc.) used in most software. I think the conversion is correct... but the code is a challenging read, so it might be subtly incorrect. ratchov@ intends to move spkr(4) into the attic sometime soon so I doubt it matters much if I got it wrong. Input from schwarze@, jsg@, and ratchov@. Tested by schwarze@. ok ratchov@
* spkr(4): fix compilation under SPKRDEBUGcheloha2020-03-161-2/+2
| | | | | uio.uio_resid is a size_t, not an int. Change the format string accordingly.
* 16 << PGSHIFT (which is >= 12) is always >= MAXPHYS (64 * 1024) sokrw2020-02-161-10/+2
| | | | wds_minphys() is just duplicating what minphys() will do. Nuke it.
* fd(4): timeout_add(9) -> timeout_add_msec(9), tsleep(9) -> tsleep_nsec(9)cheloha2020-02-071-5/+5
| | | | | | With input from miod@. No complaints on tech@ after a month.
* Shuffle some names around to make reading the code less headachekrw2020-01-261-4/+4
| | | | | | | | inducing. Rename scsi_adapter member 'scsi_minphys' to 'dev_minphys' to reflect what it is supposed to do. Use consistent naming convention (<dev>_minphys) for the actual device functions. No functional change.
* Drivers that implement their own *minphys() don't need to call thekrw2020-01-251-2/+1
| | | | | | | system minphys(). scsi_minphys() will do that and cd/sd/st will call scsi_minphys(). ok jmatthew@ as part of larger diff
* cleanup unused headers generated by configjsg2020-01-241-2/+2
| | | | ok tedu@ krw@ deraadt@
* Use a consistant idiom/format when declaring scsi_adapter structureskrw2020-01-231-5/+2
| | | | | | | | | | | in drivers. Terse one liners, NULLs instead of 0's, explicitly specify all members, etc. Nuke #ifdef notyet blocks related to the scsi_adapter in aic. No intentional functional change. ok tedu@
* rm rtfps driver. disabled and man page doesn't inspire much confidence.tedu2020-01-222-221/+1
| | | | ok deraadt
* Convert infinite sleeps to {m,t}sleep_nsec(9).mpi2019-12-313-6/+7
| | | | ok kn@
* spelling; from bryan stensonjmc2019-12-191-2/+2
|
* Add support for NCT6775F, NCT5104D, NCT6779D, NCT679[1235]D sensors.mortimer2019-12-172-2/+30
| | | | From Joe Gidi.
* 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@