summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2013-10-15Driver for the AIC-6250 SCSI controller found on AViiON models 100, 200, 300,Miod Vallat
400 and 4300. Limited to PIO mode only for now, until the DMA controller is tamed. Heavily based upon the MI aic(4) driver.
2013-10-11Add initial RTL8106E and RTL8168G/8111G support.Jonathan Gray
An earlier version didn't seem to work on a machine bmercer@ had access to a few months ago but this seems to work with the onboard Ethernet in an ASUS Z87 board RD Thrush has.
2013-10-09Enable synch negotiation; code was there but not enabled since this driver wasMiod Vallat
ported from NetBSD. Tested on hppa (720) and aviion (4600).
2013-10-09Include the 'state of health' field in the bbu ok sensor value.Jonathan Matthew
The dell perc 6/i sets this to zero (meaning bad) when it decides the battery doesn't have enough capacity for it to allow write back mode, but doesn't set any of the other flags to tell us why. ok dlg@, tested by sthen@
2013-10-07Do not invoke ttymodem() directly, but l_modem from the current linedisc.Miod Vallat
2013-10-05Disable interrupts in the interrupt handler. This is what FreeBSD does, andMark Kettenis
it seems to fix the occasional watchdog timeout when using MSI. tested by many
2013-10-01Use %z* for size_tStefan Fritsch
while there, fix a few %d into %u
2013-10-01Don't claim the interrupt if none of the interrupt status bits were set.Mark Kettenis
ok deraadt@
2013-09-24Sync the MI LANCE code ( le(4) ) with NetBSD, except for the following:Miod Vallat
- 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.
2013-09-24Try to release the console if pckbc(4) fails to send the initialMartin Pieuchot
command byte. This allows at least my USB keyboard to be part of the console on a Lenovo E20. ok miod@
2013-09-21Allow for an out-of-softc indirection to reach the software copy of theMiod Vallat
important (and write-only) register state; this will allow this driver to be used as a console before it attaches, to be used shortly.
2013-08-21get rid of the copy argument in m_devget that let you provide anDavid Gwynne
alternative to bcopy since noone uses it. while there use memcpy instead of bcopy because we know the memory cannot overlap. ok henning@ matthew@ mikeb@ deraadt@
2013-08-08Turns out neither the flow control diff nor the RX checksum offload diffMark Kettenis
is responsible for the hangs seen by Henning. So put them back.
2013-08-07Most network drivers include netinet/in_var.h, but apparently theyAlexander Bluhm
don't have to. Just remove these include lines. Compiled on amd64 i386 sparc64; OK henning@ mikeb@
2013-08-01Add support for the RT3572 MAC/BBP. Crucial bits from Nathan Goings.Mark Kettenis
ok mpi@
2013-07-25Backout flow control support (rev 1.97) and RX TCP/UDP checksum offloadMark Kettenis
support (rev 1.98). There is strong evidence that one of these causes hangs on the Sun ERI as found on a v120. ok henning@, deraadt@
2013-07-12Expunge debug code that uses an uninitialized variable. Without theKenneth R Westerback
variable the message doesn't make much sense. Reported by Maxime Villard.
2013-07-09pay attention to the #ifdefTheo de Raadt
2013-07-09move AHCI_DEBUG stuff into ahci.c so we can build with it enabled againJonathan Matthew
ok dlg@
2013-07-06Use wsemuldisplaydevsubmatch.Mark Kettenis
2013-06-12Add suspend/resume support to lpt. Basically, ensure that DACT_SUSPENDTheo de Raadt
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!
2013-06-11Overhaul the {aviion,mvme68k,mvme88k} dart(4) driver and move the trulyMiod Vallat
machine-independent parts to MI land. The MI code now allow MD configuration of the various input and output ports, to allow for proper DCD/RTS/DTR monitoring and control. It will also allow the second set of baud rates to be used (when possible, i.e. if both ports can use the same BRG), allowing for 38400 bps mode.
2013-06-11Replace all ovbcopy with memmove; swap the src and dst arguments tooTheo de Raadt
ok otto
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
test period; i think 3 years ago the last bugs fell out. ok otto beck others
2013-06-04remove orphaned macrosMiod Vallat
2013-05-31Correct sequencing in ca_activate function. Some operations were in theTheo de Raadt
wrong order, and depth traversal was not gauranteed. ok stsp (tested too)
2013-05-30Enforce ca_activate tree-walks over the entire heirarchy for all events,Theo de Raadt
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
2013-05-30tedu unused header. okay krw@Kurt Miller
2013-05-27Fix edge cases of uninitialized variables. In my tree for too long, I evenMiod Vallat
got ok's for azalia but I don't remember from whom.
2013-05-23Revert Active PS/2 support for now, until we find a solution suitableTobias Stoeckmann
for chipsets which stopped working. ok mpi
2013-05-21Rewrite ioctl handling bits.Brad Smith
ok sthen@
2013-05-21Rewrite ioctl handling bits.Brad Smith
ok sthen@
2013-05-18enw->new in comment;Jason McIntyre
spotted by krw, missed by jsg, and forwarded From: Alexey Suslikov
2013-05-15remove unused variableAlexandre Ratchov
2013-05-15Introduce a global interrupt-aware mutex protecting dataAlexandre Ratchov
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
2013-05-08fix some leaks in error pathsJonathan Gray
ok fgsch@ krw@ kettenis@
2013-05-07fix a double free in an error pathJonathan Gray
reminded of this diff by a report from Arto Jonsson ok krw@ fgsch@
2013-05-03break out the battery status into excruciating detail. makes it harder forDavid Gwynne
$VENDOR to complain about a lack of diagnostic material from their crappy mgmt tools if you're not running an operating system they support.
2013-05-02always attach the battery sensor if the adapter lets us query it.David Gwynne
newly replaced batteries dont show up immediately.
2013-05-01provide a sensor for the battery backup unit (bbu) on mfi boards thatDavid Gwynne
support it. now i can tell (a bit better) why io might be slow on some of my boxes.
2013-05-01there's some extra bits for the bbu status that freebsd dont have. provideDavid Gwynne
a %b thing for them too. now i just have to figure out how to represent this nicely: mfi0: fw_status 0xc00<REPLACE_PACK,CAPACITY_LOW> :(
2013-05-01provide a couple of %b things for mfi_hw_present and mfi_adapter_ops cosDavid Gwynne
im somehow too lazy to read a %x and look for a couple of bits set, but not lazy enough to not write a %b thing.
2013-05-01dont need to walk alldevs during sensor creation looking for the logicalDavid Gwynne
disk scsibus when we record that in mfi_attach. also happens to get rid of a logic error that let it come out of the loop on alldevs with a reference to something that wasnt the logical disk scsibus and use that.
2013-04-30white space tweakDavid Gwynne
2013-04-30white space fixesDavid Gwynne
2013-04-30use MR_DCMD consistently. some MD_DCMD was in there somehow.David Gwynne
2013-04-30pull in BBU bits from freebsdDavid Gwynne
2013-04-21Unify the zs tty driver.Sebastian Reitenbach
Most of the hard work by mpi@, who provided the initial diff. Fixes for sparc from myself. Tested on sgi and sparc myself. Compiles and detects zstty on my powerbook, compile tested on sparc64 by me. Real testing with zs device on sparc64 by miod@ who also gave a lot of help and feedback. ok miod@, mpi@
2013-04-20In ahc_reset(), use SELxxx constants instead of magic values. No functionalMiod Vallat
change.
2013-04-20correct handling of t_apmverTheo de Raadt