summaryrefslogtreecommitdiff
path: root/sys/dev/pcmcia/if_malo.c
AgeCommit message (Collapse)Author
2011-07-03Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingMatthew Dempsky
that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
2011-04-07Do not use NULL in integer comparisons. No functional change.Miod Vallat
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
2010-08-30Convert the pcmcia power hook to an activate function. Then change theTheo de Raadt
model so that DVACT_SUSPEND methods call sub-drivers with DVACT_SUSPEND not DVACT_DEACTIVATE, and such. This creates a whole bunch of fallout, which needs fixing. wdc(4), ne(4), and wi(4) have been fully tested and actually work better than they ever have before (no more wdc timeouts on resume!) malo(4) has some other nasty bug which has not yet been spotted which causes crazy panics. The other drivers are more rare and will be fixed if people show up with hardware; for now at least they have been adapted to the new model. ok kettenis
2010-08-27remove the unused if_init callback in struct ifnetJonathan Gray
ok deraadt@ henning@ claudio@
2010-07-02fix a variety of uninit errors. ok and one correction deraadtTed Unangst
2010-05-20Split some copies of two struct members together into two bcopy ratherNicholas Marriott
than one to make gcc4 -Wbounded happy. ok krw
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
2009-08-17initialize retry to zero; otherwise if firmware sends odd val16Martynas Venckus
from the very beginning; we might never retry. ok mglocker@
2009-03-29make various strings ("can't map mem space" and similar) more consistentStuart Henderson
between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
2008-10-14Change m_devget()'s outdated and unused "offset" argument: It isChristian Weisgerber
now the offset into the first mbuf of the target chain before copying the source data over. From FreeBSD. Convert drivers' use of m_devget(). Mostly from thib@. Update mbuf(9) man page. ok claudio@, thib@
2008-07-29check for m_devget() returning NULL, increment ierror countThordur I. Bjornsson
and just return; OK mglocker@
2008-07-27Some devices take longer to load the firmware. Increase the firmwareMarcus Glocker
load timeout from 50000us to 500000us. Reported and tested by William Dunand with an I-O DATA WN-G54/CF device. Since this device works now, we add it to the man page.
2007-10-09Ops, forgot debug printf.Marcus Glocker
2007-10-09Setup channels with OFDM flags. Permit user to set fix rates.Marcus Glocker
2007-10-09Load the firmware files just one time per device lifecycle (attach time)Marcus Glocker
instead on every `ifconfig up'.
2007-10-08Give the device a bit time to finish the reset when stopped. AvoidsMarcus Glocker
helper firmware load timeouts when device is brought up very fast again, like seen with trunk(4).
2007-10-08Make pcmcia malo(4) work with trunk(4) by:Marcus Glocker
Setting interface ethernet address from link level address. Adding firmware command to set ethernet address.
2007-08-28unify firmware load failure messages; ok mglockerTheo de Raadt
2007-08-14Indention and comment.Marcus Glocker
2007-08-14Replace bus_space_write/read_2 loops in cmd req/rsp routines withMarcus Glocker
bus_space_write/read_raw_multi_2.
2007-08-11Set command context save flag already in attach routine. Avoids doubleMarcus Glocker
processing of command responses.
2007-08-11Remove IBSS capability flag for now.Marcus Glocker
2007-08-10Fix some letho16() tweaks which made my macppc crash on anMarcus Glocker
assoiciation.
2007-08-10Add missing multicast part to ioctl.Marcus Glocker
2007-08-09If an association has failed, set the device back to INIT state.Marcus Glocker
2007-08-09Check all FW commands in the init path. None of them shall timeout,Marcus Glocker
otherwise we abort initialization.
2007-08-09o Add a mechanism to execute single commands even if are are not contextMarcus Glocker
save. Protects cmalo_cmd_set_assoc() for now. o In case of deauthentication or disassociation, try to reassociate.
2007-08-09Correctly acknowledge event interrupts. Got the wrong register valueMarcus Glocker
before.
2007-08-09Comment. Sort some register values.Marcus Glocker
2007-08-09Add event handler. Events notify us about things like when aMarcus Glocker
disassociation frame has arrived. Nice side effect; As we acknowledge the event reason after receiving a disassociation frame (which happens pretty often by wi(4) hostap) now, the FW issues an automatic reassociation, and we do not loose network connectivity anymore.
2007-08-07Improve a evil tsleep() loop by using wakeup() in the interrupt handler.Marcus Glocker
Still not sure if the tsleep() is safe here, but better than the previous version. spotted and OK claudio@
2007-08-06o Replace bus_space_write_2 for-loops in TX/RX withMarcus Glocker
bus_space_write_raw_multi_2. o Make TX/RX work on big endian archs (tested on macppc). in co-operation and OK claudio@
2007-08-06Fix FW command API for big endian archs.Marcus Glocker
2007-08-05Fix DPRINTF tweaks.Marcus Glocker
2007-08-05Low-Noise watchdog routine (debug level 2).Marcus Glocker
2007-08-05Parse association command response to check if an association wasMarcus Glocker
successfull or not.
2007-08-05Remove IFQ_SET_MAXLEN() for TX queue.Marcus Glocker
2007-08-05Add WEP support, which is done fully by the FW.Marcus Glocker
2007-08-05o Some better variable namings.Marcus Glocker
o Fix some comments. o Add a forgotten splx().
2007-08-05o Reflect active network settings to ifconfig.Marcus Glocker
o Enable selection of desired network by setting nwid.
2007-08-04o Improve interrupt handler; fixes TX watchdog timeouts on my zaurus.Marcus Glocker
o Add /* FALLTHROUGH */'s to state handler (spotted by claudio@). o Adapt debug levels. OK claudio@
2007-08-03switch cmalo_rx() to use m_getdev() instead of something hand rolled.Claudio Jeker
cmalo_rx() is called from the interrupt handler and therefor is running at IPL_NET so no need to do spl dances instead sprinkel some splassert() into the rx and tx path. OK mglocker@
2007-08-02Activate watchdog timer. We need to find out about the issue that theMarcus Glocker
device stops with TX interrupts so often.
2007-08-02ETHER_ALIGN the mbuf so that it works on strictalignment archs. This is aClaudio Jeker
quick hack because cmalo_rx() should use m_getdev() instead. OK mglocker@
2007-08-01Improve state switching and fix some debug output.Marcus Glocker
2007-07-31Add first version to enable auto association (best signal AP). ThereforeMarcus Glocker
remove experimental, hard-coded MAC address block. Also tested by claudio@
2007-07-31Add missing splx(s); calls. OK mglocker@Claudio Jeker
2007-07-31Plug a mbuf leak in the TX path and replace a handbuilt m_copydata()Claudio Jeker
implementation with m_copydata(). Remove the CMALO_DEBUG that slipped in somehow. OK mglocker@
2007-07-31Start to improve TX/RX path; don't accept further packets from TX queueMarcus Glocker
unless the last packet has been processed by the device. Protect RX routine with splnet(). This changes let me scp with ~575KB/s in 11b for now.
2007-07-31Simplify TX path.Marcus Glocker