summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2011-04-04Kill some #if 0'ed code (the 'raw' scsi path). Move splx()Kenneth R Westerback
to before scsi_done(). This doesn't mean aac will ever enabled! ok dlg@
2011-04-04detach happens after the hardware is gone, so don't try to touchJacob Meuser
the hardware in the detach path
2011-04-04the v4l2 spec says that setting time per frame to zero should reset timeJacob Meuser
per frame to the default, so do that instead of returning EINVAL
2011-04-04Hit this code with a big hammer. It now works on the X201/T510 seriesTheo de Raadt
machines after warm boot or resume. Some of the checks being made were nonsense. Also tested by claudio and guenther. ok jsg
2011-04-04The backplane version of the 82575EB has no link state -- it's alwayswilliam
up. From FreeBSD. ok jsg claudio
2011-04-03pirofti made me look at wd(4) code, which made me sad.David Gwynne
increase the timeout on io from 10s to 45s. ata says we should wait 30, but i am cynical. this gives loongson disks enough time to wake up on resume.
2011-04-03put iopools back in. ok gccDavid Gwynne
2011-04-03back iopools out, it was never compiled.David Gwynne
2011-04-03Another driver made safer for big mem by dma_alloc/dma_free'ingKenneth R Westerback
memory used for i/o. ok dlg@ deraadt@
2011-04-03get rid of NO_CCB by moving to iopools.David Gwynne
"be brave" k2k11
2011-04-03move twe over to iopools so we can get rid of another NO_CCB user. thisDavid Gwynne
also cuts the aen drain over to using an iohandler so it can be made reliable. this compiles, but i havent got hardware to test with. its going in as a way to force testing. if there's a problem with the code then let me know or back it out. "man up" k2k11
2011-04-03Sprinkle spltty around code which plays with either the video memory orMiod Vallat
the backing store. The state of a VT is only coherent if both the active flag and the backing store are in order, which is not the case during VT switches. This fixes display glitches occuring during VT switches if one of the VT involved is doing a lot of tty updates. Noticed by deraadt@ on a machine too fast for mere mortals.
2011-04-03use nitems(); no binary change for drivers that are compiled on amd64.Jasper Lievisse Adriaanse
ok claudio@
2011-04-03No need to include uvm/uvm_extern.h and fix a typo.Claudio Jeker
Both found by miod@
2011-04-03Safer, big mem friendly, allocation of ATAPARAMS buf that is theKenneth R Westerback
target of DMA. ok deraadt@ dlg@
2011-04-03Iopoolification of some less common scsi drivers.Kenneth R Westerback
ok dlg@ ("miod will not object" dlg@)
2011-04-03Use a own "bounce buffer" that is used to send and receive packets.Claudio Jeker
This allows bce to run properly on systems with more then 1G of physical memory. It also makes the driver a lot simpler since the DMA rings are now mostly static. bce is short for bcopy ethernet. OK dlg@, just commit it deraadt@
2011-04-02- use nitems(); no binary change@Jasper Lievisse Adriaanse
ok jsg@
2011-04-02Move P_SUGID and P_SUGIDEXEC from struct proc to struct process, soPhilip Guenthe
that you can't evade the checks by doing the dirty work in an rthread ok blambert@, deraadt@
2011-04-02Remove bufqs from vnds, as the disk that houses the imageThordur I. Bjornsson
backing the vnd also has a bufq. So the buf is just passed between the vnd bufq and the disk bufq (almost immediately). Also see previous revision for more insight. OK deraadt@, dlg@
2011-04-02Safer, big mem friendly, allocation of identify buf that is theKenneth R Westerback
target of DMA. ok dlg@ deraadt@ thib@
2011-04-02correctly handle data underruns. this makes things like ses(4) and safte(4)David Gwynne
work (they send big buffers to devices and expect less so they dont have to do two ops for one read), and would make lun probes work again, etc. based on the solaris code supplied by lsi.
2011-04-02Kill a lot of spaces and make this a bit more KNF. No binary change.Claudio Jeker
2011-03-31just report the frame interval in the same terms the device gives us.Jacob Meuser
previously, this was returning the wrong value (frame rate instead of time per frame, d'oh!).
2011-03-31Don't process packets where the USB xfer length is shorter than a packetMichael Knudsen
header, and don't process packets where the packet header length field says the packet is longer than the size of the USB xfer. While there, fix a debug print that was missing the device name from the parameter list, causing it to crash when enabled. Also, use correct MTU from datasheet. From Loganaden Velvindrom with input from me. Tested by kili. ok jasper sthen (with a whitespace nit)
2011-03-31- use nitems(); no binary change.Jasper Lievisse Adriaanse
ok fgsch@
2011-03-28Add mlphy(4) a driver for the MicroLinear 6692 Ethernet PHYs.Claudio Jeker
The PHY is only 100Mbps capable and needs a copanion chip for 10Mbps mode. Only a few tl(4) seem to ship with it. Ported and tested by Loganaden Velvindron OK sthen@
2011-03-26oops. the frame rate is the inverse of the frame interval. fixesJacob Meuser
setting the frame rate with luvcview.
2011-03-26use 'sizeof(struct usb_video_frame_desc)' instead of a hardcodedJacob Meuser
number
2011-03-26fill in the timestamp when copying a frame into the mmap bufferJacob Meuser
2011-03-26fill in support for VIDIOC_ENUM_FRAMEINTERVALSJacob Meuser
2011-03-26support VIDIOC_S_PARM and VIDIOC_G_PARM. these ioctls are used forJacob Meuser
setting and and getting the frame interval.
2011-03-26print the supported frame intervals when printing the frame descriptorJacob Meuser
2011-03-25* don't try to align our array of frame descriptors with theJacob Meuser
frame descriptor's bFrameIndex field. the first valid frame in the array is at index 0, not 1. * don't change the format group's default frame when configuring the device, and don't use the default frame as the current frame: these are what the format group's 'frame_cur' is for. tested by several as part of larger diff
2011-03-25* the mjpeg and uncompressed video frame descriptor structures areJacob Meuser
equivilent. only define one structure, struct usb_video_frame_desc, and handle both types of frame descriptors in the same code. * replace hardcoded numbers with 'sizeof(struct usb_video_frame_desc)' where the numbers represent the size of a frame descriptor tested by several
2011-03-25* empty the queue of frames in the mmap frame buffer and set theJacob Meuser
index of the current frame to -1 when the mmap frame buffer is free'd * set the index of the current frame to 0 when allocating the mmap frame buffer * paranoia: panic if a) the mmap frame buffer is already allocated when we try to allocate it, or b) the mmap frame buffer is not allocated when we try to add frames to it tested by several
2011-03-23regenJonathan Gray
2011-03-23add a bunch of new em/ix devices found in intel driversJonathan Gray
2011-03-23renegade tabs, no binary changeMarco Peereboom
2011-03-23only read from the UART if there is something to read. fix beagle, otherwiseFederico G. Schwindt
it will crash with 'External Non-Linefetch Abort (S)'. similar diff provided by drahn@. tested by jasper@, deraadt@ ok.
2011-03-22silently clear the endpoint when the device has failed; ok jakemsrTheo de Raadt
2011-03-22Support for NetMos Nm9922 dual serial port cardsMike Larkin
ok deraadt@
2011-03-22Support for NetMos Nm9922 dual serial port cardsMike Larkin
ok deraadt@
2011-03-22Support for NetMos Nm9922 dual serial port cardsMike Larkin
ok deraadt@
2011-03-20Update URI to data sheet. New location found on www.davicom.com.tw butMichael Knudsen
points to some other domain for some reason. Noticed while looking into a udav(4) issue with Loganaden Velvindron. OK jasper
2011-03-20changes the values of boolean comparisons from 0:1 to 0:-1 (from ACPI Spec) ↵Jordan Hargrave
in order to fix an AML issue on some Asus machines. ok marco@
2011-03-19Add the ONDA MSA110UP USB modemDavid Coppa
Tested by Sergio Charpinel Jr. OK sthen@, jsg@
2011-03-19syncDavid Coppa
2011-03-19Add the ONDA MSA110UP USB modemDavid Coppa
Tested by Sergio Charpinel Jr. OK sthen@, jsg@
2011-03-18Fix firmware loading at startup (and resume); from Tim van der MolenTheo de Raadt
based on discussion with damien; tested by others on the lists