Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (c) 2010-2011 Atheros Communications Inc.
0003  *
0004  * Permission to use, copy, modify, and/or distribute this software for any
0005  * purpose with or without fee is hereby granted, provided that the above
0006  * copyright notice and this permission notice appear in all copies.
0007  *
0008  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
0009  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
0010  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
0011  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
0012  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
0013  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
0014  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0015  */
0016 
0017 #ifndef AR9003_RTT_H
0018 #define AR9003_RTT_H
0019 
0020 #ifdef CONFIG_ATH9K_PCOEM
0021 void ar9003_hw_rtt_enable(struct ath_hw *ah);
0022 void ar9003_hw_rtt_disable(struct ath_hw *ah);
0023 void ar9003_hw_rtt_set_mask(struct ath_hw *ah, u32 rtt_mask);
0024 bool ar9003_hw_rtt_force_restore(struct ath_hw *ah);
0025 void ar9003_hw_rtt_load_hist(struct ath_hw *ah);
0026 void ar9003_hw_rtt_fill_hist(struct ath_hw *ah);
0027 void ar9003_hw_rtt_clear_hist(struct ath_hw *ah);
0028 bool ar9003_hw_rtt_restore(struct ath_hw *ah, struct ath9k_channel *chan);
0029 #else
0030 static inline void ar9003_hw_rtt_enable(struct ath_hw *ah)
0031 {
0032 }
0033 
0034 static inline void ar9003_hw_rtt_disable(struct ath_hw *ah)
0035 {
0036 }
0037 
0038 static inline void ar9003_hw_rtt_set_mask(struct ath_hw *ah, u32 rtt_mask)
0039 {
0040 }
0041 
0042 static inline bool ar9003_hw_rtt_force_restore(struct ath_hw *ah)
0043 {
0044     return false;
0045 }
0046 
0047 static inline void ar9003_hw_rtt_load_hist(struct ath_hw *ah)
0048 {
0049 }
0050 
0051 static inline void ar9003_hw_rtt_fill_hist(struct ath_hw *ah)
0052 {
0053 }
0054 
0055 static inline void ar9003_hw_rtt_clear_hist(struct ath_hw *ah)
0056 {
0057 }
0058 
0059 static inline bool ar9003_hw_rtt_restore(struct ath_hw *ah, struct ath9k_channel *chan)
0060 {
0061     return false;
0062 }
0063 #endif
0064 
0065 #endif