summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2008-04-20Remove unused flags.Brad Smith
ok dlg@
2008-04-20Don't bother to call rl_rxeof() twice if both the RX Ok and Err bits are set.Brad Smith
Based on the same change to re(4) quite some time ago. ok dlg@
2008-04-20two more i2c probe checks. adt has split off or been sold to ONTheo de Raadt
semi, so now even more data sheets are available at http://www.onsemi.com/PowerSolutions/parametrics.do?id=2127 so if people want to help write drivers...
2008-04-19Change ELF loader to use the LMA as the load address for theTobias Weingartner
various segments. Hopefully this will help remove various hacks in the boot loader in the future. This should have no effect on most architectures (as we tend to have LMA == VMA). ok drahn@, soft ok's various others.
2008-04-19in nfsm_reqh(), only allocate an mbuf cluster if theThordur I. Bjornsson
len exceeds MLEN, not MINCLSIZE; inspired by a similar commit from damien. ok damien@, blambert@
2008-04-19Sort functions and remove obsolete bits.Marcus Glocker
2008-04-19add a driver flag to force the negotiation of SATA 1 transfersDamien Miller
(1.5Gb/s). Useful where faster speeds are unstable; ok dlg@
2008-04-18syncTheo de Raadt
2008-04-18shorten nameTheo de Raadt
2008-04-18Add VS_INPUT_HEADER descriptor.Marcus Glocker
2008-04-18Now that i386 has a per-process astpending, we can garbage collect ipi_astMark Kettenis
and do an ipi_nop cross-call from signotify() instead. ok miod@
2008-04-18detect adm1034Theo de Raadt
2008-04-18Halt CPUs upon reboot/halt.Mark Kettenis
ok krw@
2008-04-18adm1033 has a rev register to check as wellTheo de Raadt
2008-04-18if an iic operation fails to move all the data, return errorTheo de Raadt
ok kettenis
2008-04-18Add a function which can identify an USB descriptor explicitly by it'sMarcus Glocker
size, since the UVC spec uses different USB descriptors with the same bDescriptorSubtype ID.
2008-04-18extend the if_ethersubr.c crc functions to support updating a runningDamien Miller
crc in addition to the existing "oneshot" mode and use them to replace ieee80211_crc_update() with the new ether_crc32_le_update(). Saves 1k kernel bss + some code. Mark the new ether_crc32_[lb]e_update functions as __pure for a ~25x speedup (on my i386 at least). feedback and ok damien@
2008-04-18use arc4random_uniform() for random number requests that are not aDamien Miller
power of two. use arc4random_bytes() when requesting more than a word of PRNG output. ok deraadt@
2008-04-18correct sizeof; palmeidaTheo de Raadt
2008-04-17attach FTDI 2232LFelix Kronlage
2008-04-17Add missing monitor mode capabilities flag.Brad Smith
ok damien@
2008-04-17Really try to schedule clock ticks at fixed intervals. Make sure hardclock()Mark Kettenis
gets called for every clock tick, even if we miss one.
2008-04-17save some space by making use of the WEP CRC table from net80211Damien Bergamini
and use the ieee80211_crc_update() function too. not tested as I do not have a wi(4) but I see no reason why it would not work. "Just be brave" deraadt@
2008-04-17make it more apparent that when we are dealing with 16 bit registersTheo de Raadt
(not a series of 8 bit registers), the bytes come off the wire in big-endian order
2008-04-17do not blindly call ieee80211_get_hdrlen() in rt2860_rx_intr().Damien Bergamini
we may end up passing control frames (ps-poll or others) which is not supported by ieee80211_get_hdrlen(). first found by pedro la peu, reminded by jsg@ closes kernel/5750
2008-04-17call ieee80211_crc_init() only once, when the first 802.11 deviceDamien Bergamini
attaches instead of at every attach. discussed with deraadt@
2008-04-17use sizeof(thing) instead of hard-coding itTheo de Raadt
2008-04-17use sizeof(thing) instead of hard-coding itTheo de Raadt
2008-04-16Use ntohs() to swap the raw i2c data to native format; tested by sthenTheo de Raadt
2008-04-16Tune isoc maximal transfer size to a better value. Makes all availableMarcus Glocker
resolutions on my cam work.
2008-04-16more efficient use of mbufs in nfsm_uiotombuf().Damien Bergamini
allocate a mbuf cluster only if length is greater than MLEN instead of MINCLSIZE. ok blambert@, thib@
2008-04-16Support the pcf8584 variant found on the u25/45.Mark Kettenis
2008-04-16Turns out getpropstring() returns an empty string if a property is missingMark Kettenis
instead of NULL. Makes rtc(4) really work on the u25. tested by mikeb@
2008-04-16Kernel implementation of the 4-way handshake and group-keyDamien Bergamini
handshake protocols (both supplicant and authenticator state machines) as defined in the IEEE 802.11i standard. Software implementation of the TKIP (Temporal Key Integrity Protocol) and CCMP (CTR with CBC-MAC Protocol) protocols. This diff doesn't implement any of the 802.1X authentication protocols and thus only PSK authentication (using pre-shared keys) is currently supported. In concrete terms, this adds support for WPA-PSK and WPA2-PSK protocols, both in station and hostap modes. The following drivers are marked as WPA-capable and should work: bwi(4), malo(4), ral(4), iwn(4), wpi(4), ural(4), rum(4), upgt(4), and zyd(4) The following options have been added to ifconfig(8): wpa, wpapsk, wpaprotos, wpaakms, wpaciphers, wpagroupcipher wpa-psk(8) can be used to generate keys from passphrases. tested by many@ ok deraadt@
2008-04-16Oops, decrease debug log level back to 1.Marcus Glocker
2008-04-16Some formatting nits. No functional change.Owain Ainsworth
2008-04-16Use the timeout(9) API the right way: Don't initialize the timeoutMichael Knudsen
cookie all the time, and only call timeout_del if we're not going to timeout_add right away. Testing by johan@, oga@, sthen@, and possibly some more people (thanks). Ok krw@, oga@, sthen@.
2008-04-16Replace handrolled hashes with a splay tree, while there plug a memleakPierre-Yves Ritschard
inherited from the original drm driver. input and ok oga@.
2008-04-16Make sure tickcmpr_set() always writes a time in the future.Mark Kettenis
2008-04-16Start to make device initialization automatic instead all the staticMarcus Glocker
games. Tested by robert@ and myself
2008-04-15Add workaround for UltraSPARC-II errata, where writes to %tick_cmpr wouldMark Kettenis
sometimes fail, which would result in the periodic clock interrupts on a CPU stop. Spotted in a NetBSD commit message, loosely based on code in OpenSolaris.
2008-04-15Add support for the Texas Instruments bq4802 real-time clock found on theMark Kettenis
Ultra 25 and Ultra 45.
2008-04-15Take a shot at LM76 support (13 bit temperature, 0.065 degC per LSB) forTheo de Raadt
when we finally find one of these devices. looked at by kettenis..
2008-04-15It turns out the mysterious chip with the heatsink glued on, found on mgxMiod Vallat
video boards, is a known entity, so add support for 2d acceleration with the help of the X code (which makes baby Jesus cry). The blitter is fast enough to make a cgsix feel as slow as a cgthree in comparison.
2008-04-15describe why fd passing is now so fucked up, and who's fault it isTheo de Raadt
2008-04-15fix a comment. no binary change.Damien Bergamini
2008-04-15Fix braino in mgx_loadcmap() invocation.Miod Vallat
2008-04-15Oops, it's a bit too early for -Wvariable-decl on sparc.Miod Vallat
2008-04-14Introduce macros to switch to normal and alternate globals and switch toMark Kettenis
use the .section based mechanism to patch them up for sun4v.
2008-04-14Rework NFS mbuf write routines:Bret Lambert
nfsm_uiotombuf(): - no meaningful return, function becomes void - replace frankensteined uiomove/MGET with actual call to uiomove nfsm_strtmbuf(): - no meaningful return, becomes void - rename and reorder parameters to be consistent with other functions - becomes wrapper to nfsm_uiotombuf nfsm_buftombuf(): - new function; unused but slated for future use - wrapper to nfsm_uiotombuf As a bonus, making these functions void removes much unneeded code and garbage collects `magic' variable t2 which was only used (invisibly) by the macros from nfsm_subs.h Preps the way for removing much more NFS goo... testing by myself, thib@ and merdely@ ok thib@