summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2015-05-16hide private midi_softc strucureAlexandre Ratchov
2015-05-16Use device_lookup() instead of digging into midi_cd.cd_devs[] andAlexandre Ratchov
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() callsJonathan Gray
ok deraadt@ kettenis@ krw@
2015-05-15Convert to if_input().Martin Pieuchot
ok dlg@
2015-05-15rename the probe and free members of atascsi_methods to ata_probeDavid Gwynne
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-relatedMartin Pieuchot
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 0Jonathan Gray
ok krw@ miod@
2015-05-12Make sure the rx ring lwm is set to at least 4. As far as we know, allMark Kettenis
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 theAlexandre Ratchov
same information.
2015-05-12store byte count in a size_t and switch from uiomovei() to uiomove()Alexandre Ratchov
2015-05-12Remove unused code & definitions: midi_attach(), midi_unit_count(),Alexandre Ratchov
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()Alexandre Ratchov
may sleep in case of a page fault
2015-05-12Remove references to (deleted) auconv.h and mulaw.h files. FixesAlexandre Ratchov
i386 build. Found by Mark Patruck <mark at wrapped.cx>, thanks!
2015-05-12Fixup potential use after free and a memory leak.Mike Belopuhov
Found by Maxime Villard <max at m00nbsd ! net> with the Brainy Code Scanner, thanks!
2015-05-12Merge various urtwn(4) fixes from FreeBSD:Stefan Sperling
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.Stefan Sperling
from FreeBSD r282623 via Mikhail mp39590@gmail on tech@
2015-05-12regenStefan Sperling
2015-05-12usbdevs_data.hStefan Sperling
2015-05-12Add 4 additional urtwn(4) device IDs.Stefan Sperling
from FreeBSD via Mikhail mp39590@gmail on tech@
2015-05-12The i211 does not support an external EEPROM only a OTPJonathan Gray
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-11regenJasper Lievisse Adriaanse
2015-05-11add id for virtio rngJasper Lievisse Adriaanse
ok sf@
2015-05-11Make softraid(4) compile with SR_DEBUG by fixing __kprintf__ specifiers.Martin Pelikan
ok jsing krw
2015-05-11Refresh sensor values asynchronously.Martin Pieuchot
From David Higgs.
2015-05-11Remove support for ADPCM encoding which isn't used nowadays andAlexandre Ratchov
not available to programs anyway.
2015-05-11Remove all audio format conversion code from the kernel (btw holdingAlexandre Ratchov
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 tranfersPhilip Guenther
diff from natano@bitrig
2015-05-10Fix urtwn(4) 11b performance for RTL8188EU devices.Stefan Sperling
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.Stefan Sperling
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().Jonathan Gray
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 toMiod Vallat
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 statementJonathan Gray
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).Martin Pieuchot
Input and ok millert@
2015-05-07fix indentationJonathan Gray
ok miod@
2015-05-07fix indentation of a lineJonathan Gray
ok krw@ miod@
2015-05-07add missing braces to code under #ifdef TRM_DEBUG0Jonathan Gray
ok krw@
2015-05-07remove a surplus tabJonathan Gray
from miod@
2015-05-06Use | when combining flags not +. Luckily in this case 1 + 2 == 1 | 2.Jonathan Gray
ok mlarkin@
2015-05-05Less magic numberAlexandr Shadchin
For PS/2 - status byte - bit 5: The bit is '1' if the data on input port 60h came from the AUX port, or '0' if the data came from the keyboard or from the keyboard controller itself. KBS_TERR (kbd transmission error) was valid for AT-mode, but not for PS/2-mode. ok ratchov@, miod@
2015-05-05Huawei MU609 from Cristián Edwards.Martin Pieuchot
ok dcoppa@
2015-05-05regenMartin Pieuchot
2015-05-05Huawei MU609 from Cristián Edwards.Martin Pieuchot
ok dcoppa@
2015-05-05fix a return path that lacked a rw_exit_write() callJonathan Gray
ok kettenis@
2015-05-04Add support for RTL8188EU chips to urtwn(4).Stefan Sperling
Patch by Mikhail <mp39590@gmail.com>, based on FreeBSD r264912 by kevlo. Tested with 8188EU (TP-Link TL-WN725N). No regression on 8188CUS. There are performance problems with 8188EU devices, cause unknown. These will hopefully be resolved soon. ok mpi@
2015-05-04When writing a value to a field, don't read past the end of the source valueJonathan Matthew
if the field is bigger. Fixes crashes seen on HP bc2500 blades with MP kernels. ok kettenis@
2015-05-04use the size of the buffer not the pointer in resume_randomness()Jonathan Gray
ok djm@ miod@ deraadt@
2015-05-04Print irq informations in pckbc_set_inputhandler().Martin Pieuchot
ok miod@
2015-05-04Fix some misuse of the | operator. In particular | has higherJonathan Gray
precedence than ?: ok guenther@ krw@ miod@
2015-05-03add missing CISS_UNLOCK_SCRATCH/splx callsJonathan Gray
ok krw@
2015-05-02Die, damned distracting red space.Kenneth R Westerback