summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-06-20I2C driver for the Maxim DS1307 Real Time Clock chip.Marcus Glocker
The chip has been found on a Sun Fire V210 as a second RTC hooked up to the SMU. Setting the time there has the advantage that it remains after a boot since the internal V210 RTC will be synced by the DS1307 at boot time. Not linked to sparc64 yet since it will overwrite the internal RTC handler. ok deraadt
2016-06-20In iwm(4), send PHY DB commands as async commands.Stefan Sperling
This means we won't sleep and wait for the firmware to send an interrupt when it's done processing the command. For unknown reasons, sometimes the firmware never wakes the driver after a phy db command so the driver gives up partway through the hardware init sequence. We already have a DELAY in place after each phy db command we send to give the firmware some time for processing, so skipping the sleep is not expected to cause problems. If it does, we'll have to revisit this change. For now, this change makes iwm(4) work better in bsd.rd. Problem reported by Remi Locherer on bugs@, and confirmed by kettenis@. Lots of help with testing and ok tb@
2016-06-20rework the splfoo implementation so it can provide splraise.David Gwynne
sparc was like sparc64 (or more likely sparc64 was like sparc) in that the spl api was build with macros that created inline functions that the spl were implemented as. this rework provides an splraise that the splfoo macros are defined to. because the code sequences for spl0, splraise, and splx are relatively long, ive turned them into functions. tested by (and thanks go to) miod@ tobiasu@
2016-06-20Make umb(4) less verbose by default. 'ifconfig umb0 debug' enables verbose mode.Stefan Sperling
ok mpi deraadt gerhard
2016-06-19Rework how umb(4) attaches such that it also works with devices that implementMark Kettenis
both NCM 1.0 and MBIM. ok gerhard@
2016-06-19Add define for NCM.Mark Kettenis
ok gerhard@
2016-06-19omap4 uart is compatible with omap3 uart but has it's own compatible stringJonathan Gray
2016-06-19dynamically attach omap uart with fdtJonathan Gray
2016-06-19Make some noise in dmesg when iwm(4) fails to bring up the hardware.Stefan Sperling
ok tb@ earlier version
2016-06-19Remove the lockmgr() API. It is only used by filesystems, where it is aMartin Natano
trivial change to use rrw locks instead. All it needs is LK_* defines for the RW_* flags. tested by naddy and sthen on package building infrastructure input and ok jmc mpi tedu
2016-06-19add pool_setipl on all pools.David Gwynne
ok tedu@ visa@
2016-06-18KTRPOINT() is only useful in the kernel, so move it behind #ifdef _KERNELPhilip Guenther
ok mpi@ kettenis@
2016-06-18Make the 1 Gbps SGMII settings the default to define a consistent set ofVisa Hankala
parameters even if a link is down.
2016-06-18Fix PCS block size.Visa Hankala
2016-06-18Add net.inet.{tcp,udp}.rootonly sysctl, to mark which portsVincent Gross
cannot be bound to by non-root users. Ok millert@ bluhm@
2016-06-18Stop setting the 4-bit mode capability flag for now.Jonathan Gray
Writing to the bbb emmc (but not reading) gives errors otherwise. This does not occur with an sd card on bbb but apparently does on panda.
2016-06-18Add a new AUDIO_GETSTATUS ioctl to get various audio driver variables.Alexandre Ratchov
It's intended for use with diagnostic tools (like audioctl) and is of no use to audio programs.
2016-06-18Plug some memory leaks in error paths of iwm(4).Stefan Sperling
Patch by Imre Vadasz.
2016-06-18Dynamically attach ommmc with fdt. Offset the start of the memory regionJonathan Gray
by 0x100 for nodes compatible with "ti,omap4-hsmmc" to get the same offsets as omap3. Handle both the nintr 1 (omap3/am335x) and nintr 3 (omap4) cases in attach. Ideally the "interrupts" property will be handled by the interrupt controller drivers directly in future.
2016-06-17urtwn device now needs rtwn.c, even if rtwn device isn't builtPhilip Guenther
ok mpi@ jca@ mglocker@
2016-06-17Merge a lot of code from urtwn(4) into rtwn(4). Both drivers now share codeStefan Sperling
in the file sys/dev/ic/rtwn.c. This reduces kernel bloat and will make it easier to have both drivers benefit from future enhancements. ok mpi@
2016-06-17pool_setipl on all uvm pools.David Gwynne
ok kettenis@ visa@
2016-06-17Replace tsleep/wakeup by usbd_ref_incr/decr/wait to wait for the kthreadMarcus Glocker
to finish on close. Tested and ok Patrick Keshishian ok mpi
2016-06-16Replace uvm_km_valloc(9) with a km_alloc(9) call that doesn't allocate anyMark Kettenis
physical pages. Recent canges to uvm_map(9) mean that we now assume that memory in interrupt safe maps is not pageable, and while we made sure all mappings were backed by physical pages, a mapping allocated with uvm_km_valloc(9) appears to pageable and triggered an assertion. ok miod@
2016-06-16enable suspend/hibernate fn keysGiovanni Bechis
ok mlarkin@
2016-06-15Add umb(4) - a driver for the Mobile Broadband Interface Model (MBIM)Gerhard Roth
The umb(4) driver provides support for USB MBIM devices. Those devices establish connections via celluar networks such as GPRS, UMTS, and LTE. ok mpi@ sthen@ additional feedback from deraadt@ jmc@ stsp@ kettenis@
2016-06-15Fix typo from rebase : extra parentheseVincent Gross
2016-06-15Move the cmsg handling code on top of udp_output(), to makeVincent Gross
IP_SENDSRCADDR introduction easier. Ok jca@
2016-06-15With the introduction of ip6_output_ipsec_lookup() we didn't exit theFlorian Obser
loop when we worked out that no IPsec is needed which led to a NULL de-ref on the next iteration. Fix this by making the code more similar to the IPv4 case. Found the hard way by me, OK mpi@
2016-06-15Kill nd6_output(), it doesn't do anything since the resolution logicMartin Pieuchot
has been moved to nd6_resolve(). ok visa@, millert@, florian@, sthen@
2016-06-15No need for a special DVACT_DEACTIVATE hook, autoconf(9) knows howMartin Pieuchot
to deactivate our children. ok mglocker@
2016-06-15There's no need to convert values returned by arc4random to the networkMike Belopuhov
byte order. Spotted by Gleb Smirnoff (glebius@FreeBSD.org), thanks! ok tedu
2016-06-14Don't hardcode vlan/queue priority for pppoe packets; inherit it from theStuart Henderson
new "llprio" setting on the pppoe(4) interface instead. Tested by Daniel Gillen and myself, ok mikeb
2016-06-14Prevent a round to zero in the timeout_add_...() functions. GettingAlexander Bluhm
an immediate timeout if a positive value is specified is unexpected behavior. Defer calling the handler for at least one tick. Do not change that timeout_add(0) gives you an immediate timeout. OK millert@ uebayasi@ tedu@
2016-06-14If the FDT node has a "non-removable" property, return 1 from the cardMark Kettenis
detect function. Remove the board-specific return 1 cases as they all match the case of a "non-removable" property. Note that this introduces a sdmmc0: can't enable card message on the CuBox-i as is has the internal eMMC controller enabled in its device tree even though there is no eMMC soldered onto the board. ok jsg@
2016-06-14Make sure OF_getprop() returns the proper length for a synthesised "name"Mark Kettenis
property. From Tom Cosgrove.
2016-06-14provide splraise on landiskDavid Gwynne
splraise is a wrapper around the sh _cpu_intr_raise(), and all the splfoo macros are now defined as calling splraise(IPL_FOO). tested on my landisk box
2016-06-14Make fdt_node_property() return -1 if the requested property can't be foundMark Kettenis
such that we can distinguish between non-existing properties and zero-length properties. This brings the FDT code in line with the real OFW implementations. ok jsg@
2016-06-14Pass the configured ``ifa'' to rt_sendaddrmsg() instead of getting it viaMartin Pieuchot
``rt->rt_ifa'' later.
2016-06-14Store the source address associated with a route in its own chunk ofMartin Pieuchot
memory. This will allow to unlink 'sruct rtentry' and 'struct ifaddr' to be able to add route entries without needing an address. ok sthen@, visa@, florian@
2016-06-14imxdog* at fdt? here too.Mark Kettenis
2016-06-14Add missing line feed to DPRINTF makes debug reading easier.Marcus Glocker
2016-06-14Convert the links between art data structures used during lookups into srps.Jonathan Matthew
art_lookup and art_match now return an active srp_ref, which the caller must leave when it's done with the returned route (if any). This allows lookups to be done without holding any locks. The art_table and art_node garbage collectors are still responsible for freeing items removed from the routing table, so they now use srp_finalize to wait out any active references, and updates are done using srp_swap operations. ok dlg@ mpi@
2016-06-13rename raiseipl to splraise()David Gwynne
another step toward making splraise an MI api. ok aoyama@
2016-06-13Dynamically attach imxdog(4) using the FDT.Mark Kettenis
2016-06-13On localhost a user program may create a socket splicing loop.Alexander Bluhm
After writing data into this loop, it was spinning forever causing a kernel hang. Detect the loop by counting how often the same mbuf is spliced. If that happens 128 times, assume that there is a loop and abort the splicing with ELOOP. Bug found by tedu@; OK tedu@ millert@ benno@
2016-06-13Remove tracking of endpoints in utvfu_{as,vs}_iface structs as theseMarcus Glocker
are constants; save two more ints. From Patrick Keshishian ok mpi
2016-06-13Ensure expected video endpoint has wMaxPacketSize > 0 duringMarcus Glocker
utvfu_match(). From Patrick Keshishian ok mpi
2016-06-13* Start/stop audio bulk thread as consumer opens/closes device.Marcus Glocker
And as a result get rid of a few defines/flags. * Fix _as_close() to and audio bulk thread exit. * Change sc->sc_as_running into a flag; save an int. From Patrick Keshishian ok mpi
2016-06-13make sure attrflag is initialized. from clang via david hillTed Unangst