18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Copyright (c) 2010-2011 Atheros Communications Inc.
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Permission to use, copy, modify, and/or distribute this software for any
58c2ecf20Sopenharmony_ci * purpose with or without fee is hereby granted, provided that the above
68c2ecf20Sopenharmony_ci * copyright notice and this permission notice appear in all copies.
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
98c2ecf20Sopenharmony_ci * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
108c2ecf20Sopenharmony_ci * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
118c2ecf20Sopenharmony_ci * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
128c2ecf20Sopenharmony_ci * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
138c2ecf20Sopenharmony_ci * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
148c2ecf20Sopenharmony_ci * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
158c2ecf20Sopenharmony_ci */
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#ifndef AR9003_RTT_H
188c2ecf20Sopenharmony_ci#define AR9003_RTT_H
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#ifdef CONFIG_ATH9K_PCOEM
218c2ecf20Sopenharmony_civoid ar9003_hw_rtt_enable(struct ath_hw *ah);
228c2ecf20Sopenharmony_civoid ar9003_hw_rtt_disable(struct ath_hw *ah);
238c2ecf20Sopenharmony_civoid ar9003_hw_rtt_set_mask(struct ath_hw *ah, u32 rtt_mask);
248c2ecf20Sopenharmony_cibool ar9003_hw_rtt_force_restore(struct ath_hw *ah);
258c2ecf20Sopenharmony_civoid ar9003_hw_rtt_load_hist(struct ath_hw *ah);
268c2ecf20Sopenharmony_civoid ar9003_hw_rtt_fill_hist(struct ath_hw *ah);
278c2ecf20Sopenharmony_civoid ar9003_hw_rtt_clear_hist(struct ath_hw *ah);
288c2ecf20Sopenharmony_cibool ar9003_hw_rtt_restore(struct ath_hw *ah, struct ath9k_channel *chan);
298c2ecf20Sopenharmony_ci#else
308c2ecf20Sopenharmony_cistatic inline void ar9003_hw_rtt_enable(struct ath_hw *ah)
318c2ecf20Sopenharmony_ci{
328c2ecf20Sopenharmony_ci}
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_cistatic inline void ar9003_hw_rtt_disable(struct ath_hw *ah)
358c2ecf20Sopenharmony_ci{
368c2ecf20Sopenharmony_ci}
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_cistatic inline void ar9003_hw_rtt_set_mask(struct ath_hw *ah, u32 rtt_mask)
398c2ecf20Sopenharmony_ci{
408c2ecf20Sopenharmony_ci}
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_cistatic inline bool ar9003_hw_rtt_force_restore(struct ath_hw *ah)
438c2ecf20Sopenharmony_ci{
448c2ecf20Sopenharmony_ci	return false;
458c2ecf20Sopenharmony_ci}
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_cistatic inline void ar9003_hw_rtt_load_hist(struct ath_hw *ah)
488c2ecf20Sopenharmony_ci{
498c2ecf20Sopenharmony_ci}
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_cistatic inline void ar9003_hw_rtt_fill_hist(struct ath_hw *ah)
528c2ecf20Sopenharmony_ci{
538c2ecf20Sopenharmony_ci}
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_cistatic inline void ar9003_hw_rtt_clear_hist(struct ath_hw *ah)
568c2ecf20Sopenharmony_ci{
578c2ecf20Sopenharmony_ci}
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_cistatic inline bool ar9003_hw_rtt_restore(struct ath_hw *ah, struct ath9k_channel *chan)
608c2ecf20Sopenharmony_ci{
618c2ecf20Sopenharmony_ci	return false;
628c2ecf20Sopenharmony_ci}
638c2ecf20Sopenharmony_ci#endif
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci#endif
66