summaryrefslogtreecommitdiff
path: root/sys/dev/isa
AgeCommit message (Collapse)Author
2020-05-25change wsdisplay attribute type from long to uint32_tJonathan Gray
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@
2020-05-25rename wsdisplay alloc_attr() to pack_attr()Jonathan Gray
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@
2020-04-06pcppi(4), spkr(4): ticks -> millisecondscheloha
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@
2020-03-16spkr(4): fix compilation under SPKRDEBUGcheloha
uio.uio_resid is a size_t, not an int. Change the format string accordingly.
2020-02-1616 << PGSHIFT (which is >= 12) is always >= MAXPHYS (64 * 1024) soKenneth R Westerback
wds_minphys() is just duplicating what minphys() will do. Nuke it.
2020-02-07fd(4): timeout_add(9) -> timeout_add_msec(9), tsleep(9) -> tsleep_nsec(9)cheloha
With input from miod@. No complaints on tech@ after a month.
2020-01-26Shuffle some names around to make reading the code less headacheKenneth R Westerback
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.
2020-01-25Drivers that implement their own *minphys() don't need to call theKenneth R Westerback
system minphys(). scsi_minphys() will do that and cd/sd/st will call scsi_minphys(). ok jmatthew@ as part of larger diff
2020-01-24cleanup unused headers generated by configJonathan Gray
ok tedu@ krw@ deraadt@
2020-01-23Use a consistant idiom/format when declaring scsi_adapter structuresKenneth R Westerback
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@
2020-01-22rm rtfps driver. disabled and man page doesn't inspire much confidence.Ted Unangst
ok deraadt
2019-12-31Convert infinite sleeps to {m,t}sleep_nsec(9).Martin Pieuchot
ok kn@
2019-12-19spelling; from bryan stensonJason McIntyre
2019-12-17Add support for NCT6775F, NCT5104D, NCT6779D, NCT679[1235]D sensors.mortimer
From Joe Gidi.
2019-05-09add free sizesSebastien Marie
ok tedu@
2019-02-20Reject negative input from userland in spkrioctl(). One of the argumentsanton
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
2018-07-30Use the MI interrupt enable/distable API instead of the MD one on i386 andMark Kettenis
remove the MD API. ok deraadt@
2018-06-04Nuke unused variable.Kevin Lo
ok deraadt@
2018-02-14prune files.* entries that refer to files not in treeJonathan Gray
ok krw@ mpi@
2017-12-30Don't pull in <sys/file.h> just to get fcntl.hPhilip Guenther
ok deraadt@ krw@
2017-12-30Delete unnecessary <sys/file.h> includesPhilip Guenther
ok millert@ krw@
2017-11-04Interface counters should only increment.Florian Obser
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
2017-09-08fdc: Print warning if kthread_create failsStefan Fritsch
Other drivers do this, too. Fixes coverity CID 1455436.
2017-09-08If you use sys/param.h, you don't need sys/types.hTheo de Raadt
2017-09-03fdc: defer probing of floppy drivesStefan Fritsch
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@
2017-08-22Move array bounds tests before access to avoid reading past the end ofJonathan Gray
an array. Coverity CIDs 1452968 1453000. ok jung@ who mentions this case isn't hit in practice due to arrays having a terminating NULL.
2017-07-26we_readmem() and ec_readmem() are inlined, but they can also be static.Theo de Raadt
2017-06-04fix a bungled logical/bitwise expression pointed out by clang; ok deraadt@Christian Weisgerber
2017-06-04Remove unused function, as pointed out by clang. ok deraadt@ kettenis@Christian Weisgerber
2017-05-04Also pass the blk offset to disk_unbusy(), so that it can pass it toTheo de Raadt
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
2017-05-04Remove side effects from assignment. Fixes warning with cppcheck.Alexander Bluhm
No binary change. OK ratchov@
2017-04-30Unifdef KGDB.Martin Pieuchot
It doesn't compile und hasn't been working during the last decade. ok kettenis@, deraadt@
2017-03-02Add a new sysctl machdep.lidaction. The sysctl works as follows:Martin Natano
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
2017-02-14asmc: on system resume, restore the keyboard backlight valueJoshua Stein
ok various
2017-01-22move counting if_opackets next to counting if_obytes in if_enqueue.David Gwynne
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@
2016-09-19Remove unused getdev() audio driver functions.Alexandre Ratchov
2016-09-14Remove drain(), query_encoding(), mappage() and get_default_params()Alexandre Ratchov
methods from all audio drivers and from the audio_if structure as they are never called.
2016-09-04naddy discovered that bha no longer builds because it includes the nowTed Unangst
deleted aha.h header. therefore bha must be dragged into the attic too.
2016-09-03aha remnants lurking in hereTed Unangst
2016-09-03the src tree is growing too large. delete the aha and ahb drivers inTed Unangst
order to make room for llvm. er, the llvm makefiles. er, some of them.
2016-08-31Remove rt leftovers in isapnp, unbreak kernel config.Alexander Bluhm
OK deraadt@
2016-08-31Support A Radio Free Europe!Ted Unangst
remove long disabled radio devices ok deraadt
2016-08-31remove some ISA drivers for devices not recently seen in the wild.Ted Unangst
2016-08-30Make the init code match the comment and disable watchdogJonathan Gray
reset by mouse and keyboard instead of mouse and mouse.
2016-04-22do not try to probe light sensors for machines with none available, this wasJoerg Jung
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)
2016-04-19lower case temperature descriptions and separate fan description from fanJoerg Jung
location by a comma to avoid ambiguity with newer models hint from kettenis (last year)
2016-04-13G/C IFQ_SET_READY().Martin Pieuchot
2016-03-29make the ie(4)s bpf_mtap_ether outgoing packets like all the other driversDavid Gwynne
ok mpi@ claudio@
2016-03-19Reduces the noise around the global ``ticks'' variable by renamingMartin Pieuchot
all the local ones to ``nticks''. ok stefan@, deraadt@
2016-03-14Change a bunch of (<blah> *)0 to NULL.Kenneth R Westerback
ok beck@ deraadt@