summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/rtwvar.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove the powerhook code. All architectures now use the ca_activate treederaadt2010-09-071-7/+1
| | | | | traversal code to suspend/resume ok oga kettenis blambert
* Massage the powerhook functions into activate functions, and then callderaadt2010-08-291-2/+2
| | | | | | them from the powerhook. Fix a few quibbles about the things done for the IFF_RUNNING and IFF_UP cases ok kettenis
* Get rid of devact enum, substitute it with an int and coresponding defines.pirofti2009-10-131-2/+2
| | | | | | This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
* hook no longer neededderaadt2009-08-101-2/+1
|
* timeout_add -> timeout_add_msecblambert2009-07-281-3/+3
| | | | ok jsg@
* Remove (unused) CASSERT macro. Whatever it was intended to be used for, itmiod2009-06-101-4/+1
| | | | caused severe blood damage to laboratory animals. Not to mention swine flu.
* instead of passing rx tstamp and rssi to the ieee80211_input function,damien2008-07-211-2/+2
| | | | | | | pass a pointer to an ieee80211_rxinfo structure containing those two fields plus an extra flags field that indicates whether the frame was decrypted by hardware or not. required for a future fix.
* move ieee80211_compute_duration() and ieee80211_compute_duration1()damien2007-06-071-3/+10
| | | | | | | | | | functions into the two drivers that use them (atw and rtw.) this code is not generic enough to be used by other drivers and there is no chance that it will ever be used in newer driver since it supports 802.11b only. plus, it hurts my eyes each time i look into ieee80211_output.c. "fine with me as long as the logic doesn't change in the functions" jsg@
* __attribute__((__packed__)) -> __packedjsg2006-06-271-3/+3
|
* part of rev 1.58 of rtw.c David Young comitted to NetBSD:jsg2006-01-051-26/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | Miscellaneous Realtek RTL8180L driver improvements: 3 Revamp handling of transmit descriptor rings. 4 Reliably IFF_OACTIVE when transmit descriptors are available, to stop the transmit section of the driver from freezing up. 5 Fix beacon transmission in adhoc and hostap modes. XXX There is a wart in hostap mode, where beacons are transmitted at 1/2 the correct rate. Load beacon descriptors when the RTW_INTR_BINT interrupt arrives; schedule RTW_INTR_BINT 1ms ahead of the target beacon time. 6 Recover more gracefully from tx/rx errors: avoid transmitter/receiver/chip resets. Try to re-synchronize software state with hardware state---e.g., load next descriptor pointer from hardware. 7 Activate the transmit watchdog timer for beacons as well as other packets. 8 Introduce rtw_idle() that waits for transmit DMA to finish; call it before resetting the transmitter.
* Move access to RF tranceiver functions to be via callbacks.jsg2005-11-041-1/+7
| | | | "looks fine" reyk@
* change read/write callbacks to use a void * instead of struct rtw_regs.reyk2005-10-241-8/+8
| | | | | | | | why? rtw uses the smc93cx6 EEPROM and a separate diff will allow accessing it without depending on the bus_space_* functions. this is required for the RTL8187L. discussed with jsg@
* two sc_anaparm registersreyk2005-10-241-2/+2
|
* Move rtw_attach error condition handling out of rtw_detach and intojsg2005-10-231-14/+1
| | | | rtw_attach simplifying things in the process. ok reyk@
* use read/write/barrier callbacks, will be used laterreyk2005-10-231-1/+11
| | | | ok jsg@
* Remove rtw_rfbus_write abstraction for readability.jsg2005-09-151-2/+1
|
* Remove rtw_rf/rtw_rfbus and some other related abstractionsjsg2005-09-141-70/+16
| | | | which made things overly complicated.
* Match RTL8255 transceiver and stub out related support functions.jsg2005-06-151-11/+17
|
* use JAPAN for locale code 0 stored in some rtw EEPROMs.reyk2005-05-291-2/+2
|
* knfreyk2005-05-291-6/+8
|
* cleanup rtwreyk2005-05-291-5/+27
|
* Fix compilation on macppc and likely other archs.jsg2005-05-261-1/+2
|
* radiotap support largely based on NetBSD rtw.jsg2005-03-021-9/+17
|
* From part of NetBSD rtw.c rev 1.42:jsg2005-02-191-15/+29
| | | | | | | | | | | | | | | | | | | | | | log message: Program the LEDs based on operating state and packet activity. * On a Revision F RTL8180, blink LED1 at 1Hz to indicate scan/authenticate/associate states. In the run state, turn LED1 on. In every state, blink LED1 at 5Hz to indicate non-beacon tx/rx activity. I would like to use two LEDs, but in all my Rev. F instances, LED0 is not wired to an LED; instead, the first LED is wired to indicate that the card's power is on. * On a Revision D RTL8180, program the LEDs so that LED0 indicates Tx, and LED1 indicates Rx. The Rx LED will blink annoyingly if there are beacons in the air, but at least the Tx LED is useful. * Store the hardware revision in the softc to support my futile attempt at programming LEDs for both Rev. D and Rev. F parts; I never did get Rev. D LEDs to work right. * Add a debug flag RTW_DEBUG_LED for the LED transitions.
* From NetBSD:jsg2005-02-141-12/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From part of rtw.c rev 1.42: log message: Add RTW_TPPOLL_ALL, RTW_TPPOLL_SALL to start and stop, respectively, all of the transmit rings. Revamp the transmit section to make better use of all the transmit rings: beacon queue, high-, low-, and medium-priority rings. Put beacon frames on the beacon ring. All other management frames, and data frames, go on the medium-priority ring. Power-save data frames go on the high-priority ring. (Note that powersaving is not implemented!) This is a work in progress. Send all 802.11 Management frames at 1Mbps. After we put a packet on a transmit ring, tickle the right bit in the TPPOLL to tell RTL8180. Stop all rings on error and in rtw_stop. And rtw.c rev 1.33: log message: Consolidate variables related to the rx ring in sc_rxdesc_blk, which is a struct rtw_rxdesc_blk. Put a copy of the DMA tag and the DMA map into the rx- and tx-ring blocks so that I don't have to pass them to subroutines all of the time. ok dlg@
* Reduce diff to NetBSD.jsg2005-01-221-6/+9
| | | | | | From part of rtw.c rev 1.42: Move the register access mode into struct rtw_regs. Change rtw_set_access, rtw_set_access1 to match.
* Reduce diff to NetBSD.jsg2005-01-221-30/+30
| | | | | | | | | | From rtw.c rev 1.34: I like the tlp/atw-style names for software descriptors, txsoft, better than txctl. Change from rtw_txctl/rtw_rxctl to rtw_txsoft/rtw_rxsoft. Change the descriptor blocks' names to match: rtw_txctl_blk becomes rtw_txsoft_blk. Change the member-name prefixes for both software and hardware descriptors.
* destatic functions.jsg2005-01-191-38/+8
|
* Use the RF chipset type rather than the hardware version when determiningjsg2005-01-191-1/+3
| | | | | | whether to use host or MAC controlled RF I/O. From part of NetBSD rev 1.42
* Driver for Realtek 802.11 devices from NetBSD.jsg2004-12-291-0/+468
Not yet working.