ar9002phy.h revision 220590
1127043Sjhb/* 2127043Sjhb * Copyright (c) 2010-2011 Adrian Chadd, Xenion Pty Ltd. 3127043Sjhb * 4127043Sjhb * Redistribution and use in source and binary forms, with or without 5127043Sjhb * modification, are permitted provided that the following conditions 6127043Sjhb * are met: 7127043Sjhb * 1. Redistributions of source code must retain the above copyright 8127043Sjhb * notice, this list of conditions and the following disclaimer. 9127043Sjhb * 2. Redistributions in binary form must reproduce the above copyright 10127043Sjhb * notice, this list of conditions and the following disclaimer in the 11127043Sjhb * documentation and/or other materials provided with the distribution. 12127043Sjhb * 13127043Sjhb * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14127043Sjhb * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15127043Sjhb * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16127043Sjhb * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17127043Sjhb * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18127043Sjhb * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19127043Sjhb * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20127043Sjhb * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21127043Sjhb * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22127043Sjhb * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23127043Sjhb * SUCH DAMAGE. 24127043Sjhb * 25127043Sjhb * $FreeBSD: head/sys/dev/ath/ath_hal/ar9002/ar9002phy.h 220590 2011-04-13 04:40:59Z adrian $ 26127043Sjhb */ 27127043Sjhb#ifndef __ATH_AR9002PHY_H__ 28127043Sjhb#define __ATH_AR9002PHY_H__ 29127043Sjhb 30127043Sjhb#define AR_PHY_TX_PWRCTRL4 0xa264 31153295Sdougb#define AR_PHY_TX_PWRCTRL_PD_AVG_VALID 0x00000001 32136224Smtm#define AR_PHY_TX_PWRCTRL_PD_AVG_VALID_S 0 33127043Sjhb#define AR_PHY_TX_PWRCTRL_PD_AVG_OUT 0x000001FE 34127043Sjhb#define AR_PHY_TX_PWRCTRL_PD_AVG_OUT_S 1 35127043Sjhb 36127043Sjhb#define AR_PHY_TX_PWRCTRL6_0 0xa270 37163063Sflz#define AR_PHY_TX_PWRCTRL6_1 0xb270 38127043Sjhb#define AR_PHY_TX_PWRCTRL_ERR_EST_MODE 0x03000000 39127043Sjhb#define AR_PHY_TX_PWRCTRL_ERR_EST_MODE_S 24 40127043Sjhb 41127043Sjhb#define AR_PHY_TX_PWRCTRL7 0xa274 42127043Sjhb#define AR_PHY_TX_PWRCTRL_INIT_TX_GAIN 0x01F80000 43127043Sjhb#define AR_PHY_TX_PWRCTRL_INIT_TX_GAIN_S 19 44127043Sjhb 45127043Sjhb#define AR_PHY_TX_PWRCTRL8 0xa278 46127043Sjhb#define AR_PHY_TX_PWRCTRL10 0xa394 47127043Sjhb 48127043Sjhb#define AR_PHY_TX_GAIN_TBL1 0xa300 49127043Sjhb#define AR_PHY_TX_GAIN 0x0007F000 50127043Sjhb#define AR_PHY_TX_GAIN_S 12 51127043Sjhb 52127043Sjhb#define AR_PHY_CH0_TX_PWRCTRL11 0xa398 53127043Sjhb#define AR_PHY_CH1_TX_PWRCTRL11 0xb398 54127043Sjhb#define AR_PHY_CH0_TX_PWRCTRL12 0xa3dc 55127043Sjhb#define AR_PHY_CH0_TX_PWRCTRL13 0xa3e0 56127478Sdougb 57127043Sjhb#endif 58127043Sjhb