summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-09-24ANSIfy netinet/; from David HillChristian Weisgerber
2016-09-24If the value of r0 upon entering the kernel is zero, interpret this as theMark Kettenis
address of the end of the symbol table. This will make it possible to get rid of the code in the bootloader that patches up the kernel with the updated esym value. ok tom@, patrick@
2016-09-24Pass esym to the kernel in r0. Since u-boot passes 0 in this register, weMark Kettenis
can easily determine that the value passed is valid and use it to initialize the kernel symbol tableo. ok tom@, patrick@
2016-09-24Remove a couple of unsused static inline functions. Also remove a comparisMark Kettenis
of an array to a null pointer that is always false. Found with clang. ok jsg@
2016-09-24Remove unused functions.Mark Kettenis
ok jmatthew@, visa@
2016-09-24Add an implementation of __aeabi_ldivmode() and __aeabi_uldivmod(); clangMark Kettenis
generates calls to these functions when compiling an armv7 kernel. Code from NetBSD's unified userland+kernel implementation, with lots of irrelevant (for us) #ifdefs removed. ok patrick@, guenther@
2016-09-23Attach imxocotp(4) using the fdt. Since this means that imxtemp(4) attachesMark Kettenis
before imxocotp(4), delay reading the temperature sensor calibration information until after imxocotp(4) attaches.
2016-09-23Rework Per Packet Info handlingMike Belopuhov
Per Packet Info is an NDIS meta information embedded in the RNDIS message to communicate various offloading and scheduling operations with the backend. Due to various versions of NDIS supported by Hyper-V some of the offloading features may or may not be available. This commit brings support for IP and protocol checksum offloading as well as initial code for hardware VLAN tagging and jumbo frames where supported.
2016-09-23since the kernel ticks are every 10ms, bump our minimum up a little bit.Peter Hessler
make it harder to overload the kernel
2016-09-23Setup checksum offloading instead of relying on the default configuraitonMike Belopuhov
2016-09-23Configure NDIS VLAN and MTU parameters for NVSP 2 and newer backendsMike Belopuhov
2016-09-23based on a more careful reading of the spec, we're not allowed to makePeter Hessler
decisions on what the "my discriminator" value is from our neighbor. we should only copy it and send it back.
2016-09-23Use "%s" to print the version string. Avoids a "format string is not aMark Kettenis
string literal" warning from clang and matches what we do on amd64.
2016-09-23Fixup the NDIS_OFFLOAD_PARAMS_SIZE_6_1 definitionMike Belopuhov
2016-09-23Improve error handling when we fail to send the RNDIS messageMike Belopuhov
2016-09-23Specify a page size boundary for Tx segmentsMike Belopuhov
2016-09-23only set the diag code when we we decide to fail it, not when the firstPeter Hessler
problem is seen
2016-09-23remove splsoftnet around the socket functions. if they need it, theyPeter Hessler
will call it themselves. also ensure that bfdclear is protected by softnet. requested by claudio@ and mpi@
2016-09-23Add quirk to allow Yamaha UR22 to attach as uaudio(4). FromAlexandre Ratchov
Michael W. Bombardieri <mb at ii.net>. Thanks!
2016-09-23syncAlexandre Ratchov
2016-09-23Add Yamaha UR22 audio interface.Alexandre Ratchov
From Michael W. Bombardieri <mb at ii.net>, thanks!
2016-09-23kern.arandom no longer existsTheo de Raadt
from rob pierce
2016-09-22Stop pushing version & cfdata into as entropy, since the contents areTheo de Raadt
known and we rely on the bootpath to prime us anyways. This also solves the issue raised by kettenis, of version potentially being non-word aligned ok kettenis djm
2016-09-22Add aeabi aliases.Mark Kettenis
ok guenther@, patrick@
2016-09-22Raise spl level to IPL_SOFTNET before calling rt_ifmsg().Martin Pieuchot
From dhill@, found the hardway by semarie@
2016-09-22Introduce a new 'softclock' thread that will be used to execute timeoutMartin Pieuchot
callbacks needing a process context. The function timeout_set_proc(9) has to be used instead of timeout_set(9) when a timeout callback needs a process context. Note that if such a timeout is waiting, understand sleeping, for a non negligible amount of time it might delay other timeouts needing a process context. dlg@ agrees with this as a temporary solution. Manpage tweaks from jmc@ ok kettenis@, bluhm@, mikeb@
2016-09-22Periodically call mii_tick() like all our other ethernet drivers that useMark Kettenis
mii(4). Should fix the link negotiation issues that people have been seeing. ok jsg@, mikeb@, guenther@
2016-09-22Fix indentation. No binary change.Jonathan Gray
2016-09-22Fix indentation. No binary change.Jonathan Gray
2016-09-22Fix indentation. No binary change.Jonathan Gray
2016-09-22Fix indentation. No binary change.Jonathan Gray
ok mpi@
2016-09-22Remove some unused cruft from iwm, including a local namespace-pollutingStefan Sperling
definition of an ieee80211_tu_to_usec() macro...
2016-09-22Simplify assignment of sgi_ok variable in iwm_setrates(). No functional change.Stefan Sperling
2016-09-22Fix indentation of a break statement. No binary change.Jonathan Gray
2016-09-21If not set, set hw_vendor to the name of the first pvbus.Reyk Floeter
This sets hw.vendor to "OpenBSD" if running on vmm(4) because it doesn't provide an SMBIOS. OK mikeb@
2016-09-21sysctl KERN_ARND is no longer used (in ports, it only occurs in fallbackTheo de Raadt
paths of libevent). This interface was the first generation of what eventually became getentropy(2) and arc4random(3) -- june 1997! Ports scan by sthen, general agreement guenther
2016-09-21Always set the bit which allows RTS in iwm's LQ command.Stefan Sperling
This bit was only set in 11n mode previously. ok sthen@
2016-09-21Make iwm protect the session during association more like Linux does it.Stefan Sperling
ok sthen@
2016-09-21Properly support the mac context command in iwm. This was wrong in many ways.Stefan Sperling
This commit includes style fixes as well as actual bug fixes. Remove the global in_assoc flag from the softc. We can just pass a fixed argument to functions to indicate whether we're already associated. Remove in_tfsid from the softc as well. It was implicitly set to zero and never changed. A corresponding macro already exists so use it instead. Always copy the BSSID into the mac context command, as the Linux driver does. This helps the firmware during association. Set the firmware state to 'associated' once we've moved to RUN state and our assoc ID is known. Earlier versions of iwm used to set the firmware to 'associated' but this was disabled in r1.91 since it didn't work correctly due to bugs which are now fixed. Use live DTIM information obtained from the AP, rather than using the default DTIM period of our wireless stack. Check return values of functions called after moving to RUN state. ok sthen@
2016-09-21Make iwm return EBUSY from its ic_ampdu_rx_start() handler andStefan Sperling
call the functions provided by the wireless stack to accept or refuse BA agreements depending on the status returned by firmware. ok sthen@
2016-09-21Fix nfsrv_symlink() indentation. No binary change.Jonathan Gray
ok mpi@ deraadt@
2016-09-21For the keep-alive period in iwm's power command, use the DTIM periodStefan Sperling
specified by the AP, rather than the default DTIM period of our wireless stack (which is not applicable when running as a client anyway). And tell the firmware to disable power-saving. ok sthen@
2016-09-21Copy the AP's actual EDCA parameters into iwm's mac context commandStefan Sperling
rather than some fixed values present in this file since r1.1. Allows the firmware to properly time its transmissions in 11n networks. ok sthen@
2016-09-21Add the BSS's basic rates to iwm's LQ command, not all the rates.Stefan Sperling
Makes the firmware use appropriate Tx rates for ACKs.
2016-09-21When processing an ADDBA request, iwm(4) runs a task which sends aStefan Sperling
command to the firmware and waits for confirmation. This command can fail and there was no way we could recover from such an error. Allow drivers to return EBUSY from their ic_ampdu_rx_start() handler to tell the stack not to send a confirmation just yet. The stack provides functions which the driver can call to accept or refuse the request. There is no functional change yet. This just shuffles code around so drivers may insert themselves into the process. ok mpi@
2016-09-21Modernize arm assembly in the kernel for clang.Mark Kettenis
Based on a similar diff in bitrig. No binary change when compiled with gcc. ok patrick@
2016-09-21Remove some dead code and only enable tx and rx interrupts.Mark Kettenis
ok patrick@, tom@, mikeb@
2016-09-21straighten the chairsDavid Gwynne
2016-09-21SierraWireless MC7455.Martin Pieuchot
From Yannick Gravel, ok phessler@
2016-09-21regenMartin Pieuchot