summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2009-12-10fix a theoretical (but not possible) array bound overflow.Owain Ainsworth
since we will always match on a rate, we won't overflow, but in that case, make it more obvious by if the first 11 rates don't match, we assume the 12th. should shut up parfait. ok damien@ who came up with an identical diff.
2009-12-10remove dead assignment and newly created unused variable.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok dlg@ marco@
2009-12-10remove dead assignment and newly created unused variable.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok krw@ marco@
2009-12-09Stop spamming dmesg when raid isn't available.Marco Peereboom
2009-12-07get rid of the return codes from command submission, ata_cmd handlersDavid Gwynne
now return void. all state about a command is now represented within the ata_xfer structure, and all layers using it (both hba and atascsi) now check only ata_xfer. this relies on my scsi midlayer changes. it was written just before the second last backout of the midlayer.
2009-12-06Nuke SCSI_URGENT after removing its only use, in ncr53c9x.c. That useKenneth R Westerback
was to try to play dangerous games with tagged queuing. ok marco@
2009-12-06change M_WAITOK --> M_WAITOK|M_CANFAILCharles Longeau
with input from marco@ "that i like" marco@ ok dlg@
2009-12-05Use the correct member of the ieee80211com struct when testingJonathan Gray
if the current mode is 802.11a or 802.11b. found by gcc svn. ok damien@
2009-12-01put the midlayer changes back in.David Gwynne
the two issues affecting it last time are gone. the first, mishandling of TRY_AGAIN_LATER is not relevant now that krw got rid of TRY_AGAIN_LATER. the second, the misbehaving IBM disk was found to be a problem with siop using ordered tags on most ops combined with the speed of the new code. putting this in so we can move forward. ok krw@ "commit please" marco@
2009-11-29unbreak compilation on sparc64 with AUDIO_DEBUG definedAlexandre Ratchov
2009-11-26Don't try to be clever and mix tag queueing mechanisms. Few if anyKenneth R Westerback
disks actually do queueing correctly. Keep it SIMPLE. Fixes naddy@'s magic DNES disks on siop even if dlg@'s new midlayer is active. ok marco@, tested by naddy@.
2009-11-25fix previousDamien Bergamini
2009-11-25single-stream parts (AR9285) have a hardware bug that limits theDamien Bergamini
usable size of the PCU TX FIFO to 2KB even though the hardware has 4KB.
2009-11-24Correct the copy out of the packet into the mbuf. We need to loop orClaudio Jeker
non-even packets will end up being a bit trunkated. OK deraadt@
2009-11-24Reset the chip an re-initialise the interface after reset. Resetting theMark Kettenis
PHY doesn't seem to be necessary on re(4) so don't descend further for now. Based on a diff from mlarkin@ ok deraadt@
2009-11-24kill hooks and timeouts before calling complex sleeping code from detach; ok jsgTheo de Raadt
2009-11-23in detach, get rid of powerhook before doing sleeping operationsTheo de Raadt
2009-11-23little annoying knfTheo de Raadt
2009-11-23prevent interrupts storm when the radio switch is turned off whileDamien Bergamini
the interface is up and running by properly clearing the condition.
2009-11-23move things from athn_attach() to athn_init() such that we canDamien Bergamini
power off the cardbus slot after athn_attach() and in athn_stop().
2009-11-23cleanup athn_set_key (not used yet.)Damien Bergamini
2009-11-23remove a global that i used to test protection modes.Damien Bergamini
2009-11-23Bring elink3 at least a bit into the new world. It used to have some superClaudio Jeker
scary mbuf chache that caused massive problems. Now we just pre-allocate empty mbuf cluster for later use. Diff mostly from deraadt@ with some minor changes by myself. Tested with pcmcia ep(4) by myself. OK deraadt@
2009-11-22Bring last drivers fully into the NO_CCB world by replacingKenneth R Westerback
TRY_AGAIN_LATER uses with equivalent NO_CCB. Eliminates confusion between the two as was always intended. buf I/O's that can't be started get pushed back onto the front of the queue and retried. Others get sent back to originator as failures. No more epi-cycle looping inside the SCSI midlayer hoping the problem goes away. Various testers, no objection from miod@ as vs(4) was tested by nick@.
2009-11-22Probe modes for SATA disks, makes CF behind SATA work and givesJonathan Gray
more speed to things like SSDs that do UDMA 6. Tested by many.
2009-11-22fix RTS/CTS and CTS-to-self protection modes.Damien Bergamini
fix 802.11a TXTIME computation (802.11a has a 16us SIFS interval but does not have the 6us signal extension that ERP-OFDM has so we can use the same code for 11a and 11g provided that we add the SIFS nterval in the athn_txtime() function itself.)
2009-11-21tyypoMiod Vallat
2009-11-21make the led blink during a scan.Damien Bergamini
prodded by deraadt
2009-11-21debug offDamien Bergamini
reminded by deraadt
2009-11-19if a radio switch exists, configure the GPIO pin to which it isDamien Bergamini
connected to raise an interrupt when the pin goes low (or high depending on the polarity of the radio switch.) turn the interface down when the interrupt occurs. this is the same behaviour as in wpi(4) and iwn(4). cleanup interrupts processing while i'm here. remove ATHN_INTR_MITIGATION compile option (it is set by default.)
2009-11-19fix for some variants of AR9285.Damien Bergamini
found while doing code inspection as i don't have such hardware.
2009-11-18* always move the same amount of data (256 frames) in the interrupt handlerJacob Meuser
* round blocksizes to multiples of 256 frames * fix display of record.source.volume and add record.mic.preamp mixer controls * add recording support ok kettenis@. ok ratchov@ on a slightly different version.
2009-11-18panic on impossible error codeAlexander Hall
potential off-by-one found by parfait ok deraadt@, krw@
2009-11-17fix a DPRINTF format string.Damien Bergamini
2009-11-17cleanup the printf/DPRINTF mess.Damien Bergamini
use proper debug levels for diagnostic messages such that we don't spam the logs when athn_debug is low.
2009-11-17fix previous.Damien Bergamini
2009-11-17update hardware multicast filter.Damien Bergamini
2009-11-17add short interframe space to duration since the athn_txtimeDamien Bergamini
function does not take it into account. oops.
2009-11-16it is better if it compiles.Damien Bergamini
2009-11-16do not panic when wep is enabled.Damien Bergamini
2009-11-16Fix array access found by parfait and switch to nitems while here.Jonathan Gray
ok deraadt@
2009-11-15Move ciss(4) to NO_CCB. Add some extra paranoia by always testingKenneth R Westerback
the results of attempting to get a ccb. Eliminates manual reservation of ccb's for bioctl and sensors. Tested by johan@ and okan@. Eyes from brad@, dlg@ and marco@. tech@ did its Thomas More thing.
2009-11-15AR9287 uses GPIO pin 8 for LED, not 1.Damien Bergamini
Turn link LED on while associated.
2009-11-15fix athn_stop_tx_dma().Damien Bergamini
2009-11-14translate a comment from french to english.Damien Bergamini
no binary change.
2009-11-14make ramdisks compileTheo de Raadt
2009-11-14athn(4), a driver for Atheros 802.11a/g/n devices.Damien Bergamini
written from scratch based on the vendor driver for Linux (ath9k). AR9285 and AR9287 parts are 100% untested. only basic functionnalities are enabled for now. committed over an AR9281. "commit" deraadt
2009-11-13Remove an unnecessary assignment. From NetBSD via Brad.Stuart Henderson
2009-11-12memory leak found by parfait in an ioctl path, ok damien jsgTheo de Raadt
2009-11-12revert midlayer back to it was before i put my big rewrite in. this isDavid Gwynne
causing a weird problems on an alpha and also appears responsible for isp(4) weirdness i havent had a chance to examine yet. sigh, this makes me sad.