summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-03-08Enable qlw(4) on alpha/amd64/i386/macppc/sgi/sparc64 to force people to test.Mark Kettenis
2014-03-08A bit of spring cleaning.Mark Kettenis
2014-03-08Enable tagged queueing.Mark Kettenis
2014-03-08Check the appropriate struct member for the various SDEV_* quirks.Mark Kettenis
2014-03-08Enable DMA bursting. Not sure it actually makes things faster, but bothMark Kettenis
isp(4) and the linux qla1280 driver seem to do this.
2014-03-08Dumb xhci(4) implementation.Martin Pieuchot
This driver does not handle isochronous endpoint (yet) and has no logical TD representation. Each transfer is linked to the raw TRB of its related endpoint. Most of the transfer error completion codes are not handled, even with all the cheese provided by miod@ I couldn't find a proper way to reset an endpoint asynchronously when a device babbles. Or maybe it was the wine? Anyway this will come soon. In general the endpoint configuration and reset code is really crude and requires some love, but our stack should be fixed to properly open only once the default pipe of every new USB device first. This means this driver wont work as it is, our stack needs other changes first. Suspend/resume works but ports are not suspended for the moment. But even with these problems, interrupt devices: ukbd(4), ums(4) and sensors like ugold(4) work properly and USB 3.0 umass(4) devices give me a reasonnable read/write speed. Timeouts to cancel USB transfers are not enabled *on purpose*, to be able to track down potential timing issues. I'm committing now so that others can help fixing my bugs (8 All this work has been done on an ExpressCard with a NEC xHCI 0.96, other implementations/versions might trigger more bugs :)
2014-03-08Recognize super speed devices, note that this driver sill usesMartin Pieuchot
non-superspeed hub descriptors. This is the minimal change I came with to be able to properly attach and use USB 3.0 devices attached to a xHCI root hub, uhub(4) clearly needs some love.
2014-03-08Attach to host controller drivers advertising USB 3.0 support and assignMartin Pieuchot
the correct speed. This has no effect for the moment since there is no such driver in our tree, but something tells me it might change soon.
2014-03-08Add various super speed defines, mostly the same as in FreeBSD toMartin Pieuchot
keep similar userland exported API definitions.
2014-03-08Add defines for upcoming USB 3.0 support.Martin Pieuchot
2014-03-08Pass M_ZERO to malloc(9) when allocating usbd pipes to make sure toMartin Pieuchot
initialize the per-controller part. ok deraadt@, kettenis@
2014-03-07Make sure a SCSI initiator ID provided by Open Firmware overrides the valueMark Kettenis
read from nvram, just like we did for isp(4).
2014-03-07Reduce the number of ccbs by a factor three since we need up to three requestMark Kettenis
entries per SCSI command.
2014-03-07Print the wrong device descriptor's bMaxPacketSize before correcting itMartin Pieuchot
for USB2 devices.
2014-03-07Indtroduce usbd_get_hub_descriptor() to start cleaning uhub(4)'s mess.Martin Pieuchot
This will help us deal with the different hub device descriptors used by super speed devices.
2014-03-07Use the revision number for coherency. No object change.Martin Pieuchot
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-07We already assume global mappings (PG_G) are supported, so pmap_pg_g isPhilip Guenther
unnecessary ok krw@ kettenis@
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-07Remove superfluous 'return'.Gerhard Roth
ok deraadt@
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-03-05Remove TIMEZONE and DST options from GENERIC-* kernels.Miod Vallat
Remove APERTURE, DDB_SAFE_CONSOLE and *_DEBUG from RAMDISK-* kernels. Add option USBVERBOSE to all kernels.
2014-03-05re-enable POOL_DEBUGChris Cappuccio
2014-03-05We are now 5.5-currentChris Cappuccio
2014-02-28guenther's addition of filechk didn't take into account the differentMarc Espie
structure of tmpfs_write. rewrite the opening tests to conform more to ffs's code, so that overrun is not used unitialized. Patch by kettenis@ (on the road) deraadt@ "do it right away"
2014-02-25Do not actually write to the area spanned by the PT_OPENBSD_RANDOMIZE ifMiod Vallat
LOAD_DATA is not set in flags; allows a two-pass kernel load using COUNT_KERNEL and then LOAD_KERNEL to work; similar to sparc loadfile_sparc.c 1.3.
2014-02-25/etc/random.seed support (unless booting from tape). Crank version.Miod Vallat
2014-02-25Put edata after the .openbsd.randomdata phdr, to prevent the former's contentsMiod Vallat
from being bzeroed when locore bzeros what it thinks is the bss.
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-25Check for offset wraparound and enforce RLIMIT_FSIZE.Philip Guenther
problem reported by brad@ ok kettenis@ millert@
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-24/etc/random.seed support in da bootblockz.Miod Vallat