summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-08-17Add PCI ID for Ralink RT5392 and additional IDs for RT5390 devices.Stefan Sperling
Part of a larger patch by James Hastings.
2016-08-17iwn(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@
2016-08-17If a wireless device or driver scans all bands at once give 5GHz APsStefan Sperling
a slight priority in cases where good matches exist in either band. ok sthen@
2016-08-17If the stack demands protection by setting the USEPROT flag then set theStefan Sperling
corresponding bit in the iwm(4) Tx command regardless of frame length. ok sthen@
2016-08-17Reintroduce 5.3-style checksum modification to preserve end-to-end checksumsprocter
when fiddling with packets but without the mess that motivated Henning to remove it. Affects only this one aspect of Henning's checksum work. Also tweak the basic algorithm and supply a correctness argument. OK dlg@ deraadt@ sthen@; no objection henning@
2016-08-17Move to iopool. No voluntary testers after several years of requests so nowKenneth R Westerback
everybody gets to test!
2016-08-17Move to iopool. No voluntary testers after several years of requests so nowKenneth R Westerback
everybody gets to test!
2016-08-17Make error handling (esp. DATA_UNDERRUN) clearer and avoid losing residKenneth R Westerback
value. Specs from mikeb@, ok dlg@
2016-08-16Add IP_SENDSRCADDR cmsg for UDP sockets. As suggested by sthen@,Vincent Gross
IP_SENDSRCADDR == IP_RECVDSTADDR. OK sthen@ jca@ bluhm@
2016-08-16There is no sense in doing caching in fusefs. In case of a non-localMartin Natano
filesystem the tree can change behind our back, resulting in stale cache entries. "The only winning move is not to play." ok tedu beck mpi
2016-08-16remove #define for /dev/mem minors. let the raw magic of the hardcodedTed Unangst
numbers serve as a warning not to touch them.
2016-08-16move static variable up to firstTed Unangst
2016-08-16replace hand rolled tsleep physlock with rwlock. ok mlarkinTed Unangst
2016-08-16Update Hyper-V structure definitions to the 2016 versionMike Belopuhov
Microsoft has performed a significant clean up and stylistic improvement of Hyper-V structure definitions and updated FreeBSD port. We update to stay in sync with the upstream and improve maintainability of this code in the future.
2016-08-16Remove RM7000/RM9000-specific performance counter code. It originatesVisa Hankala
from PMON2000 and has not been enabled on OpenBSD. Suggested by and ok miod@ (after seeing a quad_t cleanup patch of mine)
2016-08-16Fix typo/inconsistensy where L1_S_DOMAIN was used instead of L1_C_DOMAIN.Mark Kettenis
These are functionally equivolent so it didn't matter and the resulting code doesn't change.
2016-08-16Mask the ``prio'' prior to comparing it to RTP_LOCAL.Martin Pieuchot
This allows rt_if_remove() to remove RTF_BROACAST routes from down interfaces. Issue reported by Dimitris Papastamos on bugs@ ok dlg@, claudio@, phessler@
2016-08-16Only probe the UART type if sc_uarttype is set to COM_UART_UNKNOWN.Mark Kettenis
This allows glue drivers to set the type based on other information (such as Oopen Firmware or device tree properties) without going through to risky code paths. ok deraadt@, visa@
2016-08-15Expose more 802.11n information to userspace:Stefan Sperling
A flag which indicates whether HT has been negotiated with a node, and the current Tx MCS value we use for a node. This grows struct ieee80211_nodereq. Applications using it must be recompiled. ok mpi@
2016-08-15normalize some commentsTed Unangst
2016-08-15Don't take shortcuts cleaning/invalidating the caches. The Cortex-A7 and mostMark Kettenis
other ARMv7 CPUs have a L2 cache that is larger than 32KB. And some of those even have L1 caches larger than that. So bailing out after 32KB will leave the cache partially dirty. Fixes the SATA problems on Allwinner A20 based boards. ok patrick@
2016-08-15Now that com(4) uses a different iot for the initial console and thePatrick Wildt
main attachment, the serial port is now longer recognized as console. To fix this, store the OFW node of the initial console and check it in the attachment driver. ok kettenis@
2016-08-15First stab at porting the awinmmc(4) driver from NetBSD. The driver willMark Kettenis
be known as sximmc(4) and is somewhat functional. Still needs proper clock support and some further cleanup.
2016-08-15For some reason the RTL8211E PHY on the Banana Pi responds to both address 0Mark Kettenis
and 1. As a result rgephy(4) attaches twice. Prevent this from happening by passing the PHY address, which is part of the device tree, down from the bus-specific glue to the generic driver code.
2016-08-15Allow com(4) to make use of the simplebus address translation.Patrick Wildt
This typically works for every simplebus client, but com(4) did not make use of the supplied bus tag. Instead it references the global a4x bus tag. This is needed as the ARM com(4) controllers use 4-byte spaced registers, while com(4) operates on 1-byte. To be able to make use of the address translation, copy the a4x bus tag and replace the cookie and map function with the one supplied by simplebus. ok kettenis@
2016-08-15Move the com(4) fdt attachment driver to a more generic location andPatrick Wildt
rename it to fit the typical scheme of such an attachment driver. ok kettenis@ jsg@
2016-08-15Remove IWM_CMD_SYNC, which expands to zero while all the otherStefan Sperling
IWM_CMD_* values are bit flags. The same was done 2 years ago in Linux git commit a10229271946731959b2269370d0492d88cfab23.
2016-08-15replace the last uses of m_copym2 with m_dup_pkt.David Gwynne
ok mpi@ visa@
2016-08-15Use pinctrl to configure the pins used by the EMAC.Mark Kettenis
ok jsg@
2016-08-15Use the regulator API to supply power to the target.Mark Kettenis
Tested by Daniel Bolgheroni on a Cubietech Cubieboard2. ok jsg@
2016-08-15Neuter fuse_vptofh() and fuse_fhtovp(). I implemented those functionsMartin Natano
under the assumption, that fuse_vget() has reasonable semantics, while this is not the case. fusefs_vget() only functions correctly, if the file in questions has recently been accessed and is still in the vnode cache of the userspace daemon associated with the mount point. As a matter of fact the fuse api doesn't feature a reasonable way to map inode numbers to a handle at all (see struct fuse_operations). ok guenther
2016-08-15No need to reset si_selpid after calling selwakeup() the functionMartin Pieuchot
already does it.
2016-08-15Introduce bpf_put() and bpf_get() instead of mixing macro and functionsMartin Pieuchot
for the reference counting. ok dlg@
2016-08-15Check if ``bd_bif'' is NULL inside bpf_catchpacket() to match bpfread()Martin Pieuchot
and bpfwrite(), all of which will need to grabe a lock to protect the buffers. ok dlg@
2016-08-15Merge bpfilter_create() into bpfopen() and make it such that theMartin Pieuchot
descriptor is referenced before it is inserted in the global list. ok dlg@
2016-08-15Drain FIFOs on init same as com(4) does it and reduce the RX FIFO interruptMarcus Glocker
trigger to 1 character. This fixes a hang seen on the allwinner,sun5i-r8 board during boot when the driver switches to interrupts and no terminal is attached. ok kettenis
2016-08-14Add imxtemp(4), a temperature sensor for the i.MX6 SoC. Based on code writtenMark Kettenis
by patrick@. ok deraadt@
2016-08-14remove uneeded sa1111_reg.h includeJonathan Gray
ok kettenis@
2016-08-14Remove code for Intel 80219/80321 xscale processors used by armish.Jonathan Gray
Generic xscale support and support for pxa2x0 used by zaurus remains.
2016-08-14Fix setting the SMP bit in the Auxiliary Control Register. The old code wasMark Kettenis
toggling the bit, clearing it when already set. On Cortex-A7 setting the SMP bit is essential since without it the CPU doesn't actually use its caches. The SMP bit supposed to be set before turning on the caches and the MMU, so move the setting of the Auxiliary Control Register before setting the System Control Register. ok jsg@
2016-08-14Allow a bus_dmamap_sync() of length zero.Mark Kettenis
ok tedu@
2016-08-14Remove some annoying debug printfs to get rid of u_quad_t in cnmac.Visa Hankala
2016-08-14Utilize the TLB Execute-Inhibit bit with non-executable mappings on CPUsVisa Hankala
that support the Execute-Inhibit exception. This makes user space W^X effective on Octeon Plus and later Octeon versions. Feedback from miod@, thanks! No objection from deraadt@
2016-08-14u_quad_t -> uint64_tDavid Gwynne
de is amazing(tm). it really should be cut back and simplified a bit.
2016-08-14change some types in bio from u_quad_t to uint64_t, and fix casts inDavid Gwynne
drivers that fill that field in too. quad types are going away.
2016-08-14replace u_quad_t with uint64_t.David Gwynne
guenther is proposing the removal of u_quad_t. uint64_t is more portable. tested on a perc5 and perc6, no functional change.
2016-08-13Add the shim to make dwge(4) attach to simplebus(4). This brings usMark Kettenis
working gigabit on the Allwinner A20. Probably won't work yet on other Allwinner SoCs due to differences in how the clocks get set up. Based on an earlier diff from patrick@.
2016-08-13Add GMAC clock support. Based on an earlier diff from patrick@.Mark Kettenis
2016-08-13Missed a couple qaddr_t castsPhilip Guenther
2016-08-13Eliminate pointless casts to qaddr_t of a value being assigned to a void*Philip Guenther
ok kettenis@ krw@ natano@ dlg@ espie@