if_runreg.h (258780) | if_runreg.h (259031) |
---|---|
1/* $OpenBSD: rt2860reg.h,v 1.19 2009/05/18 19:25:07 damien Exp $ */ 2 3/*- 4 * Copyright (c) 2007 5 * Damien Bergamini <damien.bergamini@free.fr> 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. 10 * 11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 * | 1/* $OpenBSD: rt2860reg.h,v 1.19 2009/05/18 19:25:07 damien Exp $ */ 2 3/*- 4 * Copyright (c) 2007 5 * Damien Bergamini <damien.bergamini@free.fr> 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. 10 * 11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 * |
19 * $FreeBSD: head/sys/dev/usb/wlan/if_runreg.h 258780 2013-11-30 22:17:27Z eadler $ | 19 * $FreeBSD: head/sys/dev/usb/wlan/if_runreg.h 259031 2013-12-06 15:17:28Z kevlo $ |
20 */ 21 22#ifndef _IF_RUNREG_H_ 23#define _IF_RUNREG_H_ 24 25/* PCI registers */ 26#define RT2860_PCI_CFG 0x0000 27#define RT2860_PCI_EECTRL 0x0004 --- 674 unchanged lines hidden (view full) --- 702#define RT3070_TX_LO1 (1 << 3) 703 704/* possible flags for RT3020 RF register 20 */ 705#define RT3070_RX_LO1 (1 << 3) 706 707/* possible flags for RT3020 RF register 21 */ 708#define RT3070_RX_LO2 (1 << 3) 709 | 20 */ 21 22#ifndef _IF_RUNREG_H_ 23#define _IF_RUNREG_H_ 24 25/* PCI registers */ 26#define RT2860_PCI_CFG 0x0000 27#define RT2860_PCI_EECTRL 0x0004 --- 674 unchanged lines hidden (view full) --- 702#define RT3070_TX_LO1 (1 << 3) 703 704/* possible flags for RT3020 RF register 20 */ 705#define RT3070_RX_LO1 (1 << 3) 706 707/* possible flags for RT3020 RF register 21 */ 708#define RT3070_RX_LO2 (1 << 3) 709 |
710/* Possible flags for RT5390 RF register 2. */ 711#define RT5390_RESCAL (1 << 7) 712 |
|
710/* Possible flags for RT5390 RF register 3. */ 711#define RT5390_VCOCAL (1 << 7) 712 713/* Possible flags for RT5390 RF register 38. */ 714#define RT5390_RX_LO1 (1 << 5) 715 716/* Possible flags for RT5390 RF register 39. */ 717#define RT5390_RX_LO2 (1 << 7) 718 | 713/* Possible flags for RT5390 RF register 3. */ 714#define RT5390_VCOCAL (1 << 7) 715 716/* Possible flags for RT5390 RF register 38. */ 717#define RT5390_RX_LO1 (1 << 5) 718 719/* Possible flags for RT5390 RF register 39. */ 720#define RT5390_RX_LO2 (1 << 7) 721 |
722/* Possible flags for RT5390 BBP register 4. */ 723#define RT5390_MAC_IF_CTRL (1 << 6) 724 725/* Possible flags for RT5390 BBP register 105. */ 726#define RT5390_MLD (1 << 2) 727#define RT5390_EN_SIG_MODULATION (1 << 3) 728 |
|
719/* RT2860 TX descriptor */ 720struct rt2860_txd { 721 uint32_t sdp0; /* Segment Data Pointer 0 */ 722 uint16_t sdl1; /* Segment Data Length 1 */ 723#define RT2860_TX_BURST (1 << 15) 724#define RT2860_TX_LS1 (1 << 14) /* SDP1 is the last segment */ 725 726 uint16_t sdl0; /* Segment Data Length 0 */ --- 601 unchanged lines hidden --- | 729/* RT2860 TX descriptor */ 730struct rt2860_txd { 731 uint32_t sdp0; /* Segment Data Pointer 0 */ 732 uint16_t sdl1; /* Segment Data Length 1 */ 733#define RT2860_TX_BURST (1 << 15) 734#define RT2860_TX_LS1 (1 << 14) /* SDP1 is the last segment */ 735 736 uint16_t sdl0; /* Segment Data Length 0 */ --- 601 unchanged lines hidden --- |