diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2009-01-05 18:17:02 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2009-01-05 18:17:02 +0000 |
commit | 91f8dfca5c21fdbd39efb975c814016ebf5ec3c1 (patch) | |
tree | e855e80aae540100f52923015988a1a67d1efaa4 /sys/dev/ic/rt2860reg.h | |
parent | 19d49a481de6608b34a10671031f602b3f4aab96 (diff) |
- do TX radiotap later in run_tx() such that the duration field is
filled and that the IEEE80211_RADIOTAP_F_SHORTPRE flag is set properly.
- fix set_chan() for RT3070.
- add some crazy BBP/RF registers tweaks for RT3070 (mostly HW bugs
workarounds extrapolated from the Ralink Linux driver.)
Diffstat (limited to 'sys/dev/ic/rt2860reg.h')
-rw-r--r-- | sys/dev/ic/rt2860reg.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/sys/dev/ic/rt2860reg.h b/sys/dev/ic/rt2860reg.h index 701006a83cb..e2204d54b2c 100644 --- a/sys/dev/ic/rt2860reg.h +++ b/sys/dev/ic/rt2860reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2860reg.h,v 1.14 2008/12/29 13:27:27 damien Exp $ */ +/* $OpenBSD: rt2860reg.h,v 1.15 2009/01/05 18:17:01 damien Exp $ */ /*- * Copyright (c) 2007 @@ -668,6 +668,26 @@ #define RT2860_LED_LINK_5GHZ (1 << 15) +/* possible flags for RT3020 RF register 1 */ +#define RT3070_RF_BLOCK (1 << 0) +#define RT3070_RX0_PD (1 << 2) +#define RT3070_TX0_PD (1 << 3) +#define RT3070_RX1_PD (1 << 4) +#define RT3070_TX1_PD (1 << 5) + +/* possible flags for RT3020 RF register 15 */ +#define RT3070_TX_LO2 (1 << 3) + +/* possible flags for RT3020 RF register 17 */ +#define RT3070_TX_LO1 (1 << 3) + +/* possible flags for RT3020 RF register 20 */ +#define RT3070_RX_LO1 (1 << 3) + +/* possible flags for RT3020 RF register 21 */ +#define RT3070_RX_LO2 (1 << 3) + + /* RT2860 TX descriptor */ struct rt2860_txd { uint32_t sdp0; /* Segment Data Pointer 0 */ |