xref: /freebsd/sys/dev/ath/ath_hal/ar9002/ar9285_cal.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
1718cf2ccSPedro F. Giffuni /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3718cf2ccSPedro F. Giffuni  *
4586b0ae5SAdrian Chadd  * Copyright (c) 2008-2010 Atheros Communications Inc.
5586b0ae5SAdrian Chadd  * Copyright (c) 2011 Adrian Chadd, Xenion Pty Ltd.
6586b0ae5SAdrian Chadd  *
7586b0ae5SAdrian Chadd  * Redistribution and use in source and binary forms, with or without
8586b0ae5SAdrian Chadd  * modification, are permitted provided that the following conditions
9586b0ae5SAdrian Chadd  * are met:
10586b0ae5SAdrian Chadd  * 1. Redistributions of source code must retain the above copyright
11586b0ae5SAdrian Chadd  *    notice, this list of conditions and the following disclaimer.
12586b0ae5SAdrian Chadd  * 2. Redistributions in binary form must reproduce the above copyright
13586b0ae5SAdrian Chadd  *    notice, this list of conditions and the following disclaimer in the
14586b0ae5SAdrian Chadd  *    documentation and/or other materials provided with the distribution.
15586b0ae5SAdrian Chadd  *
16586b0ae5SAdrian Chadd  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17586b0ae5SAdrian Chadd  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18586b0ae5SAdrian Chadd  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19586b0ae5SAdrian Chadd  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20586b0ae5SAdrian Chadd  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21586b0ae5SAdrian Chadd  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22586b0ae5SAdrian Chadd  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23586b0ae5SAdrian Chadd  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24586b0ae5SAdrian Chadd  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25586b0ae5SAdrian Chadd  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26586b0ae5SAdrian Chadd  * SUCH DAMAGE.
27586b0ae5SAdrian Chadd  */
28586b0ae5SAdrian Chadd #ifndef	__AR9285_CAL_H__
29586b0ae5SAdrian Chadd #define	__AR9285_CAL_H__
30586b0ae5SAdrian Chadd 
31586b0ae5SAdrian Chadd extern void ar9002_hw_pa_cal(struct ath_hal *ah, HAL_BOOL is_reset);
32586b0ae5SAdrian Chadd extern HAL_BOOL ar9285InitCalHardware(struct ath_hal *ah, const struct ieee80211_channel *chan);
33586b0ae5SAdrian Chadd 
34586b0ae5SAdrian Chadd #endif
35