summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_zydreg.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* A pile of sizes to free(9). In test for a few days in snapshots.deraadt2017-04-081-1/+2
| | | | | Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
* Rework zyd(4)'s register read/write methods to eliminate race conditions.stsp2014-07-121-5/+7
| | | | | | | | | | | | | | | | Read commands were issued via asynchronous transfers and replies were expected after a fixed tsleep() timeout. Upon timeout zyd simply freed the xfer even if it was still in-flight within the USB stack. This could cause havoc such as making all USB ports on the system unusable until reboot. ehci_freex: xfer=0xfffffe811e63e9d8 not busy, 0x4f4e5155 ("busy" here would indicate the xfer is done and marked for being freed) To fix this, issue read commands with synchronous transfers so the xfer can always complete. Split read/write code paths into separate methods. Add a flag that tells us if a reply was received in interrupt context while the read path waited in tsleep(). With and ok mpi@
* 1 << 31 cleanup. Eitan Adler pointed out that there has been aderaadt2013-11-261-18/+18
| | | | | resurrection of the bad idiom in the tree. sufficient review by miod, kettenis, tedu
* Get rid of various 'typedef struct' definitions and use plain structuremglocker2013-04-151-6/+6
| | | | | | | | | definitions instead. We don't change usb.h for now to stay compatible with userland. Tested by mpi@ on macppc and myself on i386. ok mpi@
* miscellanous->miscellaneousmiod2010-11-191-2/+2
|
* Add AL2230S support, extracted from part of a massivejsg2009-05-311-2/+10
| | | | 'sync to p4' style commit in FreeBSD.
* hardware may pass us ACK or CTS frames in some cases, so usedamien2008-08-271-3/+8
| | | | | | | | IEEE80211_ACK_LEN instead of IEEE80211_MIN_LEN for ZYD_MIN_RXBUFSZ and ZYD_MIN_FRAGSZ. silence some warnings while i'm there. change ZYD_FILTER_BSS to use the same value as the vendor's driver that contains some magic (undocumented) bits.
* properly update hardware multicast filter.damien2007-11-271-1/+2
| | | | hints from zd1211rw.
* two fixes from FreeBSD:damien2007-11-031-3/+7
| | | | | | | | | | - fix an incorrect setting of `retry times' in case of zd1211b - increase max rx size so there's room for multi-frame transactions (slightly modified version) from the Linux zd1211rw driver: - patch registers CR47 and CR157 on devices that require it - fix power calibration setting on ZD1211B
* Mechanical removal of USBBASEDEVICE. No binary change.mk2007-06-061-2/+2
| | | | | | Tested by thib and myself. ok mbalmer jsg
* cosmeticdamien2006-11-301-31/+59
|
* fix PHY initialization for ZD1211B.damien2006-11-301-4/+6
| | | | | we were iterating from 0 to N(zyd_def_phy), but N(zyd_def_phy) is not equal to N(zyd_def_phyB). we were probably writting garbage to the PHY.
* Remaining bits required for ZD1211B support.jsg2006-11-291-2/+35
| | | | Seems to work fine with Linksys and 3Com adapters.
* Initial untested bits for ZD1211B support, different initjsg2006-11-271-23/+57
| | | | | sequences for radios not yet done. "commit what you have" damien@
* add support for 4 new radios: AL2210, CGT, Maxim New, Maxim New2damien2006-11-161-8/+152
| | | | | | | untested because of lack of hardware. if you have a ZD1211 adapter with one of these radios, please drop us a mail. code written by Florian Stoehr <ich AT florian-stoehr DOT de>
* add new code to handle the AL7230B radios.damien2006-11-031-1/+71
| | | | | | code written by Florian Stoehr. not tested due to lack of hardware. if you happen to have an adapter with this radio please report success/ failure.
* make data LED blink upon TX.damien2006-10-221-1/+5
|
* do per-node rate control.damien2006-10-221-3/+6
|
* huge diff to bring zyd(4) into a working state.damien2006-10-211-1197/+685
| | | | | | | | | | should work with ZD1211 (not ZD1211B!) adapters with either a RFMD or AL2230 radio chip. does not support IBSS or HostAP modes yet. committed over a Billion 3011G (ZD1211/AL2230). "commit it!" deraadt@
* Support for adapters with Airoha AL2230 radios from Florian.jsg2006-07-021-1/+93
| | | | This lets me see beacons on my device.
* spacingjsg2006-07-011-100/+104
|
* Initial radiotap/bpf bits based on ural.jsg2006-07-011-1/+48
|
* Shrink dmesg output, use ether_sprintf() to print MAC address.jsg2006-06-301-1/+3
|
* Move register value pair table definitions into if_zydreg.hjsg2006-06-291-1/+180
| | | | | | and move declarations of the big ones to get them off the limited amount of stack we get to play with in kernel land. Discussed with Florian, ok reyk@ xsa@
* Remove a struct that is no longer used.jsg2006-06-281-6/+1
| | | | From Graham Gower.
* Switch from magic numbers to usbdevs for vendor/product pairs.jsg2006-06-271-22/+1
|
* avoid multiple detach problems; ich@florian-stoehr.dederaadt2006-06-271-1/+2
|
* minimal cleaningderaadt2006-06-211-38/+38
|
* a good start at a driver for the Zydas ZD1211 802.11 devices byderaadt2006-06-211-0/+1122
ich@florian-stoehr.de. Apparently it can receive now. Contact him if you want to help, or need the firmware image.