summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ansijsg2021-03-0735-816/+320
|
* remove some unused includesjsg2021-02-233-227/+0
|
* Since dlg@'s 2009 scsi midlayer refactoring the 'struct scsi_generic *cmd'krw2020-09-221-2/+2
| | | | | | | | | | | | member of 'struct scsi_xfer' has always been pointed at the 'struct scsi_generic cmdstore' member of the same instance. So nuke 'cmdstore' and remove the '*' from cmd. Take the address of cmd as required by the various casts. No intentional functional change. luna88k test by aoyama@, sparc64 test by jmatthew@ Identification of 2009's last *cmd use and ok jmatthew@
* asmc(4) found a new home in sys/dev/acpi.mglocker2020-09-121-722/+0
|
* Make asmc(4) attach through acpi(4) instead of isa(4).mglocker2020-09-121-6/+1
| | | | | | This e.g. makes the driver also work on iMac11,2. ok kettenis@, jung@
* Declare hw_{prod,serial,uuid,vendor,ver} in <sys/systm.h>.visa2020-08-262-6/+2
| | | | OK deraadt@, mpi@
* SC_DEBUG() and friends are for debugging the SCSI code, not for scattered randomkrw2020-07-291-9/+15
| | | | | | | uses in drivers. Use WDSDEBUG sections like the rest of the debug output. Fix some printf() format problems that were missed in the previous sweep.
* Nuke unused struct scsi_link members of adapter softc's where thekrw2020-07-221-2/+1
| | | | driver successfully compiles on one or more of amd64, i386, hppa.
* Move remaining scsi bus initialization info from "prototype scsi link"krw2020-07-201-5/+5
| | | | | | | fields to struct scsibus_attach_args. Nuke the struct scsi_link * (saa_sc_link) in scaibus_attach_args. Explicitly initialize each field in scsibus_attach_args variables.
* Move the adapter related items (luns, adapter, adapter_target,krw2020-07-191-4/+5
| | | | | | | adapter_buswidth, adapter_softc) from struct scsi_link to struct scsibus_attach_args. Additional compile tests by jmatthew@ (sparc64) and aoyam@ (luna88k).
* Access adapter softc via link->bus->sb_adapter_softc.krw2020-07-161-3/+3
| | | | | | | | In sparc64 autoconf access 'luns' via sb_luns and 'adapter_buswidth' via sb_adapter_buswidth. Removes last post-config uses of the copies of bus related information in scsi_link.
* Expunge some Captain Obvious comments, tweak whitespace a bit, move a debugkrw2020-07-111-7/+1
| | | | statement. All to make upcoming diff(s) smaller and easier to read.
* Change users of IFQ_SET_MAXLEN() and IFQ_IS_EMPTY() to use the "new" API.patrick2020-07-101-2/+2
| | | | ok dlg@ tobhe@
* Change users of IFQ_DEQUEUE(), IFQ_ENQUEUE() and IFQ_LEN() to use thepatrick2020-07-103-6/+6
| | | | | | "new" API. ok dlg@ tobhe@
* Nestle all sc_link initialization near config_found() invocation.krw2020-07-041-4/+4
|
* No need to bzero()/memset() 'struct scsibus_attach_args' variableskrw2020-06-271-2/+1
| | | | immediately before initializing the only field in the struct.
* 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