summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2014-03-07Do not define per-driver DEBUG variable when USB_DEBUG is defined. It'sMartin Pieuchot
really impossible to debug the USB stack when any single device you plug in your machine starts to vomit its own poetry,
2014-03-07Provide the appropriate default values for the SCSI initiaror ID on sgi andMark Kettenis
sparc64.
2014-03-07Transfer descriptors already have a back pointer to the USB deviceMartin Pieuchot
descriptor they are linked to, so no need to dereference their pipe pointer. Simplify a lot of affectations, no functional change. ok pirofti@
2014-03-07We already have three identical copies of the *hci_str() function,Martin Pieuchot
so merge them into usbd_str() to not introduce other copies with the upcoming HC drivers.
2014-03-07Duplicate enum values are a bad idea.Mark Kettenis
2014-03-06Turn usbd_xfer_isread() into a public function so that we can useMartin Pieuchot
it in various drivers, mainly HC, instead of always rerolling our own.
2014-03-06Add include guards.Martin Pieuchot
2014-03-06Makes the "cleartoggle" function provided by HC drivers optionalMartin Pieuchot
because upcoming xhci(4) driver won't use it.
2014-03-06Make sure we don't attach to those silly AMI MegaRAIDs that expose theMark Kettenis
ISP12160 they're using as their underlying SCSI controller.
2014-03-06Set the correct clock rate for ISP1020/1020A.Mark Kettenis
2014-03-06Cleanup dead code.Gerhard Roth
ok mikeb@
2014-03-05force cfattach decl to same form as othersTheo de Raadt
2014-03-05Make this compile on sparc64 too.Mark Kettenis
2014-03-05Introduce qlw(4), a new driver for QLogic ISP SCSI HBAs. For now onlyMark Kettenis
supports the PCI variants; SBUs support will follow. Works reasonably well now. Others are encouraged to test it.
2014-03-05Raise the delay before initializing sdmmc. Still a hack so the XXX stays,Stuart Henderson
but at least lets the reader on X220 work pretty reliably, rather than about 1/4 of the time. ok stsp@
2014-02-25Wait for the RIRB DMA engine to come ready. Needed on the audio deviceMark Kettenis
integrated in the Vortex86EX SoC. Based on a diff by sasano@. ok tedu@
2014-02-25Abort and close all the interrupt pipes when detaching HID devices sinceMartin Pieuchot
drivers attaching to uhidev(4) do not always do it. Seems to fix one of the transfer aborting races triggering a lot of "ehci_idone: ..." vomit upon resume. Reported by and fix tested by Ville Valkonen, ok deraadt@
2014-02-25convert most printfs into DPRINTFs to cut down on dmesg spam, and addJonathan Matthew
some missing format arguments pointed out by jsg@
2014-02-25match on Atom C2000Jonathan Gray
ok deraadt@
2014-02-25regenJonathan Gray
2014-02-25add Atom C2000 devices and a few othersJonathan Gray
ok deraadt@
2014-02-25Some broken BIOSen don't assign an address to the ROM BAR. Fix this up, as weMark Kettenis
typically need to be able to map the ROM to get connector information and/or to POST the card. ok deraadt@
2014-02-24Reduce dmesg spam. Apologies to stsp@ for rejecting his larger diff thatMark Kettenis
contained this bit. ok deraadt@
2014-02-24Revert rev 1.348 and disable IPv6 TCP checksum offload for the time being.Brad Smith
It has been reported that the offload support is not working properly with some of the newer ASICs, specifically BCM57780 and BCM57765. It is unknown what the issue is whether it could be hw, the driver or the stack; so to be on the safe side it is being disabled all together until the issue can be investigated further. ok deraadt@
2014-02-24Partially revert r1.134, bring back the code suspending root hub's portsMartin Pieuchot
before reseting the controller in order to save power when the machine is suspended. ok deraadt@
2014-02-24regenDavid Gwynne
2014-02-24PLX 8724 as found on LSI SAS9206-16E boards.David Gwynne
ok deraadt@
2014-02-23when built without firmware, check that the chip already has firmwareJonathan Matthew
before trying to boot it, so we can explain why it's not working rather than printing cryptic errors.
2014-02-23Give drm(4) a console locator just like wsdisplay(4) such that we can makeMark Kettenis
sure /dev/drm0 always matches the primary display. ok mpi@
2014-02-23rework firmware handling a bit. when built without firmware, check thatJonathan Matthew
the chip already has firmware before trying to boot it, so we can explain why it's not working rather than printing cryptic errors.
2014-02-22refactor firmware loading with a function pointerTheo de Raadt
ok jmatthew
2014-02-22basic i210/i211 support (improved after looking at gollo@ i210 diff on misc)Chris Cappuccio
tested on Supermicro X10SLL ok jsg@
2014-02-21Do the lid control further on in the resume sequence, since this isTheo de Raadt
AML, and will do WAITOK operations. While cold, that is a bad idea. We seem to be safe with respect to the spec, I do not see any event debounce issues here. ok kettenis, tested by many
2014-02-21these two drivers should be doing their repair at DVACT_WAKEUP timeTheo de Raadt
rather than DVACT_RESUME in snapshots for a long time, looked at by pirofti kettenis mlarkin
2014-02-21spacingTheo de Raadt
2014-02-21remove stray printf; ok piroftiTheo de Raadt
2014-02-20Remove some code that has no effect.Mark Kettenis
2014-02-20More turd shining; cleanup the message that prints the firmware revision andMark Kettenis
attributes. ok dlg@, jmatthew@
2014-02-20revert previous commit; didn't intend to commit those bitsMark Kettenis
2014-02-20Avoid printing the "nvram corrupt" message for onboard 2200s found on SunMark Kettenis
hardware. ok dlg@, jmatthew@
2014-02-20jsg@ pointed out i am bad at loops.David Gwynne
2014-02-20knfDavid Gwynne
2014-02-20pull the isr reads out into per chip variants we get to via pointersDavid Gwynne
in a per generation structure. this avoids code on every isr to figure out what version of the chip we are, which is silly since we know that at attach time. ok jmatthew@
2014-02-19Unbreak the tree; include <machine/atomic.h> instead of relying on somethingMark Kettenis
else bringing it in. Found out the hard way by florian@
2014-02-19tweak the response queue handling so it looks like qle. the importantDavid Gwynne
bit is to post to the resp_out register once outside the loop rather than inside every loop. rework the code for finding the queue registers so its done once on attach by pointing the sc at a map, rather than running big conditionals in code on every register operation based on teh chip version. tested on 2200s by me and 2312s by jmatthew@ ok jmatthew@
2014-02-19the RESP_IN register is 32bits, so consistently use a u_int32_t toDavid Gwynne
handle it. ok jmatthew@
2014-02-19massage the response queue handling a bit:David Gwynne
break if we've already handled the queue rather than printf something. complete all the pending entries before posting what we've done instead of after each entry. ok jmatthew@
2014-02-19qle seems fine with msi interruptsDavid Gwynne
ok jmatthew@
2014-02-19remove some dead code - all the chips we handle can do type 4 commands,Jonathan Matthew
which means we don't need to use sgl continuation command buffers. this keeps things much simpler on the iopool side of things.
2014-02-19drm/radeon: 0x9649 is SUMO2 not SUMOJonathan Gray
From Alex Deucher 9f920083d1b766e795acbddf0dbd766a4291c5d6 in ubuntu 3.8 d00adcc8ae9e22eca9d8af5f66c59ad9a74c90ec in mainline linux