summaryrefslogtreecommitdiff
path: root/sys/dev/ic/if_wireg.h
AgeCommit message (Collapse)Author
2004-03-02Fix timing issues with newer Prism firmware and retry card reset upTodd C. Miller
to three times (only once for Symbol though). This fixes intermittent problems on Prism-based cards with newer firmware. Tested with a wide variety of cards and firmware revisions. OK mickey@
2003-10-21typos from Tom Cosgrove;Jason McIntyre
Tom: I did not commit a couple of your changes. i did not include some punctuation fixes (full stops, etc.) mnemorable -> mnemonic: i decided memorable was probably better instrunctions -> instruction: i kept the plural
2003-06-25Extend the sparc bus_space_tag_t to store access endianness in it, andMiod Vallat
adapt all bus_space functions to do proper endianness conversion whenever necessary, except for the raw ones. This allows us to remove the forced endianness conversions in if_wi. with help from and ok mickey@
2003-01-10Add support for Symbol LA4123 and Nortel E-mobility 211818-A PCITodd C. Miller
cards. These use an ACEX EP1K30 programmable logic device (PLD) as the PCMCIA->PCI bridge. There's no documentation available on how Symbol has this configured; the magic bits are based on modifications to the Linux orinoco driver by Tobias Hoffmann. He, in turn, figured out the magic from the Windows driver. This does mean we have undocuemnted hex constants; sigh. I also moved commented bridge chip info to right before the appropriate bridge attachment. The massive comment at the top of the file was becoming illegible.
2002-10-27Add an option to use software WEP now that we have a software decryptTodd C. Miller
function. Can be useful for cards that only support 40-bit WEP or where the card firmware lacks weak IVs avoidance. Prism/Symbol only. In the future this will be expanded to support proposed WEP replacements. Based on code from Jamison Adcock.
2002-10-10Make wi_get_id() table driven, similar to NetBSD and FreeBSD butTodd C. Miller
make the table itself a #define so we can reuse it in wicontrol. Also add a bunch of chip IDs from NetBSD/FreeBSD. mickey@ OK
2002-09-12o break up wi_pci_attach() into device-specific parts for better readabilityTodd C. Miller
o kludge around a problem with Netgear MA301 hanging when booted w/o a card. o better card detection w/ PLX adapters o correct the info in some comments mickey@ OK
2002-09-10no need for pragma here.Federico G. Schwindt
2002-08-13change WI_PORTTYPE_AP -> WI_PORTTYPE_HOSTAP to match FreeBSD and NetBSD.Todd C. Miller
The reason for this is that it is possible in the future to have wi(4) be a real AP using the AP tertiary firmware. mickey@ OK
2002-07-10Use the correct COR offset for pcmcia card; noted by Warner LoshTodd C. Miller
2002-06-27missing parenthesis in this macro.Federico G. Schwindt
2002-06-26stp at sparc will map this card always as big-endian.Federico G. Schwindt
2002-06-23cleanup WI_IS_BE macrosTheo de Raadt
2002-06-22Add new flag, WI_FLAGS_BUS_PCMCIA and mark pcmcia attachment as such.Federico G. Schwindt
Replace ugly kludge with a macro that tests on sparc if it's pcmcia and tries to deal with it correctly (card mapped as be). This makes possible to have wi at pcmcia and pci on sparc64; from theo and myself. Tested with the PLX adapter and the SBus pcmcia bridge. millert@ ok.
2002-06-21ugly kludge to deal correctly with endianess in sparc and sparc64.Federico G. Schwindt
millert@ ok.
2002-05-01Change WI_PORTTYPE_IBSS to 4. This change got lost in the big ibssTodd C. Miller
simplication a while back. Luckily, it is basically cosmetic...
2002-04-06Add support for setting antenna diversity on Symbol cards.Todd C. Miller
Also add some more Symbol-specific RID values I noticed in the Linux orinoco driver.
2002-04-06Add support for Symbol cards and printing of the primary stationTodd C. Miller
firmware version. Adapted from NetBSD and the Linux orinoco driver. The Symbol firmware requires that we do a COR soft reset before initializing the card in wi_reset(). Also, setting WI_RID_ROAMING_MODE caused the Symbol card to go into a strange (non-working) mode with firmware 2.x.x. There are some other Symbol additions/oddities that will need to be addressed in the future.
2002-03-30o Move register definitions to if_wireg.hTodd C. Miller
o Rename some register defines to be more useful (adapted from FreeBSD) o Enable interrupts on PLX chip since some boards don't have this in the EEPROM (adapted from FreeBSD and Linux).
2002-03-28some BITS defs for %bMichael Shalayeff
2002-03-28basic host-ap implementation, more work is needed; from Thomas Skibo ↵Michael Shalayeff
<skibo@pacbell.net>; millert@ ok
2002-03-28recognize isl37300p as a prism2.5, for niels babyMichael Shalayeff
2002-03-26Add support for the TMD7160 dumb PCI-ISA bridge (similar in function toTodd C. Miller
the PLX905x). Info gleaned from patches to the Linux wlan driver from NDC. This makes the NDC NCP130 rev A2 work.
2002-02-21In WI_SETSTR round up i_len to be an even number if needed since weTodd C. Miller
are going to divide it by 2. More or less based on NetBSD.
2002-02-19add support for media and other generic 802.11 ioctls, elliminates need for ↵Michael Shalayeff
wicontrol on the ramdisk floppy, pretty much; from netbsd
2001-12-21increase the timeout 10x, it seems some cards cannot keep up w/ our paceMichael Shalayeff
2001-12-20for mimi-pci cards registers are word in a dword, missed that in bringing ↵Michael Shalayeff
over support from netbsd; partially successfully tested by ellidz@eridu.uchicago.edu
2001-10-25implement "the other" pci interface for wavelans, found on intersilMichael Shalayeff
mini-pci cards. inspired by the netbsd's if_wi_pci.c . rename WI_COR_* into WI_PLX_COR_*, per millert@'s suggestion. tested by millert@ for the plx-based cards.
2001-10-25add prism2.5 mini-pci nic idMichael Shalayeff
2001-06-25Add the missing endian pieces to wavelan driver.Dale Rahn
ok, millert@
2001-06-07Kill #define duplicates between if_wireg.h and if_wi_ieee.hTodd C. Miller
2001-06-07no, definately *wi.* does not work hereMichael Shalayeff
2001-06-06PCI shim for if_wi.c as promised. Magic for setting the PLX upTodd C. Miller
correctly take from the FreeBSD driver and explained by imp@ Currently this is hard-coded for PrismII cards but that will change when the PrismII auto-detect code is added to if_wi.c. Tested with a LinkSys WPC11 in a Global Sun GL24110P02 (aka LinSys WDT11)
2001-05-15Split wi(4) into bus-dependent and bus-independent bits similar toTodd C. Miller
an(4) -- no real code changes at this point. Rename if_wavelan_ieee.h to if_wi_ieee.h while I'm at it and create an if_wivar.h similar to NetBSD. PCI adaptors exist that are not true PCMCIA controllers so wi(4) @ PCI is possible (though the code is not working yet ;-).