summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic
AgeCommit message (Collapse)AuthorFilesLines
2013-11-26Instead of comparing the lower and higher addresses of all the multicastmpi12-108/+66
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@
2013-11-21Remove unneeded include.mpi2-4/+2
ok deraadt@
2013-11-20Instead of comparing the lower and higher addresses of all the multicastmpi1-14/+7
entries to decide if the IFF_ALLMULTI flag should be set, check if there is at least one real range between them. Tested by naddy@
2013-11-18format stringderaadt1-2/+2
2013-11-18Enable MSI on the remaining chipsets.brad1-1/+2
ok naddy@ sthen@
2013-11-18simplify kthread_create(). no more stdargderaadt4-10/+12
ok matthew guenther mikeb
2013-11-15ansify some function definitions.brad1-395/+125
no functional change. ok sthen@
2013-11-15Add missing parenthesis to make tick calculation work as intended. Shouldkrw1-2/+2
fix excessive timeouts and 'Michael mic' errors. Problem pointed out by vigdis via bugs@ ok dlg@
2013-11-14replace workqs with tasks for handling resumedlg6-16/+18
from kimberley manning
2013-11-14replace workqs with tasks for handling resumedlg2-6/+7
from kimberley manning
2013-11-14replace workqs with tasks for handling resumedlg2-4/+4
from kimberley manning
2013-11-13ENOMEM is probably more appropriate than 0 in this error case.mlarkin1-2/+2
2013-11-13Use of uninitialized variable. There are obvious locking problems alsomlarkin1-2/+2
present in this function, but I've been advised to walk away, and it have been this way forever (and this code is not even enabled in GENERIC by default anyway) original bug found by Maxime Villard, thanks.
2013-11-11replace things like "start + interval > ticks" withdlg1-2/+2
"ticks - start > interval" because the latter copes with ticks wrapping. pointed out by guenther@
2013-11-06Add support for the RTS5229 card reader to rtsx(4).stsp3-25/+131
From Pedro Martelletto.
2013-11-06teach the side-effect free drivers about the partition they are dealingderaadt1-1/+10
by passing a start/length in the HIB_INIT op. Then rebase all hibernate-time block offsets to be relative to the start of that partition. This simplifies things a lot. ok mlarkin
2013-10-28tedu FDDI support and the 3 flavors the driver for DEC devices, evenmpi4-3340/+0
miod@ cannot find two boards using the same media. With precious punctuation review from guenther@, thanks! ok deraadt@, henning@
2013-10-25Fix/re-enable RX checksum offload for 8168C/8168CP revisions after revision rev 1.140.brad1-7/+6
The relevant code for enabling the HW's RX checksum offload support was checking for the TX feature flag to know when to enable RX checksum offload but that flag was removed/disabled with rev 1.140 which resulted in the RX checksum offload support inadvertently being disabled. ok naddy@
2013-10-23Add support for displaying the cache write policy of RAID volumes to bioctl(8)kettenis1-1/+6
and make mfi(4) pass up the necessary information. Adding support for other RAID controllers is left as an excercise to the reader. ok deraadt@
2013-10-23Checkpoint of work-in-progress DMA support for oaic(4). Not working yet,miod2-2/+47
probably due to incorrect programming of the system board ``Diagnostic Control Register'', for which I do not have documentation yet; commited so as not to lose this work, since the machine I was testing on has apparently commited suicide and will no longer POST.
2013-10-21Fix values of AR9003 Rx queue software indexes. Both indexes were zero,stsp1-2/+2
which is obviously not intended given how they are used in the ar9003 code. No currently working athn(4) devices are affected by this change.
2013-10-21Write AR9485 initvals in the same order as Linux ath9k does.stsp1-142/+142
Verified by comparing register write traces. No currently working athn(4) devices are affected by this change.
2013-10-20No longer store fonts added with the WSDISPLAYIO_LDFONT ioctl into themiod1-2/+33
wsdisplay softc. Instead, since the knowledge about available fonts lies in the parent driver itself, introduce a list_font wsdisplay_accessop which queries a font index, suitable to use within the WSDISPLAYIO_LSFONT ioctl. With this in place: - there is no global wsdisplay limit on the number of fonts loaded. Such a limit will be enforced by the display drivers themselves. - built-in kernel fonts will now appear in the list of fonts. Grow a list_font accesop for rasops, which relies upon wsfont_enum(), which is turned into something useful (and abortable if you do not need to iterate further). Not used by any rasops driver yet.
2013-10-20Use C99 named initializers for struct wsdisplay_accessops fields.miod2-17/+16
No functional change.
2013-10-19Remove never enabled WSCONS_SUPPORT_PCVTFONTS code.miod1-147/+2
2013-10-19we dont fake VPD INQUIRY pages, so fail on requests for them.dlg1-1/+7
2013-10-18Make sure that, when a particular mapchar() can't find a proper glyph for themiod2-4/+4
requested character in the font it is using, it suggests a question mark character, instead of a space, so that the existence of the non-representable character becomes visible. Note that this is consistent with pcdisplay which suggests a diamond for missing glyphs.
2013-10-15Driver for the AIC-6250 SCSI controller found on AViiON models 100, 200, 300,miod3-0/+2246
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.jsg2-3/+32
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 wasmiod1-13/+21
ported from NetBSD. Tested on hppa (720) and aviion (4600).
2013-10-09Include the 'state of health' field in the bbu ok sensor value.jmatthew1-3/+7
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.miod1-3/+5
2013-10-05Disable interrupts in the interrupt handler. This is what FreeBSD does, andkettenis1-1/+6
it seems to fix the occasional watchdog timeout when using MSI. tested by many
2013-10-01Use %z* for size_tsf3-10/+10
while there, fix a few %d into %u
2013-10-01Don't claim the interrupt if none of the interrupt status bits were set.kettenis1-1/+4
ok deraadt@
2013-09-24Sync the MI LANCE code ( le(4) ) with NetBSD, except for the following:miod7-949/+1857
- 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 initialmpi1-19/+33
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 themiod2-64/+66
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 andlg4-12/+9
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 diffkettenis1-8/+121
is responsible for the hangs seen by Henning. So put them back.
2013-08-07Most network drivers include netinet/in_var.h, but apparently theybluhm34-68/+34
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.kettenis1-10/+29
ok mpi@
2013-07-25Backout flow control support (rev 1.97) and RX TCP/UDP checksum offloadkettenis1-121/+8
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 thekrw1-6/+1
variable the message doesn't make much sense. Reported by Maxime Villard.
2013-07-09pay attention to the #ifdefderaadt1-12/+9
2013-07-09move AHCI_DEBUG stuff into ahci.c so we can build with it enabled againjmatthew2-14/+16
ok dlg@
2013-07-06Use wsemuldisplaydevsubmatch.kettenis1-16/+3
2013-06-12Add suspend/resume support to lpt. Basically, ensure that DACT_SUSPENDderaadt2-12/+79
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 trulymiod3-0/+1175
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 tooderaadt4-8/+8
ok otto