summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-01-11global "list" is not the nicest variable nameTheo de Raadt
seen my mlarkin, ok miod
2015-01-11armv6 introduced opcodes for reversing words in registers. we canDavid Gwynne
use these on armv7 as a backend for byteswapping things that endian.h provide. i dunno if its faster, but it makes smaller code. saves 30k on GENERIC-OMAP. ok jsing@ bmercer@ jsg@
2015-01-11use mallocarray(), then set the size afterwards. Prefer if people learnTheo de Raadt
and use this idiom everywhere, it is always safest.
2015-01-11use mallocarray()Theo de Raadt
2015-01-11mallocarray() for the rx_buffer memoryTheo de Raadt
2015-01-11Casting a gid_t to gid_t for a gid_t argument is overkillPhilip Guenther
2015-01-11use mallocarray() when reallocating the mux tableTheo de Raadt
2015-01-11KUE_MCFILTCNT() is non-constant, so use mallocarray()Theo de Raadt
2015-01-11unnecessary castTheo de Raadt
2015-01-10Get the MAC address from the PCI ROM on systems without Open Firmware. CodeMark Kettenis
largely stolen from cas(4), but with a few tweaks.
2015-01-10Bye, bye simple_lock.Mark Kettenis
2015-01-10Disable (most) interrupts when the interface goes down.Mark Kettenis
2015-01-10Enable nep(4).Mark Kettenis
2015-01-10A few more loose ends.Mark Kettenis
2015-01-10Remove debug printfs.Mark Kettenis
2015-01-10Hook up nep(4).Mark Kettenis
2015-01-10Add support for promiscuous mode and multicase.Mark Kettenis
2015-01-10Properly stop DMA and tear down the rings when taking the interface down.Mark Kettenis
2015-01-10Correct some comments and merge in6_if_up() into in6_ifattach() toMartin Pieuchot
reflect that IPv6 link-local addresses are no longer automagically configured the first time an interface is brought up. ok henning@, stsp@
2015-01-10Remove pointless empty 64bit support code stubs from bwi(4).Stefan Sperling
It seems no 64bit bus space support is forthcoming. Nothing has happened in DragonflyBSD for several years and FreeBSD has a different driver for 64bit chips called bwn(4). ok mpi@ some time ago
2015-01-10Merge two bwi(4) fixes from FreeBSD:Stefan Sperling
------------------------------------------------------------------------ r192306 | imp | 2009-05-18 17:31:26 +0200 (Mon, 18 May 2009) | 10 lines Fix a typo from the original driver. We need to write ctrl2 into RF register 0x52, not ctrl1. This appears to be a mistake in the bcm reverse engineering page, and has been corrected there. Tracing through the code, this is more in keeping with the "documented" register. Sephe thinks it looks interesting and may be worth fixing. :) Submitted by: ddkprog at yahoo com Reviewed by: Sepherosa Ziehau ------------------------------------------------------------------------ r192042 | nwhitehorn | 2009-05-13 16:25:55 +0200 (Wed, 13 May 2009) | 4 lines Add a short delay after programming PHY registers to give some time for the engine to catch up. This prevents a machine check exception from illegal memory requests with a BCM4318. ------------------------------------------------------------------------ No regressions observed by myself, miod@, and Vesa Norrman (vesbula at gmail).
2015-01-09The "SunMicro Virtual Eth Device" found on Oracle's more recent SPARC systemsMark Kettenis
claims to support both RNDIS and CDC Ethernet. However, RNDIS doesn't seem to work, at least not with our driver. So blacklist it here such that cdce(4) takes over. ok miod@, armani@ (both a while back)
2015-01-09regenMark Kettenis
2015-01-09SunMicro Virtual Eth DeviceMark Kettenis
2015-01-09Change rssi passed to ifconfig(8) to a signed value to fix printing signalStuart Henderson
strengths on 802.11 interfaces. ok stsp@ Power on wireless interfaces is usually scaled in dBm. rssi (received signal strength) is expected to be a -ve dBm values (i.e. [much] <1mW). Some (though not all!) drivers store this as negative values, so it needs to be passed to ifconfig that way for printing, not cast to an unsigned value. Valid range is something like -40 to -90dBm, so the range available with a signed char is reasonable whether it's stored as a +ve or -ve number.
2015-01-09Properly unwind from a failure in usbd_dma_contig_alloc(). CallingMark Kettenis
bus_dmamap_unload(9) on a map that failed to load is a bad idea and causes panics on some architectures (such as sparc64). ok mpi@
2015-01-09Fix loading memory allocated with bus_dmamem_alloc(9). The old could wouldMark Kettenis
always load all allocated pages instead of the size specified in the bus_dmamap_load_raw(9) call. Also fixes the corner case where a specified boundary is less than the page size, which would always create multiple segments, even if the specified size was smaller than the boundary. Fixes xhci(4) on sparc64.
2015-01-09Always check for DMA buffer overrun, not just for some specific xfers.Martin Pieuchot
2015-01-09Correctly report memory allocation failure in uhidev_set_report_async().Martin Pieuchot
2015-01-09Add an asynchronous version of uhidev_get_report(), from David HiggsMartin Pieuchot
with some tweaks. Nothing use it for the moment, but upcoming upd(4) improvements need it.
2015-01-09Add support DIOC{G,S}CACHE to mfi(4). Cache of disk on mfi(4) willYASUOKA Masahiko
be enabled by default. Also if the controller doesn't have any RAM, the cache on the physical disk will be enabled. discuss with jsg tsubai ok dlg
2015-01-09regenJonathan Gray
2015-01-09add rate matching hubs seen on a C610 systemJonathan Gray
2015-01-09match on C610Jonathan Gray
2015-01-09regenJonathan Gray
2015-01-09Add some Intel Xeon E5 v3 and C610/X99 ids.Jonathan Gray
2015-01-09save the bufq pointer from the buf before we turn it loose so it won'tTed Unangst
change on us. also, remove unused second arg to bufq_wait. from pedro at bitrig via david hill. ok beck kettenis
2015-01-09rename desiredvnodes to initialvnodes. less of a lie. ok beck deraadtTed Unangst
2015-01-09correctly handle no timeouts and make timeout handling in general better.Ted Unangst
problem reported by Mages Simon ok guenther
2015-01-09Cleanup some macros and #defines in i386 pmap. Previously committed andMike Larkin
backed out because of libkvm breakage, recommitting now with libkvm fix. ok deraadt@
2015-01-09implement mfii_scsi_cmd_io for handling actual io. previously i gotDavid Gwynne
away with being lazy and just passing everything to the vanilla scsi cdb path. sending io via the cdb path with chained sgls seems to trigger a firmware fault on the new invader boards. sending the same io via the ldio path works fine though. tested on invader and thunderbolt boards: mfii0 at pci1 dev 0 function 0 "Symbios Logic MegaRAID SAS3108" rev 0x02: msi mfii0: "PERC H730 Mini", firmware 25.2.1.0037, 1024MB cache mfii0 at pci1 dev 0 function 0 "Symbios Logic MegaRAID SAS2208" rev 0x05: msi mfii0: "PERC H710 Mini", firmware 21.3.0-0009, 512MB cache ok jmatthew@
2015-01-08increase namecache size to follow maxvnodes. seems better than desiredvnodes.Ted Unangst
(accuracy of variable names, aside) ok kettenis
2015-01-08Clear autoconf6 flag after autoconf6 cleanup happened, not before.Florian Obser
Otherwise clean up code will never run. OK mpi@, benno@, henning@
2015-01-08Include the Routing Table ID in "struct rtentry" and reorder the fieldsMartin Pieuchot
such that there's no size change on, at least, amd64. This will allow us to simplify some APIs and deprecate the remaining flavors of "struct route". ok claudio@, phessler@
2015-01-08Factorize various duplicated chunks of (old and horrible) code, checkingMartin Pieuchot
for the validity of a given outgoing route entry into a single function. This change is inspired from FreeBSD r111767. The function introduced here, rt_checkgate(), should hopefully die in a near future. Why should it die? Well, it is way too late to do such validity checks: if your kernel can ends up in ether_output() with an invalid route, please do not let it try to find a new one that might do the job. Go read this function if you're wondering why you're getting messages like: "arpresolve: X.X.X.X: route without link local address" Since this horrible logic has survived 20 years of copy & past and small modifications for workarounds without a single clear commit message, let's assume it is full of dragons and try to play safe. This factorization is not intended to change any behavior. With much inputs from bluhm@, tested by weerd@ and florian@ on setups with p2p IPv6 interfaces. ok bluhm@, benno@, florian@
2015-01-08Do not unconditionally set a link-local address.Martin Pieuchot
carp(4) has a hack to update its Ethernet address which was also generating the corresponding IPv6 link-local address. Since the removal of the NOINET6 flag, this link-local address was generated even if no IPv6 address has been configured on the interface. This unbreak carp setup without v6 addresses, found the hard way by sebastia@. ok sebastia@, benno@, stsp@, @phessler
2015-01-08Use the correct config registers for the RTL8139 family. Unlike the RTL8169Brad Smith
and RTL8168 family, the RTL8139 has different register map for config registers. From FreeBSD WoL bits reviewed and tested by stsp@
2015-01-07Only MS IntelliMouse have a Z axis, prevent a false positive triggeredMartin Pieuchot
by -Wuninitialized reported by jsg@. ok stsp@
2015-01-07use the same trick as mpii for posting the request descriptor withDavid Gwynne
a single 64bit write on lp64 archs, instead of two sequenced 32bit writes. cos the 64bit store is atomic, we dont need the mutex around it either.
2015-01-07Fix impi(4) to make watchdog work and not to panic.YASUOKA Masahiko
diff from uebayasi jsg ok uebayasi