162306a36Sopenharmony_ci/* 262306a36Sopenharmony_ci * Copyright (c) 2010-2011 Atheros Communications Inc. 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * Permission to use, copy, modify, and/or distribute this software for any 562306a36Sopenharmony_ci * purpose with or without fee is hereby granted, provided that the above 662306a36Sopenharmony_ci * copyright notice and this permission notice appear in all copies. 762306a36Sopenharmony_ci * 862306a36Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 962306a36Sopenharmony_ci * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 1062306a36Sopenharmony_ci * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 1162306a36Sopenharmony_ci * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 1262306a36Sopenharmony_ci * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 1362306a36Sopenharmony_ci * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 1462306a36Sopenharmony_ci * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 1562306a36Sopenharmony_ci */ 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#ifndef AR9003_RTT_H 1862306a36Sopenharmony_ci#define AR9003_RTT_H 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ci#ifdef CONFIG_ATH9K_PCOEM 2162306a36Sopenharmony_civoid ar9003_hw_rtt_enable(struct ath_hw *ah); 2262306a36Sopenharmony_civoid ar9003_hw_rtt_disable(struct ath_hw *ah); 2362306a36Sopenharmony_civoid ar9003_hw_rtt_set_mask(struct ath_hw *ah, u32 rtt_mask); 2462306a36Sopenharmony_cibool ar9003_hw_rtt_force_restore(struct ath_hw *ah); 2562306a36Sopenharmony_civoid ar9003_hw_rtt_load_hist(struct ath_hw *ah); 2662306a36Sopenharmony_civoid ar9003_hw_rtt_fill_hist(struct ath_hw *ah); 2762306a36Sopenharmony_civoid ar9003_hw_rtt_clear_hist(struct ath_hw *ah); 2862306a36Sopenharmony_cibool ar9003_hw_rtt_restore(struct ath_hw *ah, struct ath9k_channel *chan); 2962306a36Sopenharmony_ci#else 3062306a36Sopenharmony_cistatic inline void ar9003_hw_rtt_enable(struct ath_hw *ah) 3162306a36Sopenharmony_ci{ 3262306a36Sopenharmony_ci} 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_cistatic inline void ar9003_hw_rtt_disable(struct ath_hw *ah) 3562306a36Sopenharmony_ci{ 3662306a36Sopenharmony_ci} 3762306a36Sopenharmony_ci 3862306a36Sopenharmony_cistatic inline void ar9003_hw_rtt_set_mask(struct ath_hw *ah, u32 rtt_mask) 3962306a36Sopenharmony_ci{ 4062306a36Sopenharmony_ci} 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_cistatic inline bool ar9003_hw_rtt_force_restore(struct ath_hw *ah) 4362306a36Sopenharmony_ci{ 4462306a36Sopenharmony_ci return false; 4562306a36Sopenharmony_ci} 4662306a36Sopenharmony_ci 4762306a36Sopenharmony_cistatic inline void ar9003_hw_rtt_load_hist(struct ath_hw *ah) 4862306a36Sopenharmony_ci{ 4962306a36Sopenharmony_ci} 5062306a36Sopenharmony_ci 5162306a36Sopenharmony_cistatic inline void ar9003_hw_rtt_fill_hist(struct ath_hw *ah) 5262306a36Sopenharmony_ci{ 5362306a36Sopenharmony_ci} 5462306a36Sopenharmony_ci 5562306a36Sopenharmony_cistatic inline void ar9003_hw_rtt_clear_hist(struct ath_hw *ah) 5662306a36Sopenharmony_ci{ 5762306a36Sopenharmony_ci} 5862306a36Sopenharmony_ci 5962306a36Sopenharmony_cistatic inline bool ar9003_hw_rtt_restore(struct ath_hw *ah, struct ath9k_channel *chan) 6062306a36Sopenharmony_ci{ 6162306a36Sopenharmony_ci return false; 6262306a36Sopenharmony_ci} 6362306a36Sopenharmony_ci#endif 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ci#endif 66