summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2008-04-20- Recognize the 8168C chipset.Brad Smith
- Add some more defines for the 8168C chipset. From NetBSD ok dlg@
2008-04-20Remove redundant checks for the 8139C+ chipset, this code can onlyBrad Smith
be reached if using the 8139C+ chipset. ok dlg@
2008-04-20- Add some more defines.Brad Smith
- Use one of the new defines in the re(4) code to remove a magic number. - Correct a comment. - Fix a typo. Most of this is from NetBSD. ok dlg@
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-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-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-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-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-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-12Tighten check for consoleness by comparing comconsiot as well as comconsaddr.Mark Kettenis
ok deraadt@
2008-04-10the success of a command is reported in the mbox, but not passed on to theDavid Gwynne
completion routines to do anything useful with. this stashes the commands status in the ccb for the ccb_done handlers to use. the completion path for passthru commands now checks the mbox status to see if the command actually works. this prevents phantom devices from appearing on the passthru busses.
2008-04-09Increase buffer size sent to the fifo, and clamp the size correctly.Theo de Raadt
Scrub the buffer afterwards, too
2008-03-31Add define for 24 hour time.Joel Sing
2008-03-20VLAN tag info must be inserted into all descriptors of a multi-descriptorBrad Smith
packet transmission. From NetBSD Fixes PR 5655. Tested by Panagiotis Efstratiou <slasher at ee dot auth dot gr>, brad@ and sthen@
2008-03-19Make sure we pass the right argument to isp_wdog() when setting timeouts.Mark Kettenis
ok deraadt@
2008-03-16Make agp(4) attach at vga(4) instead of pchb(4). This is because sometimesOwain Ainsworth
agp and drm need to use the same memory mapping, the best way to deal with that is to allow them to share (that's coming later), for this to work cleanly we move the attach point of agp. Ideally most agp drivers would attach at pchb, with only agp_i810 (and any that work similarly) attaching at vga, but this will do for now. ok kettenis@, miod@.
2008-03-13Do not increment the input packet counter in these drivers asBrad Smith
ieee80211_input() already does this. Mentioned by Peter Philipp in PR 5248. ok claudio@ mglocker@
2008-03-12Set the RX FIFO threshold to no RX threshold for re(4) adapters.Brad Smith
This resolves a number of various bad symptoms experienced by numerous users especially with the adapters at Gig speed. Tested by quite a few users. From FreeBSD/NetBSD ok deraadt@
2008-03-01Resolve an issue where the Starfire chipset can get into an endless loopBrad Smith
of watchdog timeouts. This happens due to the fact that the driver counts the packets in the output queue to check for the chip hanging but whenever a watchdog timeout happens and the init routine is called and in turn the stop routine the counter is never actually cleared. From Geoff Steckel via PR 5724 ok krw@ martin@ mglocker@
2008-02-25Make bwi compile in debug mode again.Marcus Glocker
2008-02-25Sync up with DragonFlyBSD driver. Please read their commit messageMarcus Glocker
for details: http://leaf.dragonflybsd.org/mailarchive/commits/2008-02/msg00165.html Tested and OK brad@, kettenis@
2008-02-21Some fxp(4) chips do not like having their status/command registers accessedBrad Smith
as 8-bit reads/writes even though they are 16-bit. This can cause the respective interfaces to lock up until the system is hard rebooted. Having the driver read/write to these registers as 16-bit entities resolves the instability. From mickey@ ok krw@ sthen@ dlg@
2008-02-20- Only clear the IFF_OACTIVE flag if packets were processed.Brad Smith
- Only clear the watchdog timer if there are no more packets to process otherwise rearm the timer. From mickey@ Tested by krw@, mikeb@ and brad@ ok dlg@
2008-02-17Simplify the hw revision handling by removing the use of theBrad Smith
rl_type softc field and only relying on the sc_hwrev softc field thoughout the driver. Tested by a number of users from tech@ ok dlg@
2008-02-16Zap KKASSERT porting macro and use KASSERT instead.Marcus Glocker
2008-02-16Count output packets.Marcus Glocker
2008-02-16Replace bwi_rate2plcp() with ieee80211_rate2plcp().Marcus Glocker
2008-02-16Fix spacing / comments.Marcus Glocker
2008-02-16While importing the driver a lot of printf's have been converted toMarcus Glocker
DPRINTF's by mistake. Fix this so we can see fatal errors without beeing in DEBUG mode.
2008-02-16Report rssi and rate in rx radio tap.Marcus Glocker
From the DragonFlyBSD driver.
2008-02-16Return NO_CCB and not TRY_AGAIN_LATER when running out of ccb's.Kenneth R Westerback
Eliminates 'not queued' errors reported on the mailing lists. Tested by Michael (belenus at bsdmail dot de). ok marco@
2008-02-16Better support for 11b mode.Marcus Glocker
From the DragonFlyBSD driver.
2008-02-16Remove some double prototype definitions.Marcus Glocker
2008-02-16Always print device name in front of debug messages.Marcus Glocker
2008-02-12pin 47 on ALC65{0,5,8} ac97 codecs can be used for either eapd orJacob Meuser
spdif-in. usually the deault of spdif-in is used, but some ATI devices use pin 47 for eapd. add a list of subsystem ids (from ALSA) for these devices, and set bit 1 of register 7a to select the correct function of pin 47 for these devices. there was code here to do this prior to the ac97 update, but it was accidentally removed. rename the flag and bit to more accurately reflect what this does and hopefully avoid future confusion. problem noticed and fix tested/ok'd by matthieu@, thanks also some discussion with and pointers from brad@, thanks
2008-02-11add support for the mfi controllers with the ppc iops, aka, LSI SAS1078 orDavid Gwynne
Dell PERC6. committed off a machine booting and rooting off a perc6. tested on a perc5 by marco@ ok marco@
2008-02-10Set reserved bits in the TX Configuration Register the value from the Sun docs.Mark Kettenis
Seems to fix watchdog timeout issues in Sun ERI variants. tested by a few
2008-02-08Return ENOTTY not EINVAL for unsupported ioctl's;Thordur I. Bjornsson
ok kettenis@
2008-02-03Remove sparc64-specific hack to byteswap pcmcia bus_space access. This is noMark Kettenis
longer necessary now that stp(4) maps the pcmcia windows little-endian. Makes wi(4) behind cbb(4) work on sparc64. tested by miod@
2008-01-26Set the return value instead of returning right away so that the DMABrad Smith
memory is actually synched. ok dlg@
2008-01-26sync dma mem back to the cpu on poll failure.David Gwynne
from mickey via pr5714
2008-01-26despatch -> dispatchDavid Gwynne
disparate spellink fix from mickey
2008-01-23Cleanup cn_pri. Change constants to more meaningful names, rather thanJoel Sing
the hp300 related ones currently in use. CN_NORMAL becomes CN_LOWPRI, CN_INTERNAL becomes CN_MIDPRI and CN_REMOTE becomes CN_HIGHPRI. ok miod@
2008-01-22Add splnet around mii_tick() in rl_tick().Brad Smith
ok dlg@
2008-01-21use the right capitalization for `QLogic'Igor Sobrado
ok jsing@
2008-01-18Print consoleness the canonical way.Mark Kettenis
2008-01-16- Store the hw revision into a new softc field in re_attach() and referenceBrad Smith
the softc field wherever it is necessary. - Use a switch case in re_setmulti() to make things a bit easier to read. ok henning@ dlg@
2008-01-15bring in lots of ac97(4) and auvia(4) updates from NetBSDJacob Meuser
user visible changes: - when setting up ac97(4) mixer items, for some features like surround sound, check if the feature if supported by the codec and only add items for that feature if it is - auvia(4) now supports multichannel playback with at least some multichannel ac97(4) codecs fixes problems for me and ajacoutot with different auvia(4) devices/codecs. no regressions reported by testers. if you have an ac97(4) audio device and are using mixerctl.conf(5), you may want/need to update it. ok ratchov
2008-01-13Check for a negative devinfo index, which could get here throughDeanna Phillips
mixer_ioctl. ok jakemsr@