1718cf2ccSPedro F. Giffuni /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3718cf2ccSPedro F. Giffuni * 41c554472SAdrian Chadd * Copyright (c) 2008-2010 Atheros Communications Inc. 51c554472SAdrian Chadd * Copyright (c) 2010-2011 Adrian Chadd, Xenion Pty Ltd. 61c554472SAdrian Chadd * 71c554472SAdrian Chadd * Redistribution and use in source and binary forms, with or without 81c554472SAdrian Chadd * modification, are permitted provided that the following conditions 91c554472SAdrian Chadd * are met: 101c554472SAdrian Chadd * 1. Redistributions of source code must retain the above copyright 111c554472SAdrian Chadd * notice, this list of conditions and the following disclaimer. 121c554472SAdrian Chadd * 2. Redistributions in binary form must reproduce the above copyright 131c554472SAdrian Chadd * notice, this list of conditions and the following disclaimer in the 141c554472SAdrian Chadd * documentation and/or other materials provided with the distribution. 151c554472SAdrian Chadd * 161c554472SAdrian Chadd * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 171c554472SAdrian Chadd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 181c554472SAdrian Chadd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 191c554472SAdrian Chadd * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 201c554472SAdrian Chadd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 211c554472SAdrian Chadd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 221c554472SAdrian Chadd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 231c554472SAdrian Chadd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 241c554472SAdrian Chadd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 251c554472SAdrian Chadd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 261c554472SAdrian Chadd * SUCH DAMAGE. 271c554472SAdrian Chadd */ 281c554472SAdrian Chadd #ifndef __AR9285_PHY_H__ 291c554472SAdrian Chadd #define __AR9285_PHY_H__ 301c554472SAdrian Chadd 311c554472SAdrian Chadd /* 321c554472SAdrian Chadd * Manipulate AR9285 antenna diversity configuration 331c554472SAdrian Chadd */ 341c554472SAdrian Chadd 351c554472SAdrian Chadd extern void ar9285_antdiv_comb_conf_set(struct ath_hal *ah, 369ae49f26SAdrian Chadd HAL_ANT_COMB_CONFIG *antconf); 371c554472SAdrian Chadd extern void ar9285_antdiv_comb_conf_get(struct ath_hal *ah, 389ae49f26SAdrian Chadd HAL_ANT_COMB_CONFIG *antconf); 39352dbd82SAdrian Chadd extern HAL_BOOL ar9285_check_div_comb(struct ath_hal *ah); 401c554472SAdrian Chadd 411c554472SAdrian Chadd #endif 42