summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2010-09-21tweak the sas io unit to use 32 openings when talking to sata disks if theDavid Gwynne
firmware has it configured lower.
2010-09-21Stefan Rinkes pointed that the disabled aac(4) driver does not compileKenneth R Westerback
with gcc4. Use his diff to make it compile. Submitted & tested by Stefan Rinkes. Thanks!
2010-09-21Get rid of physio(9) in wdc(4)'s ioctl(2) handler. Based on similarMatthew Dempsky
changes to the SCSI subsystem ioctl(2) handlers. ok dlg@; ok and tweaks krw@; no objections jsg@
2010-09-21mclgeti() support for xl(4). All done by Loganaden Velvindron.Claudio Jeker
Tested by various people on tech@. OK dlg@, deraadt@ and myself
2010-09-20Stop doing shutdown hooks in network drivers where possible. We alreadyTheo de Raadt
take all interfaces down, via their xxstop routines. Claudio and I have verified that none of the shutdown hooks do much extra beyond what xxstop was already doing; it is largely a pile of junk. ok claudio, some early comments by sthen; also read by matthew, jsg
2010-09-20Use SSD_ERRCODE_CURRENT instead of magic 0x70.Kenneth R Westerback
ok dlg@ matthew@
2010-09-20bus_dmamap_sync was using xs->flags to determine which directionDavid Gwynne
to sync the map. unfortunately xs is not set for internal ciss commands, so this is a null deref. it wasnt until kettenis made bus_dmamap_sync a real function which needed its arguments evaluated that this became a real problem though. hit by mcbride@ and sakurai-san. fixed by krw@ over my shoulder when we figured out which specific chunk of code was faulting. tested by sakurai-san ok krw@ deraadt@
2010-09-20After the gcc4 switch the stack protector triggers in atwJonathan Gray
when a buffer is overflowed. Fix this and increase the size of the rate buffer (which is still < IEEE80211_RATE_MAXSIZE due to hardware restrictions) while here. ok claudio@ damien@
2010-09-14allow devices on fc and sas adapters to use all the openings the chip canDavid Gwynne
provide. spi parts are still limited. ok krw@
2010-09-13if a busy sas device is unplugged, the pending io on that device willDavid Gwynne
never complete. when we get a detach event from the firmware, we currently deactivate the device and then request the scsi midlayer attempt to detach the device. this diff now deactivates the device and then resets the target, forcing the ioc to complete the pending operations. once the reset has completed we then request a detach of the kernel device. this lets me hotplug busy sas disks without leaking scsi_xfers or bufs or anything.
2010-09-13dont reuse the event notifications ccbs id for the acknowledgement.David Gwynne
2010-09-13im not convinced we only have one outstanding event to ack at a time. thisDavid Gwynne
steals^Wleverages the code used in mpii for handling a list of events to acknowlede. tested by hotplugging sas disks.
2010-09-13sas io unit page 0 and 1David Gwynne
2010-09-10implement handling of rescan events on fc controllers. allows "hotplug" ofDavid Gwynne
fc devices.
2010-09-10#defines for the bits inside the flags field in mpi_cfg_fc_port_pg1David Gwynne
2010-09-07remove the powerhook code. All architectures now use the ca_activate treeTheo de Raadt
traversal code to suspend/resume ok oga kettenis blambert
2010-09-06All PWR_{SUSPEND,RESUME} can now be replaced by DVACT_{SUSPEND,RESUME}Theo de Raadt
2010-09-06Make the interrupt handler bail out early if the device wen away. FixesMark Kettenis
freezes that occur when removing CardBus cards when the interface is up. ok deraadt@
2010-09-06initialize rv to 0 in the activate functionTheo de Raadt
2010-09-06initialize rv to 0 in the activate functionTheo de Raadt
2010-09-03fix initialization value of analog register AR_AN_TOP2 on some highDamien Bergamini
power AR9220 adapters. this should fix at least Ubiquiti SR71-12 and Winstron DMNA92 adapters. problem reported by Giuseppe Scalzi and Alex Dervish fix tested by Giuseppe Scalzi with a Winstron DMNA92
2010-09-02the page_length field in the vpd page header is 2 bytes, not 1.David Gwynne
ok krw@ marco@ matthew@
2010-08-31Add DVACT_QUIECE support. This is called before splhigh() and beforeTheo de Raadt
DVACT_SUSPEND, therefore DVACT_QUIECE can do standard sleeping operations to get ready. Discussed quite a while back with kettenis and jakemsr, oga suddenly needed it as well and wrote half of it, so it was time to finish it. proofread by miod.
2010-08-31activate function should return result of config_activate_childrenTheo de Raadt
2010-08-30activate functions, when they do not add value, should return the result of ↵Theo de Raadt
config_activate_children
2010-08-30ioctl versus resume-workq exclusion; cloned from iwnTheo de Raadt
2010-08-29the scsi completion code thinks that if you dont get MFI_STAT_OKDavid Gwynne
back from the chip on a command then the command completely failed. MFI_STAT_SCSI_DONE_WITH_ERROR really means the command completed fine, but there's some sense data too. this tweaks the handling to be more appropriate, as per the linux and solaris drivers. timed out waiting for beck@ putting this in cos its obviously more correct than the current code.
2010-08-29pcmcia/wdc_pcmcia.cTheo de Raadt
2010-08-29expose dp8390_enable/disable to the higher level driversTheo de Raadt
2010-08-29Massage the powerhook functions into activate functions, and then callTheo de Raadt
them from the powerhook. Fix a few quibbles about the things done for the IFF_RUNNING and IFF_UP cases ok kettenis
2010-08-28rename the *_power functions to *_powerhook to indicate that we've beenTheo de Raadt
here already for the activate/powerhook cleanup
2010-08-28ansify function definitions, and constify a few arrays while there.Miod Vallat
no functional change.
2010-08-27Move the activate function from pci to the the main driver, so that theTheo de Raadt
powerhook can use it ok kettenis
2010-08-27Massage the powerhook function into an activate function, and since we doTheo de Raadt
not neccessarily have a working filesystem for the firmware yet, use a workq to postpone resume. Then make the powerhook function call the activate function. There remains some questions about the sc_power functions... ok kettenis
2010-08-27Move the dc_pci_activate function to dc.c, and mangle it up with some ofTheo de Raadt
the gunk in dc_powerhook. Then make dc_powerhook just call it ok kettenis
2010-08-27Get rid of the clumsy pci_activate function and do this job inside ath.cTheo de Raadt
so that the powerhook wrapper can get at it ok kettenis
2010-08-27Since the pci-specific activate function does nothing, move it to fxp.c.Theo de Raadt
Then it is possible for fxp_powerhook to use it.
2010-08-27remove the unused if_init callback in struct ifnetJonathan Gray
ok deraadt@ henning@ claudio@
2010-08-27Stop calling xxx_power() from xxx_resume(); instead do it the other way around.Mark Kettenis
Get rid of the sc_power() callback, which isn't used anymore. ok deraadt@
2010-08-27Move the xl_pci_activate function into xl_activate so that it is in theTheo de Raadt
sub-driver, and then xl_powerhook can simply be a wrapper around it ok kettenis; discussion about nested structure aliasing with miod
2010-08-27gem never had any powerhook supportTheo de Raadt
2010-08-27get some format strings and variables right in debug outputDavid Gwynne
2010-08-27kill PWR_STANDBY (apm can use PWR_SUSPEND instead). While here, renumberTheo de Raadt
PWR_{SUSPEND,RESUME} so that they match the values of DAVCT_{SUSPEND,RESUME} so that we can eventually (many more steps...) kill the powerhook garbage and use the activate mechanism. no objections
2010-08-25Make CardBus ral(4) suspend and resume properly on machines that keep theMark Kettenis
CardBus bridge powered up during suspend. Step zero on the long road towards fully suspending CardBus on all machines. ok deraadt@, damien@
2010-08-25try giving all devices on ami access to all the ccbs. iopools will shareDavid Gwynne
them out safely.
2010-08-20add format strings implied by surplus argumentsJonathan Gray
found via the clang static analyser
2010-08-18fix a test that prevents division by zeroDamien Bergamini
restore the 100us delay after writing to an analog register since it turns out that it is required.
2010-08-18- in STA mode, when associated, stop receiving beacons from other BSS.Damien Bergamini
tested by ray@ - no periodic PA calibration for the Osprey (AR9380)
2010-08-12Enable periodic (every 4 minutes) power amplifier calibrationDamien Bergamini
on AR9285 and AR9287.
2010-08-12no need to set these pointers to NULL, softc is already zeroed.Damien Bergamini