summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2015-05-21No need for ifp since we do not set "rcvif".mpi1-2/+1
2015-05-21No need to set "rcvif", if_input() does it for you.mpi3-6/+3
2015-05-21tedu commented out xl_testpacket(), remove one of the IFQ_ENQUEUE()mpi1-33/+1
in the tree.
2015-05-21Convert to if_output().mpi1-25/+2
2015-05-21Access to uninitialized variable fixed.gerhard1-7/+6
ok mikeb@
2015-05-20Signed types are bad array indicies - let it panic instead.pelikan1-2/+3
ok deraadt krw millert
2015-05-20scrap unused ixgbe_get_link_capabilities_X540mikeb1-21/+1
2015-05-19Increase a maximum firmware handshake timeout to 10smikeb1-3/+4
BCM5718 Programmers Guide in chapter 7 "Device Control", section "Device Reset Procedure" states that SEEPROM chips need a larger timeout than Flash ones. ok reyk
2015-05-19Convert to if_input().mpi1-12/+6
ok dlg@
2015-05-19Convert to if_input().mpi10-133/+53
ok dlg@
2015-05-18Prevent splassert from firing during sd_flush which runs "cold"mikeb1-3/+4
While mfi(4) should pass SCSI transfer flags (e.g. SCSI_POLL and SCSI_NOSLEEP) down to the management function, make it at least use "cold" consistently for now. ok dlg
2015-05-17Read ethernet address from EEPROM on AX88772B based on FreeBSDcanacar2-2/+33
ok djm@ jsg@
2015-05-17We don't need KERNEL_LOCK() around if_input() anymore, as if_input() haschris1-3/+1
appropriate locking around bpf now. ok dlg@
2015-05-16hide private midi_softc strucureratchov1-3/+1
2015-05-16Use device_lookup() instead of digging into midi_cd.cd_devs[] andratchov2-96/+134
maintaining a "dying" flag which is already present in the device structure. As a side-effect, this adds the missing refcounting that mididetach() was missing. With from mpi@ and dlg@ ok mpi
2015-05-15add some missing splx() callsjsg1-1/+2
ok deraadt@ kettenis@ krw@
2015-05-15Convert to if_input().mpi2-31/+12
ok dlg@
2015-05-15rename the probe and free members of atascsi_methods to ata_probedlg2-7/+7
and ata_free. this makes them consistent with the rest of the members, and lets me #define free to weird debug things in the kernel without screwing these files up.
2015-05-14Make the "Battery Present" sensor a depency of all the battery-relatedmpi1-2/+6
sensors only if it is present, From David Higgs. Fix a regression reported by and ok halex@
2015-05-13test mbuf pointers against NULL not 0jsg10-38/+38
ok krw@ miod@
2015-05-12Make sure the rx ring lwm is set to at least 4. As far as we know, allkettenis1-3/+4
hardware variants need at least 4 descriptors on the rx ring to be able to receive packets. Should fix the issue reported by Christian Schulte on bugs@. ok mikeb@, sthen@
2015-05-12remove the sc->isopen flag, as sc->flags already hold theratchov2-11/+10
same information.
2015-05-12store byte count in a size_t and switch from uiomovei() to uiomove()ratchov1-5/+5
2015-05-12Remove unused code & definitions: midi_attach(), midi_unit_count(),ratchov2-44/+10
midi_getinfo(), midi_writebytes(). They were "used" by the sequencer interface which we removed years ago.
2015-05-12Don't hold the audio mutex when calling uiomove(), as uiomove()ratchov1-11/+12
may sleep in case of a page fault
2015-05-12Remove references to (deleted) auconv.h and mulaw.h files. Fixesratchov4-10/+4
i386 build. Found by Mark Patruck <mark at wrapped.cx>, thanks!
2015-05-12Fixup potential use after free and a memory leak.mikeb1-2/+5
Found by Maxime Villard <max at m00nbsd ! net> with the Brainy Code Scanner, thanks!
2015-05-12Merge various urtwn(4) fixes from FreeBSD:stsp1-12/+31
Match additional devices (RTL8188CU_3, DWA123D1, DWA125D1). Fix efuse reading (fixes potential error in MAC address read from efuse). Replace some magic numbers with macros. Based on FreeBSD r270191, r273589, r281918, r281592, r282119, and r282623 via Mikhail mp39590@gmail on tech@ ok sthen@
2015-05-12Fix definition of R92C_USTIME_TSF.stsp1-2/+2
from FreeBSD r282623 via Mikhail mp39590@gmail on tech@
2015-05-12regenstsp1-2/+18
2015-05-12usbdevs_data.hstsp1-2/+6
2015-05-12Add 4 additional urtwn(4) device IDs.stsp1-1/+5
from FreeBSD via Mikhail mp39590@gmail on tech@
2015-05-12The i211 does not support an external EEPROM only a OTPjsg3-5/+188
Internal Non-Volatile Memory (iNVM). Add support for reading words out of it instead of an EEPROM. From Patrick Wildt with some more offsets added.
2015-05-11regenjasper2-2/+7
2015-05-11add id for virtio rngjasper1-1/+2
ok sf@
2015-05-11Make softraid(4) compile with SR_DEBUG by fixing __kprintf__ specifiers.pelikan1-18/+17
ok jsing krw
2015-05-11Refresh sensor values asynchronously.mpi1-64/+86
From David Higgs.
2015-05-11Remove support for ADPCM encoding which isn't used nowadays andratchov2-16/+2
not available to programs anyway.
2015-05-11Remove all audio format conversion code from the kernel (btw holdingratchov42-3843/+355
the kernel_lock), as we already do better conversions in user-mode. Yet, no need for every single driver to fiddle with the conversion code as they are done transparently by common MI code. With help from armani and miod, support from mpi ok armani@
2015-05-11Convert from uiomovei() to uiomove() to prevent short tranfersguenther1-3/+3
diff from natano@bitrig
2015-05-10Fix urtwn(4) 11b performance for RTL8188EU devices.stsp2-11/+55
With 11b APs the firmware retries excessively unless we force it into 11b-only mode instead of mixed b/g. Perhaps a firmware bug, perhaps a bug in our code elsewhere. For now, this makes it work. ok kettenis
2015-05-10My commit adding RTL8188EU did introduce a regression after all.stsp1-4/+5
Repair firmware reset on RTL8188CUS devices (and perhaps others) by restoring the proper register write order in the non-8188EU code path. Fixes "urtwn0: timeout waiting for firmware readiness" after device reset.
2015-05-09Fix an occurance of mtx_enter() that should have been mtx_leave().jsg1-2/+2
This line was originally an splx() before being converted to a mutex. ok ratchov@
2015-05-08When changing screen saver parameters with wsconsctl (or any other way tomiod1-42/+69
perform ioctls), check the flags of the currently displayed screen in order to decide whether the screen saver needs to be retriggered, rather than the flags of the device we are issuing the ioctl on. wsconsctl will always use ttyC0, while the X server may run on another virtual screen (such as ttyC4), and the kernel screen saver would then be reenabled behind the X server's back. While there, apply this `should the screen burner get reenabled or disabled?' logic at the end of every virtual screen switch. The screen burner will now get reenabled when switching from X11 to a virtual text console, and disabled when switching back to X.
2015-05-08Fix the indentation. While originally I thought this was an if statementjsg1-2/+2
with missing braces ratchov checked the specs to see the current behaviour is correct, just poorly formatted. ok ratchov@
2015-05-07Pass a thread pointer instead of its file descriptor table to getvnode(9).mpi1-4/+4
Input and ok millert@
2015-05-07fix indentationjsg1-2/+2
ok miod@
2015-05-07fix indentation of a linejsg1-3/+3
ok krw@ miod@
2015-05-07add missing braces to code under #ifdef TRM_DEBUG0jsg1-2/+4
ok krw@
2015-05-07remove a surplus tabjsg1-2/+2
from miod@