summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2009-10-31in the absense of link state handling, drivers should still be silent; ok miodTheo de Raadt
2009-10-31Use suser when possible. Suggested by miod@.Federico G. Schwindt
miod@ deraadt@ ok.
2009-10-31Add missing KNOTE() calls after selwakeup(), until we decide if the KNOTE()Theo de Raadt
calls can go directly into selwakeup() safely long discussion with nicm, murmers of consent from tedu and miod, noone else seems to care of kqueue is busted as long as it makes their sockets move data fast... pretty sad.
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-23enable event handling on sas hbas and ignore unhandled events. this turnsDavid Gwynne
on sas hotplug. you can add and remove drives and the kernel will handle it now.
2009-10-23Update links to 82802 datasheets.Jonathan Gray
2009-10-23if you're attempting to detach multiple devices (eg, many targets,David Gwynne
many luns, or the entire bus), dont report ENXIO as an error to the caller. this broke autoconf when it tried to forcefully remove a bus such as umass and it thought there was a failure. this introduces a way for scsi hbas to call activate/deactivate on a device based on its target/lun address via a call to scsi_activate(). they can then schedule the actual detach/attach in a thread later via scsi_req_probe/detach. the mpi changes tweak the sas event handling code to use these apis to properly handle attaches and detaches of disks. event handling is still disabled till i can make it less chatty. umass breakage reported by form@
2009-10-23describe some more event data.David Gwynne
2009-10-15Add detach support to a few more drivers, and in others do the neccessaryTheo de Raadt
operations in the detach function in the right order. Also ensure that the interrupt handlers not trust registers that go away. read over very carefully by dms, tested by me
2009-10-15disable interrupt coalescing (aka mitigation) if the chip comes up with itDavid Gwynne
turned on. mitigation on io only slows us down. developed on hardware donated by fox-it.
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
2009-10-11let page requests sleep instead of polling for completion. not used justDavid Gwynne
yet...
2009-10-05Add some minimalistic detach/unmap bits for pciide,Jonathan Gray
done using a chipset unmap callback. Still needs to work to distinguish between compat register mappings and compat interrupts so we don't get caught out. Tested with a diskless sii3112 CardBus eSATA controller by me, and testing and feedback by deraadt@ with a phison based expresscard SSD.
2009-10-03Driver for the SD/MMC part of the Winbond W83L518D/W83L519D Integrated MediaMark Kettenis
Reader.
2009-09-30Need to scsi_done() before returning COMPLETE for untranslated commands,Miod Vallat
such a Test Unit Ready; found the hard way by jbg@, and inexplicably missed during dlg@ and I audit of hba drivers behaviour.
2009-09-24In trm_scsi_cmd(), in an splbio() protected block, don't bother doing splx()Miod Vallat
and splbio() around a simple timeout_set() call, it won't gain us anything. ok dlg@ krw@
2009-09-23do not attach the AR5416 and AR5418 (AR5416 PCIe) to the ath(4)Damien Bergamini
driver as these chipsets are not currently supported. noticed by ian@ "makes sense" millert@ ok jsg@
2009-09-13M_DUP_PKTHDR() define -> m_dup_pkthdr() function to properly dealKenneth R Westerback
with m_tag_copy_chain() failures. Use m_defrag() to eliminate hand rolled defragging of mbufs and some uses of M_DUP_PKTHDR(). Original diff from thib@, claudio@'s feedback integrated by me. Tests kevlo@ claudio@, "reads ok" blambert@ ok thib@ claudio@, "m_defrag() bits ok" kettenis@
2009-09-05Change the wsdisplay_emulops return types from void to int; emulops will nowMiod Vallat
return zero on success and nonzero on failure. This commit only performs mechanical changes for the existing emulops to always return zero.
2009-09-04Missing scsi_done() in some error path returning COMPLETE; ok dlg@Miod Vallat
2009-09-03call scsi_done before returning COMPLETEDavid Gwynne
2009-09-03must call scsi_done before returning complete.David Gwynne
2009-08-29Add forward declaration for struct to_softc such that the firmware builderMark Kettenis
compiles without warnings again.
2009-08-29Split the ti(4) driver into mostly bus-agnostic code and PCI-specificMark Kettenis
attachment. Add SBus support to the bus-agnostic code.
2009-08-29remove more unneeded Debugger() calls from dev/Jasper Lievisse Adriaanse
agreed by deraadt@ ok jsing@
2009-08-28remove a bunch of unused Debugger()s.Jasper Lievisse Adriaanse
ok krw@ miod@
2009-08-27Bring in NetBSD's rev 1.45 by Matthias DrochnerJonathan Gray
'Reduce polling of the keyboard controller status by a factor of 1000. While on real hardware hardware a poll cycle takes time in the microsecond order of magnitude, a "legacy-free" system which emulates the KBC in BIOS code takes milliseconds -- I'm seeing a multi-minute delay in booting where the KBC is probed. So poll less and use delay() to compensate so that the total wait time stays about the same.' Noticeably helps some machines that do SMM based pckbc. Tested by miod on alpha glass console. ok miod@
2009-08-25Legacy-free PC hardware do not have a real PS/2 keyboard controller, butMiod Vallat
rather have the USB HCI emulate it during boot, while legacy mode is enabled. This causes pckbd0 to attach as the console device, but is lost as soon as the USB HCI driver attaches. The disappearance of the emulated PS/2 controller can however be detected in pckbc(4) - which is supposed to attach after [eou]hci(4), with the controller refusing to ack commands and replying ``please resend'' instead. In that case, the kernel will now no longer attach pckbd, and will perform a new console input device selection, allowing the (real) usb keyboard to become the console. Thanks to krw@ for countless tests on legacy-free hardware; also tested on more conventional hardware by naddy@ and I. Only amd64 and i386 platforms are affected by this change.
2009-08-25Don't setup multicast when in promiscuous mode. From Brad.Stuart Henderson
This was in the diff Brad sent to tech@ and had tested by others and should have been in my previous commit, but I was working from and testing an earlier version of the diff. I've retested with multicast/promisc on my dual 82550.
2009-08-16remove use of BITS and BIT macrosJonathan Gray
2009-08-16tweak a switch statement to appease lintJonathan Gray
2009-08-16remove use of BITS and BIT macros.Jonathan Gray
2009-08-16start getting rid of some of these horrific bit macros, removeJonathan Gray
usage of BITS(). There is a binary change due to the way these macros are further used in the MASK_AND_RSHIFT specifically for ATW_SR_RFTYPE_MASK and ATW_SR_BBPTYPE_MASK.
2009-08-13Rewrite part of the promiscuous/multicast handling; tested by myself,Stuart Henderson
naddy@ and several tech@ readers. From Brad.
2009-08-12Let this work with C99 compilers that do not define __GNUC__Jonathan Gray
ok niklas@
2009-08-12Backing store for ega and vga virtual console is not allocated until theMiod Vallat
second vc is created. However, it was allocated using the geometry of the second vc to allocate backing store for the first. Be sure to use the proper values in case geometries differ.
2009-08-12always mark an xs complete if we're about to return COMPLETE to theDavid Gwynne
midlayer. always call scsi_done on the xs too.
2009-08-12though shalt complete the xs (ie, call scsi_done with it) before returningDavid Gwynne
COMPLETE in a scsi_cmd handler. found by thib when testing my midlayer changes.
2009-08-10hook no longer neededTheo de Raadt
2009-08-10This does not need a shutdown function either (though the equilevantTheo de Raadt
to stop is not called because the ioctl function is a masterpiece)
2009-08-10More cases of shutdown hooks not needed after card is already stopped. InTheo de Raadt
these cases the xxstop function is a bit more complicated and has a flag of some sort, but the use of that flag does not matter; DMA is already ceased ok dlg
2009-08-10clear the beacons owner/valid bits to avoid garbage.Damien Bergamini
slightly modified version of a diff from Piotr Durlej. similar to what the vendor driver is doing.
2009-08-10three more shutdown hooks bite the dust.Damien Bergamini
2009-08-09Make ami(4) use NO_CCB at least some of the time.Kenneth R Westerback
"Should never happen but I like it" marco@
2009-08-09MCLGETI() will now allocate a mbuf header if it is not provided, thusTheo de Raadt
reducing the amount of splnet/splx dancing required.. especially in the worst case (of m_cldrop) ok dlg kettenis damien
2009-08-08if the port is fc, populate the adapters scsi_link structure with the wwpnDavid Gwynne
and wwnn so scsibus can use it. requested by and ok deraadt@
2009-08-08if the port is fc, populate the adapters scsi_link structure with the wwpnDavid Gwynne
and wwnn so scsibus can use it. requested by and ok deraadt@
2009-08-03Comment fixes and code tidy-up (whitespace and more consistentStuart Henderson
numeric values) from Brad. No binary change.
2009-08-02timeout_add -> timeout_add_msecBret Lambert
ok mglocker@ jsg@
2009-08-02timeout_add -> timeout_add_msecBret Lambert
ok miod@