summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2016-09-02Do not free the configuration descriptor without setting ``dev->cdesc''Martin Pieuchot
to NULL. Prevent a use after free triggerable with invalid interface descriptor. Found with umap2 and a facedancer21.
2016-09-02Prevent a NULL dereference, triggerable with a crafted configurationMartin Pieuchot
descriptor with a bad type. Found with umap2 and a facedancer21.
2016-09-02Avoid calling usbd_set_config_index() in *_attach() and let the stackMartin Pieuchot
do it instead. If anything bad happen due to a malformed descriptor it makes no sense to try to attach a driver, and bail before probing.
2016-09-02No need to set 'error' to 0 at the beginning of acx_encap(), asTom Cosgrove
we're only going to set it again 10 lines later. ok mpi@
2016-09-01remove three more sparc references noticed by jsgTed Unangst
2016-09-01add iatp(4), a driver for the i2c touchpad and touchscreen found onJoshua Stein
the chromebook pixel
2016-09-01Always initialize error code returned from iwm_firmware_load_chunk().Stefan Sperling
Patch by Imre Vadasz.
2016-09-01for broadwell HIDs, apply a magic write found in linux that isJoshua Stein
required in order to talk to certain i2c slave devices behind dwiic
2016-09-01- disable controller when we're done using itJoshua Stein
- read CLR_INTR register when disabling interrupts
2016-09-01- separate hid and ihidev attachment for upcoming driversJoshua Stein
- move power control into a dedicated function - sprinkle aml_freevalue
2016-09-01remove another straggler hunted down by miodTed Unangst
2016-09-01openbsd.randomdata became RO in userland due to the RELRO work. We shouldTheo de Raadt
also do so in the kernel, which gains us RO ssp cookie, which will prevent spraying attacks. The random layer was openbsd.randomdata annotating working entropy/chacha buffers which in turn required them to be RW. To make that work again, so we need to copy RO seeds to RW working buffers, and later clear the RO seed buffers afterwards using a temporary RW mapping. help & ok kettenis, ok guenther
2016-08-31Remove rt leftovers in isapnp, unbreak kernel config.Alexander Bluhm
OK deraadt@
2016-08-31Support A Radio Free Europe!Ted Unangst
remove long disabled radio devices ok deraadt
2016-08-31Don't put a device in the wake device list if _STA says it's not there.Mike Larkin
Fixes at least one machine that woke up from sleep / poweroff immediately. ok kettenis@, tested by kettenis and martijn@
2016-08-31sys/arch/sgi/hpc/wskbdmap_sgi.c should be regen'd too.Jeremie Courreges-Anglas
Requested by miod
2016-08-31these drivers should have perished in the same fire as mvme88kTed Unangst
discovered by the ever alert mlarkin
2016-08-31Remove unnecessary 'error' assignmentTom Cosgrove
2016-08-31remove some ISA drivers for devices not recently seen in the wild.Ted Unangst
2016-08-31regenJeremie Courreges-Anglas
2016-08-31Estonian keymapJeremie Courreges-Anglas
Original diff from Taavi Tani in 2005 (!), adapted to -current by Mart Tonso. ok mpi@
2016-08-31Delete unused ioctls and associated macros. Move macros that are stillAlexandre Ratchov
used internally by low-level drivers from sys/audioio.h to dev/audio_if.h instead of deleting them.
2016-08-30Make the init code match the comment and disable watchdogJonathan Gray
reset by mouse and keyboard instead of mouse and mouse.
2016-08-29Set MTU size to ~4k until the TX path is ready to deal with larger packetsMike Belopuhov
2016-08-29Don't count output errors twiceMike Belopuhov
2016-08-29Fixup packet fragment unrolling procedureMike Belopuhov
When bus_dmamap_load fails to load one of the buffers in the mbuf chain, we need to revert all changes to transmit descriptors. The code to do that was prototyped but not tested. However due to how the Tx ring is set up in xnf(4) and generic lack of proper fragment support in the Netfront design we're always limited to having 256 entries for distinct shared memory pages. The mbuf chain is traversed and attempt is made to load every data chunk into a 4k sized DMA map segment which makes it impossible to reference a buffer composed of multiple pages. Current implementation lacks support for this preventing reliable transmission of frames larger than 4k. Bug reported by Kirill Miazine <km at krot ! org>, thanks!
2016-08-27Return -1 if we try to set the frequency of a clock but couldn't find it.Mark Kettenis
2016-08-26correct INTR_MSG_MASK to include INTR_MSG_1Jonathan Gray
ok dlg@
2016-08-24pool_setipl for oce(4)David Gwynne
ok mikeb@
2016-08-24pool_setipl for cardbus and drm pools.David Gwynne
ok kettenis@
2016-08-23Add functions to assert/deassert all reset signals for a device.Mark Kettenis
2016-08-23don't enter burst mode for single-byte reads and writes.Joshua Stein
avoids problems on hardware with broken or unimplemented burst mode and isn't really necessary for such small transactions anyway. matches what linux and freebsd have done for a long time. tested in snaps ok deraadt kettenis
2016-08-23Actually make fdt_find_node() return NULL if the node couldn't be found.Mark Kettenis
ok tom@
2016-08-23remove duplicated test for em_82574Jonathan Gray
2016-08-23Convert %q to %ll in format stringsPhilip Guenther
ok natano@ krw@
2016-08-22Fix two small bugs in the new reset API code.Mark Kettenis
2016-08-22Add an API to set the clock frequency.Mark Kettenis
2016-08-22Add a reset signal API alongside the clock API.Mark Kettenis
2016-08-22Implement interfaces to disable clocks and add interfaces that enable orMark Kettenis
disable all clocks for a device. The latter interfaces are useful for devices that have multiple clocks that don't have specific names/purposes such as sxiahci(4).
2016-08-21Add a minimal clock "framework". Build it on armv7.Mark Kettenis
ok patrick@
2016-08-21Fix a pasto in a comment.Mark Kettenis
2016-08-18Reset the input state completely when wsmouse is (re-)opened.Ulf Brosziewski
ok mpi@
2016-08-18Update NVS protocol structure definitions to the 2016 versionMike Belopuhov
Microsoft has considerably cleaned up the style and it makes sense to keep in sync with the maintained upstream version in FreeBSD.
2016-08-18add a missing splx in an error pathJonathan Gray
ok millert@ stsp@
2016-08-18Clean up style and replace a magic value with a magic defineMike Belopuhov
2016-08-17Sync up monitor trigger groups handling to the upstreamMike Belopuhov
Replace hand rolled atomic bit operations and use MI ones from DRM and convert event matrixes to arrays of longs.
2016-08-17Replace hand rolled atomic bit operations and use MI ones from DRMMike Belopuhov
2016-08-17Add support for RT5390 and RT5392 chipsets to the ral(4) driver.Stefan Sperling
Tested by procter@ on RT2860 and by me on RT2790 and RT3090. Ported from FreeBSD by James Hastings.
2016-08-17Update ral(4) firmware for RT2860 family devices.Stefan Sperling
Required for upcoming RT5390 and RT5392 chipset support. Tested by procter@ on RT2860 and by me on RT2790 and RT3090. Ported from FreeBSD by James Hastings. kevlo confirmed this version of the firmware is still ISC licensed.
2016-08-17wpi(4) scans all bands at once, as far as the net80211 stack is concerned.Stefan Sperling
So set the appropriate scan capability flags in the ic. ok sthen@