ar9300paprd.h revision 250003
1/*
2 * Copyright (c) 2013 Qualcomm Atheros, Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 * PERFORMANCE OF THIS SOFTWARE.
15 */
16/*
17
18 * Copyright (c) 2002-2010 Atheros Communications, Inc.
19 * All Rights Reserved.
20 *
21 * Copyright (c) 2011 Qualcomm Atheros, Inc.
22 * All Rights Reserved.
23 * Qualcomm Atheros Confidential and Proprietary.
24 *
25
26 */
27
28
29
30#ifndef __AR9300PAPRD_H__
31
32#define __AR9300PAPRD_H__
33
34
35
36#include <ah.h>
37
38#include "ar9300.h"
39
40#include "ar9300phy.h"
41
42#define AH_PAPRD_AM_PM_MASK              0x1ffffff
43#define AH_PAPRD_IDEAL_AGC2_PWR_RANGE    0xe0
44extern int ar9300_paprd_init_table(struct ath_hal *ah, HAL_CHANNEL *chan);
45extern HAL_STATUS ar9300_paprd_setup_gain_table(struct ath_hal *ah, int chain_num);
46extern HAL_STATUS ar9300_paprd_create_curve(struct ath_hal *ah, HAL_CHANNEL *chan, int chain_num);
47extern int ar9300_paprd_is_done(struct ath_hal *ah);
48extern void ar9300_enable_paprd(struct ath_hal *ah, HAL_BOOL enable_flag, HAL_CHANNEL * chan);
49extern void ar9300_swizzle_paprd_entries(struct ath_hal *ah, unsigned int txchain);
50extern void ar9300_populate_paprd_single_table(struct ath_hal *ah, HAL_CHANNEL *chan, int chain_num);
51extern void ar9300_paprd_dec_tx_pwr(struct ath_hal *ah);
52extern int ar9300_paprd_thermal_send(struct ath_hal *ah);
53#endif
54
55