summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2011-01-09trust the Tx/Rx chains masks in ROM except for the 4965 and 5100Damien Bergamini
which are known to have broken ROMs.
2011-01-09cleanup; change the way opns are attached.Damien Bergamini
include a fix for Intel Centrino Advanced-N 6250 devices by Antonio R Nicolosi.
2011-01-08split randomattach into random_init() and random_start(), so that weTheo de Raadt
can make attempts to load 'entropy' into the RC4. ok miod ariane
2011-01-08syncTheo de Raadt
2011-01-08new radeon; Claus AssmannTheo de Raadt
2011-01-08reserve one xfer for beacons during init.Damien Bergamini
2011-01-08fix LEDs handling.Damien Bergamini
do not read back the LED GPIO pin since it is configured in output only mode. makes the link LED blink on the WiFiStation EXT when scanning (the LEDs indicating the signal strength are not working yet).
2011-01-08the USB frontend has its own switch_chan() function, so no need toDamien Bergamini
do AR9271-specific stuff here.
2011-01-08clear pci configuration register 0x41 on resume, like during attach.Damien Bergamini
only clear it if it is != 0 while i'm at it.
2011-01-08Removed unused structure memberJordan Hargrave
2011-01-08spacesTheo de Raadt
2011-01-08switch back from PAGE_SIZE for the sake of sparcTheo de Raadt
2011-01-08destatic. ok deraadtTed Unangst
2011-01-07some minor improvements to rnd.Ted Unangst
1. only support pool words == 2048. 2. define the amount of key we use. 3. define the amount of rc4 we skip. 4. use arc4random_buf instead of reimplementing inline. 5. bzero some more "secrets". ok deraadt djm
2011-01-07substantial rewrite. put a very thin mutex at the entropy-collectionTheo de Raadt
side so that entropy events can come in from any kernel context. place a 2nd very thin mutex at the call-down path as well, so that any context can request random data. in the middle, meet with a bcopy that has no mutex, but copying unlocked data is actually a benefit. move the pool->MD5->RC4init sequence into a workq driven from a timeout, so that we can do all the heavy work without any mutex held or IPL; only grab the 2nd mutex to swap to a new RC4 state. (this workq design from tedu) ok dlg tedu
2011-01-07since randomwrite() also has no blocking operations at all, we need toTheo de Raadt
do a yield, otherwise an accidental cat by root into /dev/random kind of makes your machine hurt a lot.
2011-01-07the midlayer uses -1 as a wildcard when processing requests for probes orDavid Gwynne
detaches. switch the types from u_int to int in the vscsi ioctl that asks for probes or requests. this is so claudio@ can get all luns on a target probed in iscsid with a single ioctl call. ok deraadt@
2011-01-06For very large operations in randomread(), use a local rc4 instanceTheo de Raadt
much like arc4random_buf_large does, but without re-initializing it every 8K. ok tedu
2011-01-06Remove dead links.Damien Bergamini
Atheros have reworked their website.
2011-01-06only athn at uhub (not pci or cardbus) needs firmloadDamien Bergamini
2011-01-06cleanup athn_usb_rx_frame().Damien Bergamini
remove padding after 802.11 header if any.
2011-01-06implement fast channel change.Damien Bergamini
this dramatically reduces the number of register reads/writes and thus the number of context switches when changing channel. makes scanning much faster.
2011-01-06create STA entry for our BSS upon association.Damien Bergamini
update Rx filter after association. move RECV_START command outside of rx_enable since rx_enable callback is not allowed to fail.
2011-01-06init and destory the bufq in the ioctl handler, asThordur I. Bjornsson
the softc is zero'ed when the vnd is unconfigured; otherwise we blow up when configuring a vnd the second time since the bufq structure is kaputt. found by and OK krw@
2011-01-06make all /dev/*random nodes respond; in fact, don't even worry aboutTheo de Raadt
the minor number at all. The chances of an application ignoring the error on /dev/random are *greater* than the risk of an application getting bad data from it. ok dlg tedu kjell
2011-01-06"athn* at uhub? port ?"Damien Bergamini
this adds preliminary support for the Atheros AR9271 chipset and probably the AR9280+AR7010 and AR9287+AR7010 too though those were not tested. scanning still takes a very long time (~1 sec per channel) but otherwise, operation in STA mode seems stable. will implement fast channel change soon. committed over the Ubiquiti WifiStation EXT (AR9271) on i386 with WPA. requires firmware (see man page for details) ok deraadt@ (who checked the .h files)
2011-01-05Ignore MCFG tables with an empty bus range. Makes stu@'s amd64 machineMark Kettenis
boot again.
2011-01-05cosmetic, no binary change.Damien Bergamini
2011-01-05cut vnd over to using bufq's again.Thordur I. Bjornsson
OK dlg@, beck@, krw@.
2011-01-05remove debug codeTheo de Raadt
2011-01-05mark unused fields in struct rndstatsTheo de Raadt
2011-01-04Support machdep.lidsuspend support in apm(4) land, at least on thinkpadsTheo de Raadt
which have aps(4). You can now turn off the BIOS option for lid suspends, and control it with sysctl.
2011-01-04Add support for Memory Mapped Configuration space access. This gives usMark Kettenis
access to PCIe extended configuration space access on modern i386 and amd64 machines.
2011-01-04in arc4_stir() only grab 64 bytes from the MD5 output. Grabbing moreTheo de Raadt
does not substantially increase the quality of the RC4 state. These days we may have lots more userland libc's initializing themselves, or lots of largebuf kernel calls which re-initialize their own RC4, and thus deplete the MD5 more than originally intended. discussed at length with tedu, djm, kjell and kettenis ok kettenis
2011-01-03remove sc->sc_kbcslot, as is always PCKBC_AUX_SLOTAlexandr Shadchin
ok krw, miod
2011-01-03use host_flags directly as they're initialized during attach time.Federico G. Schwindt
jakemsr@ ok.
2011-01-03the flags method of the ac97 host interface is optional. check thatJacob Meuser
it not NULL before using it. fixes crash reported by jmc@
2011-01-03syncAlexander Yurchenko
2011-01-03Add Radeon HD 3450 AGP; from yason@linklevel.netAlexander Yurchenko
2011-01-02Prevent a few more NULL pointer dereferences in troublesome situations; fromMiod Vallat
NetBSD
2011-01-02Re-add code for ACPI taskqueue, eliminates need for state vars in acpi softcJordan Hargrave
Serialize processing ACPI tasks for sleep/powerdown/GPE event ok deraadt@
2011-01-01Do not fold the MD5 in half. This might have made sense to someone whenTheo de Raadt
we were feeding the MD5 output direct to consumers, but now we only feed the RC4, so the effect is to throw away half of the stretched data. ok tedu djm, initial discussion started by kjell
2011-01-01fix spacingAlexandre Ratchov
2011-01-01regenDamien Bergamini
2011-01-01the ACCTON is an AR9280+AR7010, not an AR9271, so update id accordingly.Damien Bergamini
cleanup other AR928X+AR7010 ids while i'm here.
2011-01-01cleanup, no binary change.Damien Bergamini
2011-01-01more AR9380/AR9485 bits.Damien Bergamini
add Tx gain initvals for high-power AR9380 solutions.
2011-01-01unbreak kernel builds; sorry guys.Damien Bergamini
pointed out by Benoit Lecocq.
2011-01-01add code to read OTPROM on the AR9485Damien Bergamini
2011-01-01comment cleanupTheo de Raadt