summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2013-10-07Do not invoke ttymodem() directly, but l_modem from the current linedisc.miod1-3/+5
2013-10-07remove some debug printf.yuo1-9/+9
2013-10-07regen.yuo2-2/+2
2013-10-07add device driver for ASIX AX88178a and AX88179 Ethernet interface.yuo3-1/+1869
2013-10-06Add quirk for ALC260 found on Acer Extensa 6700.rapha1-1/+3
ok ratchov@
2013-10-05Disable interrupts in the interrupt handler. This is what FreeBSD does, andkettenis1-1/+6
it seems to fix the occasional watchdog timeout when using MSI. tested by many
2013-10-05add and use gtt mapping flags, further reduces the diff to linuxjsg5-18/+29
ok kettenis@
2013-10-04Fix tuner ioctl TVTUNER_SETFREQ after rev 1.30.brad1-2/+2
Pointed out by Pedro ok krw@
2013-10-03Another fix from Linux that ended up being packported to the 3.8.13 stablekettenis1-60/+40
branche maintained by the Ubuntu folks. Original linux commit message: 'Fix incoherence with fence updates on Sandybridge+'. ok jsg@
2013-10-02regenjsg2-28/+43
2013-10-02cleanup the VMware entries and add AHCI/HD Audio/xHCIjsg1-12/+15
ok sthen@ deraadt@
2013-10-01Emulate 64-bit atomic operations on 32-bit architectures by using a mutex.kettenis1-18/+48
ok mpi@, jsg@
2013-10-01Use %z* for size_tsf15-48/+48
while there, fix a few %d into %u
2013-10-01Don't claim the interrupt if none of the interrupt status bits were set.kettenis1-1/+4
ok deraadt@
2013-10-01regenjsg2-19/+19
2013-10-01rename some Xeon E3-1200v2 ids that are actually generic 3rd gen core idsjsg1-7/+7
2013-09-30move the read/write functions and macros closer to linuxjsg3-28/+269
noteably this uses the gt lock and force wake in some cases and includes a gen5/ironlake errata. ok kettenis@
2013-09-30regenjsg2-13/+38
2013-09-30add some additional run(4)/urtwn(4) devices found in FreeBSDjsg3-9/+19
2013-09-30regenjsg2-4/+9
2013-09-30Add ISY IWL 2000, another RTL8188CUS/urtwn(4)jsg2-2/+4
from Maximilian Fillinger
2013-09-30drmclose: don't unref objects with a mutex locked.jsg1-1/+3
Some free functions (radeon) grab sleeping locks. Instead when we ahve taken the object off the tree we unlock and unref, then regrab before looking again. from oga in bitrig, ok kettenis@
2013-09-29Get rid of cnset(). It is only used on amd64/i386 and doesn't really dokettenis2-29/+2
anything useful there. Switching from glass console to serial console is already done by cninit(), and the reinitializaton of cn_tab by cnset() breaks the conseleness checks in the wsdisplay code. Tested on various amd64/i386 systems with both glass and serial console. ok mpi@
2013-09-28Fix the message of uthum(4)'s calibration offset is incorrectsasano1-5/+9
when the offset is -1 < degC < 0. ok by yuo@ and mpi@.
2013-09-28Another puc(4) device based on Oxford chipset found in a Startechmlarkin1-1/+10
expresscard serial card
2013-09-28regenmlarkin2-0/+5
2013-09-28Another puc(4) device based on Oxford chipset, found in a Startechmlarkin1-1/+2
expresscard serial card
2013-09-28Fix use of uninitialized variable, found by Maxime Villard.mlarkin1-2/+2
ok miod@
2013-09-27Try harder to ensure wddump() doesn't decrement the countkrw1-6/+7
of sectors to write by one value and increment the address the next i/o will start at by a different amount.
2013-09-25Unbreak the tree; no 64-bit atomic operations on 32-bit architectures for now.kettenis1-1/+10
found out the hard way by chris@ and mpi@
2013-09-24Make (almost all) atomic operations really atomic.kettenis2-43/+19
Potentially fixes a race/panic reported by claudio@ ok jsg@
2013-09-24Make sure vblank_time_lock blocks interrupts to match Linux.kettenis1-2/+2
Potentially fixes a race/panic reported by claudio@ ok jsg@
2013-09-24Sync the MI LANCE code ( le(4) ) with NetBSD, except for the following:miod21-1091/+2035
- the am7990_get() - now lance_get() - is unchanged. - the interrupt acknowledge logic is unchanged, and will disable interrupts, then acknowledge all interrupt conditions. Add ILACC (79900) support (from NetBSD). Both LANCE (am7990.c) and ILACC (am79900.c) code share as much common code (lance.c) as possible. This affects all le(4) attachments, but the changes are mostly mechanical, to split am7990-specific parts from lance-agnostic parts. Compile tested on all affected platforms. Tested on alpha, hp300, luna88k, mvme88k, sparc, sparc64 and vax.
2013-09-24Stop generating traffic for a given endpoint when a transfer reportedmpi1-8/+17
an I/O error. When such thing happens, the device is more likely to be already gone or non responding, but the task responsible for aborting the pipe has not been executed. Fix a problem where the ehci(4) controller would vomit^Wprint a lot of "ehci_idone:" messages in loop leaving the machine unusable, initially reported by ajacoutot@ and later by RD Thrush. Fix tested by RD Thrush and Markus Bergkvist, thanks! ok miod@
2013-09-24Try to release the console if pckbc(4) fails to send the initialmpi1-19/+33
command byte. This allows at least my USB keyboard to be part of the console on a Lenovo E20. ok miod@
2013-09-23regenjsg2-15/+540
2013-09-23correct some radeon entries and add new Intel Ethernet and 8 series idsjsg1-7/+112
2013-09-22Support MSI for virtio. This is useful for bhyve.sf1-2/+2
2013-09-21regenmiod2-2/+7
2013-09-21Oxford OXPCIE952 parallel port puc(4) board; contributed by Markus Uhlinmiod2-2/+12
(markus.uhlin; bredband dot net), thanks!
2013-09-21Allow for an out-of-softc indirection to reach the software copy of themiod2-64/+66
important (and write-only) register state; this will allow this driver to be used as a console before it attaches, to be used shortly.
2013-09-21regenjasper2-4/+24
2013-09-21add several devices found on the hp microserver gen8 and add some morejasper1-2/+6
xeon e3-1200v2 pcie ids while here as suggested by jsg@ ok jsg@
2013-09-20Unify and document usbd_transfer(9).mpi9-139/+80
Get rid of the badly named usbd_bulk_transfer() and usbd_intr_transfer() they were two identical wrappers to submit a synchronous transfer. Now all synchronous transfers are submited using usbd_setup_xfer(9) and usbd_transfer(9) explicitly using the USBD_CATCH flag when signals must be checked. Previous version ok'd by mglocker@, with subtle inputs from miod@
2013-09-20Use a working magic sequence to configure absolute mode for elantech v2.stsp1-13/+17
The synaptics driver now attaches to elantech v2 touchpads. It seems these pads were always falling back to compat mode, which went unnoticed until r1.47. Fix based on a patch submitted by Cedric Tessier: http://marc.info/?l=openbsd-bugs&m=136904396518528&w=2 which in turn was probably based on parts of this patch: https://launchpadlibrarian.net/73099683/elantech.patch which updates the Linux driver code but isn't part of Torvald's Linux. Behaviour of elantech firmware versions seems to vary quite a bit so print the firmware version at attach time for reference in future bug reports. Fix tested by frantisek holop and Peter J. Philipp. ok mpi@
2013-09-20remove debug code. not sure how this lasted so long.tedu1-5/+1
noticed by maxime villard
2013-09-19Do no try to clear the endpoint, as it if has stalled, if thempi1-2/+2
USB transfer reported an I/O error. This is more likely to have no effect apart generating more errors because when this happens, the device is generally already physically detached but the *detach() task has not run yet. So simply return and wait for the device to be removed like ucom(4) does. Partially fix an issue reported by RD Thrush rt at thrush.com. ok miod@
2013-09-18sync the execbuffer relocation code with linux 3.8.13jsg2-234/+416
with the fastpath and cpu relocs disabled for now. eb_* functions based on code in FreeBSD. ok kettenis@
2013-09-18return after done in atascsi_disk_unmap.dlg1-5/+14
2013-09-17Add support for AMD Family 15h Models 10h-1Fh Processors.kettenis1-3/+4