summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2008-06-14Allow ath(4) to detach cleanly when attaching via PCI. AlsoJoel Sing
complete/cleanup the attachment cleanup code. ok reyk@ jsg@
2008-06-13If you have #if FOO > 0 parts of your softc beJonathan Gray
sure to #include "foo.h" in all code that uses the softc, otherwise some object files will have a different idea of how big the softc struct is. This will result in things like part of the softc, say the interrupt handler being overridden by other data. Putting printfs in the main object file will look fine as it has the right idea as to what the size is. It is only after several hours debugging that you start to figure out what the hell is going on. jsing started trying to figure out the problem and got hints from kettenis that it likely wasn't an interrupt problem, after quite a bit of head scratching with joel I eventually spotted the problem. ok reyk@ jsing@
2008-06-11Zero mbreg_t (mailbox) structures allocated on the stack before fillingKenneth R Westerback
them in and sending to the adapter. Reduces probe of empty controller from 15 minutes or so to 30 seconds or so. And probably fixes other things too. Also add a few more debug statements and tweak some comments. From mjacob via FreeBSD. ok deraadt@
2008-06-11Don't get the address of the txstats pointers when doing bzero,Jonathan Gray
just use the actual pointers. Debugged into the early hours of the morning with todd, without being able to use a keyboard with ddb. Fixes a panic seen on his powerbook.
2008-06-08Set up shutdown and powerhooks with code adapted from rt2661.Jonathan Gray
Fixes resume from suspend/hibernate problems mentioned in PR 5845.
2008-06-08Make serial console on non-primary ports work to on i386.Mark Kettenis
tested by jbg@, "it is right" deraadt@
2008-06-01Make SCSI isp(4) use the same SCSI initiator ID as the prom on sparc/sparc64.Mark Kettenis
ok marco@, krw@, deraadt@
2008-06-01ACX111 parts can't send using short slot time, but it seems to have no problemBrad Smith
to receive packets sent using short slot time. Turn on short slot time support, so that we don't prevent other STA from using short slot time. From sephe@DragonFly ok mglocker@
2008-06-01Use 1Mbits/s as beacon sending rate; it seems to fix TX performance issueBrad Smith
when using acx(4) as HostAP. From sephe@DraonFly ok mglocker@
2008-05-31Properly set the IFF_OACTIVE flag if all the descriptrs are in use forBrad Smith
the TX ring and clear the flag when some have been freed. ok dlg@ kettenis@
2008-05-28Don't try reading the SXP_PINS_DIFF on the 10160 and 12160 SCSI controllers.Mark Kettenis
The registers seems to return 0 on my 12160 and there are some indications that it doesn't really exist. This may fix panics seen with the 10160 on sparc64 machines. ok krw@
2008-05-27Don't print SCSI ID, it's redundant now that scsibus(4) prints the sameMark Kettenis
information. ok deraadt@
2008-05-27Don't print SCSI ID, it's redundant now that scsibus(4) prints the sameMark Kettenis
information.
2008-05-25add a function to get default parameters for ac97 codecs. all ac97Jacob Meuser
codecs support 16-bit stereo slinear_le @ 48kHz. ok ratchov@
2008-05-25tweak the SPI port configuration if we figure out that it is not quiteDavid Gwynne
right, in particular the adapters scsi id on the bus. requested by kettenis@ who is having trouble with the scsi controller on the primepower 250.
2008-05-23Bye bye awi(4). No net80211 love, uses its own WEP code and has not workedBrad Smith
properly in 8.5 years so just garbage collect the driver. ok damien@ deraadt@
2008-05-22More timeout(9) usage cleaned up.Michael Knudsen
ok claudio
2008-05-21Switch i386 from pccom to com. Welcomed by many.Mark Kettenis
ok dlg@, jsing@, deraadt@
2008-05-13Remove commented out NetBSD __KERNEL_RCSID macro usage.Brad Smith
ok dlg@
2008-05-11Fix a typo with the media duplex flag being used for AUI connectionsBrad Smith
so that the status routine will properly display half duplex instead of full. ok henning@ krw@
2008-05-09- Count excess and late collisions as output errors.Brad Smith
- Count receive errors as input errors. Based on similar change to the gem(4) driver from NetBSD. ok kettenis@
2008-04-30fix serial console handling on amd64. currently only glass console everDavid Gwynne
works, even if the boot loader is configured to use serial console. after the changes jsing and i made, the initial probe of the serial port was failing since the default base addres for the port is invalid. cos of that the kernel would only ever consider the glass console for use. this fixes it by reprobing the serial port if we get any config for it from the boot loader. advice on aesthetics from miod@ advice and ok from kettenis@
2008-04-26hardware TKIP (including MIC) + CCMPDamien Bergamini
2008-04-26Keep order of "#if defined..." consistent.Mark Kettenis
2008-04-25the code that parses arguments from the boot loader on amd64 wasnt checkingDavid Gwynne
what type of console was specified, so when a glass console was used it was still configuring serial bits. this makes it so serial config only occurs for serial console devices. found by jolan@, thib@, and maybe sthen@ sorry guys
2008-04-24MD_ISA_IOT is not defined anywhere so get rid of it.Joel Sing
Spotted by drahn@, ok dlg@
2008-04-24Keep order of "#if defined..." consistent.Joel Sing
ok dlg@
2008-04-24Clean up comments.Joel Sing
2008-04-24Cleanup serial console handling and remove some of the MD code from com.c.Joel Sing
Specify the serial configuration from within the MD code, rather than passing things via macros. This will allow other platforms to more readily change the serial console configuration. Committing this so it actually gets tested. ok dlg@
2008-04-24some ciss(4) firmwares use different physical drive addressing, resultingJakob Schlyter
in bioctl(8) functions not available; pr#5682. code from mickey. tested by several people. ok dlg@ krw@
2008-04-23Remove driver for pre 802.11 RangeLAN2 wireless devices.Jonathan Gray
It doesn't compile, was never finished, is now irrelevant, and miod has taken it apon himself to scare good boys and girls by suggesting they read the code. ok dlg@
2008-04-20Move the threshold fix from the re(4) code back into the header asBrad Smith
it was going to be before the release. No functional change. prodded by kettenis@ ok dlg@
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@