summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2011-01-01add code to read OTPROM on the AR9485Damien Bergamini
2011-01-01comment cleanupTheo de Raadt
2010-12-31Reintroduce the code that puts the drive into standby in shutdown, butMark Kettenis
only do this if we're going to power down the machine. "My god, it is a 3 line diff. Commit it before it gets bigger!" deraadt@
2010-12-31make randomattach do the parts of it's job in the right order, then moveTheo de Raadt
it to where it belongs
2010-12-31cleanup the ioctl functionTheo de Raadt
2010-12-31delete includes we do not needTheo de Raadt
2010-12-31further improvements describing what we are doingTheo de Raadt
2010-12-31all random nodes have been arc4-based for a while, so none of them everTheo de Raadt
block. the kq and poll code should have been replaced with "selltrue" type code a while ago. with and ok nicm
2010-12-31when stopping Rx, set the AR_DIAG_RX_ABORT bit too.Damien Bergamini
2010-12-31limit the number of Tx chains used on some 3-stream AR9380 chipsDamien Bergamini
for MCS0~15 to not exceed the PCIe power requirements.
2010-12-31grrr... use the same style in the activate functions than in theDamien Bergamini
surrounding code.
2010-12-31regenDamien Bergamini
2010-12-31cleanup the mess in iwn(4) intel wireless pci ids and add new ones.Damien Bergamini
2010-12-31The firmware we use for the 1020/1020A (SBUS) cards doesn't seem to implementMark Kettenis
the commands necessary to do "big" SCSI commands (e.g. READ_CAPACITY_16). Bail out early on those cards instead of attempting to execute the unimplemented firmware command and failing to recover from it. ok krw@, deraadt@
2010-12-31Add missing scsi_done().Mark Kettenis
ok matthew@, krw@
2010-12-31move reading of the hardware revision earlier.Damien Bergamini
2010-12-31Fix conformance test limit values in default AR9380 rom images.Damien Bergamini
2010-12-31of course, GPIO handling on AR9271 and AR7010 had to be differentDamien Bergamini
from all other chips... quite nightmarish.
2010-12-31commit some bits that will be required by AR9271/AR7010Damien Bergamini
2010-12-31move the printing of the MAC address to the same line than the MAC rev.Damien Bergamini
2010-12-31add initvals for the AR9271.Damien Bergamini
add initvals for the AR9485. update initvals for the AR9380 2.2 (from ath9k): "reduce the likelihood of false pulse detects in the hardware" "improve carrier leak calibration/correction"
2010-12-31Make the athn(4) back-end more bus agnostic by moving read and writeDamien Bergamini
operations to callbacks in the PCI and CardBus front-ends. This will allow support of other buses like USB. Assume the following memory model: - writes are ordered but may be buffered and require explicit flush - a read always flushes all buffered writes
2010-12-30be more cynical about boot-time entropy, and fold time and entropy data in.Theo de Raadt
ok djm
2010-12-30The NVIDIA MCP89 SATA controller found on the 2010 Apple 13" MacBook ProMark Kettenis
can't address block 0xffffffff in LBA mode, at least in combination with the Hitachi HTS545032B9SA02 and HTS545050B9SA02 drives that Apple ships. So use LBA48 mode from that block onwards. ok marco@, deraadt@, miod@
2010-12-30Regen.Antoine Jacoutot
2010-12-30Add the Novatel EU870D HSDPA modem found in (at least) Dell XT.Antoine Jacoutot
ok robert@
2010-12-30cut mfi over to using iopools.David Gwynne
this gets rid of NO_CCB, provides better scheduling of io between busy logical volumes on the same controller, and makes the ioctl and sensor paths more reliable. this is the least intrusive version of this change i could come up with. it only took 4 or 5 goes... ok marco@ deraadt@ says this is a good time for this change.
2010-12-30* do not add timeouts if the driver is dyingJacob Meuser
* use usbd_ref_{incr,decr,wait} to not detach while another process/thread is using the driver * s/usb_rem_task/usb_rem_wait_task/ in detach functions because detach doesn't always happen in the task thread; otherwise a task could be running while the driver detaches * in detach functions, first delete pending timeouts, then wait for processes to be done with the driver before freeing resources ok martynas@
2010-12-30* add a process reference counting variable to struct usbd_deviceJacob Meuser
* add functions to increment and decrement the reference count, and a function to wait until the reference count is zero ok martynas@
2010-12-30backout previous. this is not a regular usb device driver, and thusJacob Meuser
has no usbd_device. found the hard way by deraadt
2010-12-30Only disable I/O and memory space and bus mastering if we're actually goingMark Kettenis
to put the device into D3. Fixes PCI power management issues that prevented acpi (and perhaps apm) suspend on some machines. tested by & ok mlarkin@
2010-12-29knfTheo de Raadt
2010-12-29Since there is only one random_state, we can access it directly withoutTheo de Raadt
the rs-> song and dance. Exactly the same diff was written by djm.
2010-12-29arc4random_count is not used; other things inside rndstats do the accountingTheo de Raadt
2010-12-29the rnd_debug stuff was not usefulTheo de Raadt
2010-12-29kill RND_ARND_OLD, and decrease RND_NODEV to account for it; ok djmTheo de Raadt
2010-12-29Remove the get_random_bytes() API.Theo de Raadt
ok kjell djm
2010-12-29the random ioctl stuff is not very useful. I want to see all theTheo de Raadt
non-essential parts of rnd.c removed so that we can keep our eye on what the code should be doing. ok tedu who had a similar diff in the past
2010-12-29implement timeouts of scsi commands.David Gwynne
timed out scsi commands get put on a list and an iohandler is scheduled. that iohandler pulls the timed out scsi command off the list and issues a task management request to kill all outstanding io on the target with the timed out io. all io killed as a result of this request will be returned to the midlayer with their status set to XS_RESET, which in turn will cause the midlayer to retry the command. this relies on the previous commit.
2010-12-29make mpii properly detach devices, which helps a lot if they have commands ↵David Gwynne
in flight. to relevant changes are: - call the activate(DVACT_DEACTIVATE) function against all the luns on the target that is going away as soon as possible. - issue the target reset BEFORE detaching the children devices. this is needed now tha the midlayer will sleep until all outstanding commands on a device come back from the adapter before calling the child devices attach routine. tested on straight disks and on disks in enclosures. ok and moral support from krw@
2010-12-27cleanup pms_enable_intelli: magic numbers -> definesAlexandr Shadchin
ok krw, miod
2010-12-27remove unneeded MakefileAlexandr Shadchin
ok krw, miod
2010-12-27* add cfattach activate functions and call usbd_deactivate() in theJacob Meuser
DVACT_DEACTIVATE case for drivers that don't have activate finctions * fill out cfattach activate functions and call usbd_deactivate() in the DVACT_DEACTIVATE case for drivers that don't have a dying flag "ok with the intent" miod@
2010-12-26Kill pmap_phys_address(), and force every driver's mmap() routine to returnMiod Vallat
a physical address [more precisely, something suitable to pass to pmap_enter()'sphysical address argument]. This allows MI drivers to implement mmap() routines without having to know about the pmap_phys_address() implementation and #ifdef obfuscation.
2010-12-24fix crash:Alexandr Shadchin
after boot and before the first activation (wsmoused or X), sc->protocol is not initialized, and any call ioctl lead to crash (example 'wsconsctl -a') thanks and ok krw@
2010-12-24try to update the monster comment at the top of this file to explainTheo de Raadt
what it is we are doing ok djm
2010-12-24regenAlexandr Shadchin
2010-12-24Add info for Intel (Core Host), ATI (Radeon HD 5670)Alexandr Shadchin
ok krw@
2010-12-23Add a common interface for various devicesAlexandr Shadchin
This is to make it easier to add additional mice types in future ok krw@, miod@, nicm@
2010-12-23regenJasper Lievisse Adriaanse