summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove unnecessary `needs-flag' attributes.miod2014-10-121-12/+12
|
* Remove unnecessary `needs-flag' attributes.miod2014-10-121-5/+5
|
* Directly include sys/timeout.h so we don't depend onjsg2014-09-211-1/+2
| | | | | | | | indirectly including it via dev/ic/pckbcvar.h Fixes kernel builds without ukbd(4) and pckbd(4). From Atticus on tech@
* remove uneeded proc.h includesjsg2014-09-1429-58/+29
| | | | ok mpi@ kspillner@
* Fewer <netinet/in_systm.h>mpi2014-08-1112-60/+12
|
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-127-23/+23
| | | | after discussions with beck deraadt kettenis.
* remove most of the boolean_t infection outside uvm/ddb/pmap; ok jsgderaadt2014-07-101-15/+11
|
* Fix a few format string bugs with -DDEBUGsf2014-06-151-2/+2
|
* Move an opening brace so a loop that delays while waitingjsg2014-04-281-3/+3
| | | | | | for hardware to set a ready bit actually delays. ok krw@ deraadt@ 'sounds correct' miod@
* Reduce uvm include madness. Use <uvm/uvm_extern.h> instead ofmpi2014-03-281-2/+1
| | | | | | <uvm/uvm.h> if possible and remove double inclusions. ok beck@, mlarkin@, deraadt@
* Retire hp300, mvme68k and mvme88k ports. These ports have no users, keepingmiod2014-03-181-3/+1
| | | | | | | this hardware alive is becoming increasingly difficult, and I should heed the message sent by the three disks which have died on me over the last few days. Noone sane will mourn these ports anyway. So long, and thanks for the fish.
* Attempt to approximate what should happen on a suspend/resume cycle.deraadt2013-12-281-1/+12
| | | | | | | | If the driver was doing some IO, we remove the timeouts, and force the fdc state machine into IOTIMEDOUT state with the final timeout count before a clean retry. In theory upon resume it should freak out quietly, and try the operation again. Noone has stepped forward to test this yet.
* use new com.c bus-independent suspend/resume code, rather than trying toderaadt2013-12-091-20/+3
| | | | | craft broken local code here ok kettenis
* Add a DVACT_WAKEUP op to the *_activate() API. This is called after thederaadt2013-12-061-4/+4
| | | | | | | | kernel resumes normal (non-cold, able to run processes, etc) operation. Previously we were relying on specific DVACT_RESUME op's in drivers creating callback/threads themselves, but that has become too common, indicating the need for a built-in mechanism. ok dlg kettenis, tested by a sufficient amount of people
* Change the sc_model field type from unsigned to signed since the model can bebrad2013-11-291-2/+2
| | | | | | | | set to SB_UNK which has a value of -1. sb.c:307:8: error: comparison of 0 <= unsigned expression is always true [-Werror,-Wtautological-compare] ok deraadt@
* Instead of comparing the lower and higher addresses of all the multicastmpi2013-11-261-6/+11
| | | | | | | | | | | entries to decide if the IFF_ALLMULTI flag should be set, check if there is at least one real range between them. This should not change the behavior of any driver but if you encounter any problem, feel free to revert the offending chunk and ping me about it. ok naddy@, dlg@
* remove the #define b_cylinder b_resid from bufs. i hated thedlg2013-11-211-12/+17
| | | | | | | | | | | | | | | | | | | overloading of that thing. the only hardware that seems to care about cylinders in our tree are floppy drives, and the drivers for those calculate their own cylinders from logical block addresses and ignore whatever the rest of the kernel thought b_cylinders should be. most of this diff is moving the floppy drivers to using b_resid as a resid and using that as part of the calculation for real cylinder values. the rest of the diff is getting rid of the useless assignments to b_cylinder that dont get used by anything (now that disksort is gone). ok miod@
* ansify some function definitions.brad2013-11-158-557/+210
| | | | | | no functional change. ok sthen@
* Sprinkle (long long) casts where %lld is being used to print daddr_tkrw2013-11-011-4/+5
| | | | | | variables. Some random whitespace/knf repairs encountered on the way. ok miod@ on inspection, feedback & more suggestions from millert@
* move fd(4) from directly using disksort to using bufqs.dlg2013-11-011-15/+18
| | | | tested by me and rapha@
* Use C99 named initializers for struct wsdisplay_accessops fields.miod2013-10-201-7/+6
| | | | No functional change.
* Sync the MI LANCE code ( le(4) ) with NetBSD, except for the following:miod2013-09-246-35/+41
| | | | | | | | | | | | | | | | - the am7990_get() - now lance_get() - is unchanged. - the interrupt acknowledge logic is unchanged, and will disable interrupts, then acknowledge all interrupt conditions. Add ILACC (79900) support (from NetBSD). Both LANCE (am7990.c) and ILACC (am79900.c) code share as much common code (lance.c) as possible. This affects all le(4) attachments, but the changes are mostly mechanical, to split am7990-specific parts from lance-agnostic parts. Compile tested on all affected platforms. Tested on alpha, hp300, luna88k, mvme88k, sparc, sparc64 and vax.
* Most network drivers include netinet/in_var.h, but apparently theybluhm2013-08-0712-24/+12
| | | | | don't have to. Just remove these include lines. Compiled on amd64 i386 sparc64; OK henning@ mikeb@
* The "probe" interrupt handler is mpsafe; mark it as such.kettenis2013-07-141-3/+4
| | | | ok matthew@
* Remove some lies in comments.kettenis2013-06-261-19/+16
|
* Add suspend/resume support to lpt. Basically, ensure that DACT_SUSPENDderaadt2013-06-121-2/+3
| | | | | | stops the timeouts, and that DVACT_RESUME unwedges the soft state and bring the hardware state back to normal operation. Tested by rpe, thanks a lot!
* final removal of daddr64_t. daddr_t has been 64 bit for a long enoughderaadt2013-06-111-4/+4
| | | | | test period; i think 3 years ago the last bugs fell out. ok otto beck others
* Enforce ca_activate tree-walks over the entire heirarchy for all events,deraadt2013-05-302-10/+19
| | | | | | cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request) ok kettenis mlarkin, tested by many others too
* Since audio code is mp safe, establish isa and pci audio interruptsratchov2013-05-247-20/+27
| | | | | | | | with the IPL_MPSAFE flag. In certain circumstances, this prevents interrupt handlers from waiting the global kernel_lock possibly (hold by slower code) to be released. ok kettenis
* Revert Active PS/2 support for now, until we find a solution suitabletobias2013-05-231-12/+4
| | | | | | for chipsets which stopped working. ok mpi
* Introduce a global interrupt-aware mutex protecting dataratchov2013-05-157-106/+138
| | | | | | | | | | | | | structures (including sound-card registers) from concurent access by syscall and interrupt code-paths. Since critical sections remain the same, calls to splraise/spllower can be safely replaced by calls to mtx_enter/mtx_leave with two exceptions: (1) mutexes are not reentrant (the inner splraise is thus removed), and (2) we're not allowed to sleep with a mutex (either msleep is used or the mutex is released before sleeping). ok and help from kettenis, a lot of work from armani
* Enable active PS/2 multiplexing if available.tobias2013-04-201-4/+12
| | | | | | | | Supported for i386 and amd64 except SMALL_KERNEL. Based on Miod's former work on this subject. ok mpi
* Fix various glitches in queue macro usage.guenther2013-04-101-2/+2
| | | | ok millert@
* unfinished opti device code is never called or usedtedu2013-04-053-411/+2
|
* Attach on ITE 8728.brynet2013-03-212-2/+4
| | | | | | it0 at isa0 port 0x2e/2: IT8728F rev 1, EC port 0x228 ok deraadt@
* In pcic_intr_find(), pass a correct device name to isa_intr_establish(), somiod2013-03-081-2/+2
| | | | that we can get reasonable debug or panic messages when things go wrong.
* acknowlege -> acknowledgemartynas2013-01-061-2/+2
| | | | | | compatability -> compatibility OK jmc@.
* Support IT8772F; from form@, ok kettenismikeb2012-12-142-2/+4
|
* use boolean_t not bool for a local boolean type so this won'tjsg2012-11-101-4/+4
| | | | | | clash with a c99 style bool type. ok millert@ deraadt@
* Swap arguments to wdog_register() since it is nicer, and preparederaadt2012-10-174-8/+8
| | | | wdog_shutdown() for external usage.
* Point an interface directly to its bridgeport configuration, insteadcamield2012-10-051-7/+7
| | | | | | | | | | of to the bridge itself. This is ok, since an interface can only be part of one bridge, and the parent bridge is easy to find from the bridgeport. This way we can get rid of a lot of list walks, improving performance and shortening the code. ok henning stsp sthen reyk
* Add support for the Winbond W83627UHG chip.lteo2012-07-012-2/+7
| | | | | | | | | | Ported from a DragonFly BSD commit by Constantine A. Murenin: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/245ec76bc1613b22cf282526fa9931e4c16e4237 Tested on a Lanner FW-7539 appliance. ok mlarkin mikeb haesbaert henning
* exlusive -> exclusivemiod2012-05-241-2/+2
|
* If the MIDI UART is not ready for output, don't spin at IPL_CLOCK;ratchov2012-03-302-11/+10
| | | | | | | just return and make the midi(4) driver retry later. UART buffers are large enough for this, except eap(4) which uses interrupts for output. help from and ok jsg@
* reisters -> registersmiod2012-03-071-3/+3
|
* Fix NULL fallout, spotted by naddymiod2012-02-261-2/+2
|
* regenmiod2012-02-251-1/+2
|
* Enable GUS PnPmiod2012-02-251-2/+2
|
* Don't tinker with the MIDI registers if they aren't mapped; necessary for themiod2012-02-251-5/+7
| | | | GUS PnP.
* disable the polling timeout when we suspend; discovered by some codederaadt2012-02-021-1/+2
| | | | | guenther is working on ok miod