summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2006-11-12Rewrite part of malo_tx_mgt() to do the mbuf dance in a nicer way. ThisClaudio Jeker
is still ugly beyond any help but what do you expect from HW that needs to insert unused fields between header and data? OK mglocker@
2006-11-12Simplify code and remove a delay() by actually waiting for the command toClaudio Jeker
finish. OK mglocker@
2006-11-11be silentTheo de Raadt
2006-11-10Fix typo.Mark Kettenis
2006-11-10Add support for Sun 1000baseSX cards.Mark Kettenis
ok deraadt@
2006-11-10Fix DMA firmware command interface (poll for command response), and get theMarcus Glocker
card to associate successfully with an AP. ok claudio@
2006-11-09Correctly update the m_pkthdr.len in the raw bpf tap. OK mglocker@Claudio Jeker
2006-11-09Fix a bug in the firmware command function and check if the main firmwareMarcus Glocker
has been loaded by polling for the firmware response instead just waiting a static amount of time. ok claudio@
2006-11-07Add TX done cleanup.Marcus Glocker
2006-11-07- The ASIX AX88796 is an NE2000 compatible ethernet chip, but doesn't seemBrad Smith
to have "remote DMA complete bit" is ISR. So, don't wait for ISR.RDC bit after writing a packet. From bsh@NetBSD - Figure out whether the shared memory region is word-accessible in the same place we figure out its size, and store this in the softc, rather than using a series of comparisons later. From mycroft@NetBSD - support for the NE2000 type AX88790. From Yong-Jhen Hong <yongjhen at alqualonde dot org> via NetBSD Tested by deraadt@ and Adriaan <misc dot adriaan at gmail dot com> ok deraadt@
2006-11-06Also reset the TX ring if the card gets stopped.Marcus Glocker
2006-11-06Enable TX of management frames. Fix/add firmware commands, add more debugMarcus Glocker
informations, minor cleanup.
2006-11-06Don't advertise USB wi adapters as supported hostap devices,Jonathan Gray
the code would need to be largely overhauled if the hardware actually supports it. Fixes a panic when trying to set hostap on a usb wi, PR 5154.
2006-11-06figured out by tdeval@:Reyk Floeter
>During factorization in 1.57, the switch block was moved too early. >Hence it's updating an uninitialized ah structure.
2006-11-05ANSIBrad Smith
2006-11-01Put common data for each RX DMA descriptor into a new rxsoft structure.Brad Smith
From tsutsui@NetBSD Tested by brad@ otto@ Tested on amd64/i386/sparc64
2006-10-31- Rename a variable to clarify meaning of index.Brad Smith
- Rename RL_[TR]X_DESC_INC() macro to RL_NEXT_[TR]X_DESC() and change them to return rvalues to avoid possible side effects. - Also define RL_NEXT_TXQ() for rl_txq index and use it as well. From tsutsui@NetBSD
2006-10-31- Make DMA descripter members volatileBrad Smith
- Remove usage of BUS_DMA_ALLOCNOW with bus_dmamap_create - Use BUS_DMA_COHERENT on mapping DMA memory for TX/RX descriptors - Adjust m_data and m_len directly rather than calling m_adj - Proper use of bus_dmamap_sync against DMA descriptors From tsutsui@NetBSD Tested by kettenis@ brad@ otto@ Tested on armish/amd64/i386/sparc64
2006-10-30Fix dynamic tuning of the radio sensitivity I broke when moving fromDamien Bergamini
rssadapt(9) to AMRR. pointed out by Erki Malling on misc@
2006-10-29Reorganize malo_intr() a bit. Check for unhandled interrupt flags andClaudio Jeker
do not call wakeup() for each and every command sent. I think more and more will not tsleep(). OK mglocker@
2006-10-29In malo_ioctl() if the returned error is ENETRESET reset the device.Claudio Jeker
This is net80211 way of telling the driver that settings have changed. OK mglocker@
2006-10-29MALO_CMD_RESPONSE is acting just as a flag so move it to the end of the list.Claudio Jeker
OK mglocker@
2006-10-29Fix some nasty bugs in malo_reset() and malo_cmd_set_channel() and simplifyClaudio Jeker
the code a bit. Still impossible to correctly set a channel but it is no longer crashing. OK mglocker@
2006-10-29Add first TX path and active scan bits. Don't expect to much yet.Marcus Glocker
ok claudio@
2006-10-26fix fxp(4) so that it will reset the link when you change the speed... ThisBrad Smith
will fix a problem where you boot w/ the default of autoselect, but then set the speed to 100/full, the switch will keep the autoselect/100/full negotiation... This will continue to work till someone resets the switch or unplugs the cable resulting in the switch failing to autoneg and falling back to 100/half, causing a hard to track down duplex mismatch.. From nCircle Network Security, Inc. via FreeBSD Tested by ckuethe@, pedro@, brad@, craig at creative dot com dot au
2006-10-25Resort some functions, tiny cleanup.Marcus Glocker
ok claudio@
2006-10-24Fix RX DMA handling; until now the card stopped receiving interruptsMarcus Glocker
after it went one time through the RX ring (256 descriptors). Also reset RX rings correctly after ifconfig down / up. "COMMIT IT!!!" claudio@
2006-10-22DMA memory for the TX ring should be aligned at RL_RING_ALIGN,Brad Smith
not RE_ETHER_ALIGN. From tsutsui@NetBSD Tested on alpha/amd64/armish/i386/sparc64
2006-10-22replace rssadapt(9) with amrr for automatic rate control.Damien Bergamini
as a side-effect, this should fix all the "bogus xmit rate" panics users have been complaining about for some time when operating in HostAP mode.
2006-10-22oops, the eventnotify stuff was accidentally enabled with the scsiconfDavid Gwynne
changes. its not ready yet, so disable it again.
2006-10-22Activate RX radiotap. We have RSSI for now.Marcus Glocker
2006-10-21Fix RX handling; the chip injects control data in front and betweenMarcus Glocker
a 802.11 frame which needs to be cut off. Looks like we receive the first correct looking management frames now. Add first radio bpf mtap bits but don't activate them in the RX handler yet. Need first to find out which radio data the card delivers.
2006-10-21rework the bus scanning code by splitting it out into separate functionsDavid Gwynne
for walking the bus and targets, and probing the luns. this removes the need to use magic numbers to wildcard each of these, which in turn makes the code a lot easier to read. as a bonus we get some more space to work in (80 chars isnt that much somtimes). note that this code wont probe high luns if lun 0 doesnt exist. ok krw@
2006-10-20use the ASIX AX88190 defines from ax88190reg.h and remove someBrad Smith
AX88190 specific defines from ne2000reg.h From NetBSD
2006-10-20some defines for the ASIX AX88790 chipset.Brad Smith
From NetBSD
2006-10-20some new flags.Brad Smith
From NetBSD
2006-10-20sync some comments with the NetBSD driver.Brad Smith
2006-10-20remove another chunk of unused NetBSD code.Brad Smith
2006-10-20remove some NetBSD code.Brad Smith
2006-10-20ansiBrad Smith
2006-10-19s/Mhz/MHz/ in comments and printf() stringsTom Cosgrove
ok jsg@
2006-10-18Fix packet length for RX bpf mtap.Marcus Glocker
ok damien@
2006-10-17replace hand rolled code with LIST_FOREACH in gem_mediachange().Brad Smith
ok kettenis@ "Looks correct to me" krw@
2006-10-17Add first bits of a RX intr handler routine. Needs further clarification.Marcus Glocker
Try to get bpf mtaps working soon to see what exactly happens there. Based on rt2661.c, your code is just nice to read damien ;) ok claudio@
2006-10-17Allocate and free TX DMA rings additionally change some of the structures toClaudio Jeker
match more the actual reality. Still unsure about it as we don't have any documentation to verify against. OK mglocker@
2006-10-17fix typo in commentTodd T. Fries
ok jmc@
2006-10-17Allocate and free RX DMA ring. Mostly form rt2661.c with adaption for malo.Claudio Jeker
Seems to fit pretty well. Does not do anything useful right now. The bits in the interrupt handler and of course the TX ring are still missing. OK mglocker@
2006-10-16Fix for watchdog timeouts experienced with some Realtek adapters.Brad Smith
From wpaul@FreeBSD ok kettenis@
2006-10-15Place bus_dmamap_sync() around malo_send_cmd this should help porting toClaudio Jeker
other archs later. OK mglocker@
2006-10-15More serious firmware load error messages.Marcus Glocker
ok claudio@