1*572ff6f6SMatthew Dillon /* 2*572ff6f6SMatthew Dillon * Copyright (c) 2010-2011 Adrian Chadd, Xenion Pty Ltd. 3*572ff6f6SMatthew Dillon * 4*572ff6f6SMatthew Dillon * Redistribution and use in source and binary forms, with or without 5*572ff6f6SMatthew Dillon * modification, are permitted provided that the following conditions 6*572ff6f6SMatthew Dillon * are met: 7*572ff6f6SMatthew Dillon * 1. Redistributions of source code must retain the above copyright 8*572ff6f6SMatthew Dillon * notice, this list of conditions and the following disclaimer. 9*572ff6f6SMatthew Dillon * 2. Redistributions in binary form must reproduce the above copyright 10*572ff6f6SMatthew Dillon * notice, this list of conditions and the following disclaimer in the 11*572ff6f6SMatthew Dillon * documentation and/or other materials provided with the distribution. 12*572ff6f6SMatthew Dillon * 13*572ff6f6SMatthew Dillon * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14*572ff6f6SMatthew Dillon * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15*572ff6f6SMatthew Dillon * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16*572ff6f6SMatthew Dillon * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17*572ff6f6SMatthew Dillon * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18*572ff6f6SMatthew Dillon * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19*572ff6f6SMatthew Dillon * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20*572ff6f6SMatthew Dillon * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21*572ff6f6SMatthew Dillon * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22*572ff6f6SMatthew Dillon * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23*572ff6f6SMatthew Dillon * SUCH DAMAGE. 24*572ff6f6SMatthew Dillon * 25*572ff6f6SMatthew Dillon * $FreeBSD$ 26*572ff6f6SMatthew Dillon */ 27*572ff6f6SMatthew Dillon #ifndef __ATH_AR9002PHY_H__ 28*572ff6f6SMatthew Dillon #define __ATH_AR9002PHY_H__ 29*572ff6f6SMatthew Dillon 30*572ff6f6SMatthew Dillon #define AR_PHY_TX_PWRCTRL4 0xa264 31*572ff6f6SMatthew Dillon #define AR_PHY_TX_PWRCTRL_PD_AVG_VALID 0x00000001 32*572ff6f6SMatthew Dillon #define AR_PHY_TX_PWRCTRL_PD_AVG_VALID_S 0 33*572ff6f6SMatthew Dillon #define AR_PHY_TX_PWRCTRL_PD_AVG_OUT 0x000001FE 34*572ff6f6SMatthew Dillon #define AR_PHY_TX_PWRCTRL_PD_AVG_OUT_S 1 35*572ff6f6SMatthew Dillon 36*572ff6f6SMatthew Dillon #define AR_PHY_TX_PWRCTRL6_0 0xa270 37*572ff6f6SMatthew Dillon #define AR_PHY_TX_PWRCTRL6_1 0xb270 38*572ff6f6SMatthew Dillon #define AR_PHY_TX_PWRCTRL_ERR_EST_MODE 0x03000000 39*572ff6f6SMatthew Dillon #define AR_PHY_TX_PWRCTRL_ERR_EST_MODE_S 24 40*572ff6f6SMatthew Dillon 41*572ff6f6SMatthew Dillon #define AR_PHY_TX_PWRCTRL7 0xa274 42*572ff6f6SMatthew Dillon #define AR_PHY_TX_PWRCTRL_INIT_TX_GAIN 0x01F80000 43*572ff6f6SMatthew Dillon #define AR_PHY_TX_PWRCTRL_INIT_TX_GAIN_S 19 44*572ff6f6SMatthew Dillon 45*572ff6f6SMatthew Dillon #define AR_PHY_TX_PWRCTRL8 0xa278 46*572ff6f6SMatthew Dillon #define AR_PHY_TX_PWRCTRL10 0xa394 47*572ff6f6SMatthew Dillon 48*572ff6f6SMatthew Dillon #define AR_PHY_TX_GAIN_TBL1 0xa300 49*572ff6f6SMatthew Dillon #define AR_PHY_TX_GAIN 0x0007F000 50*572ff6f6SMatthew Dillon #define AR_PHY_TX_GAIN_S 12 51*572ff6f6SMatthew Dillon 52*572ff6f6SMatthew Dillon #define AR_PHY_CH0_TX_PWRCTRL11 0xa398 53*572ff6f6SMatthew Dillon #define AR_PHY_CH1_TX_PWRCTRL11 0xb398 54*572ff6f6SMatthew Dillon #define AR_PHY_CH0_TX_PWRCTRL12 0xa3dc 55*572ff6f6SMatthew Dillon #define AR_PHY_CH0_TX_PWRCTRL13 0xa3e0 56*572ff6f6SMatthew Dillon 57*572ff6f6SMatthew Dillon #endif 58