debug.h (2e1cb23c5e3c38b25a678a8a14d7464341e8207f) debug.h (4b28a80dd6713c404f4f0084007456b769aba553)
1/*
2 * Copyright (c) 2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 76 unchanged lines hidden (view full) ---

85}
86
87void ath6kl_dump_registers(struct ath6kl_device *dev,
88 struct ath6kl_irq_proc_registers *irq_proc_reg,
89 struct ath6kl_irq_enable_reg *irq_en_reg);
90void dump_cred_dist_stats(struct htc_target *target);
91void ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len);
92void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war);
1/*
2 * Copyright (c) 2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 76 unchanged lines hidden (view full) ---

85}
86
87void ath6kl_dump_registers(struct ath6kl_device *dev,
88 struct ath6kl_irq_proc_registers *irq_proc_reg,
89 struct ath6kl_irq_enable_reg *irq_en_reg);
90void dump_cred_dist_stats(struct htc_target *target);
91void ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len);
92void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war);
93int ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf,
94 size_t len);
93int ath6kl_debug_init(struct ath6kl *ar);
94void ath6kl_debug_cleanup(struct ath6kl *ar);
95
96#else
97static inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,
98 const char *fmt, ...)
99{
100 return 0;

--- 19 unchanged lines hidden (view full) ---

120 const void *buf, size_t len)
121{
122}
123
124static inline void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)
125{
126}
127
95int ath6kl_debug_init(struct ath6kl *ar);
96void ath6kl_debug_cleanup(struct ath6kl *ar);
97
98#else
99static inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,
100 const char *fmt, ...)
101{
102 return 0;

--- 19 unchanged lines hidden (view full) ---

122 const void *buf, size_t len)
123{
124}
125
126static inline void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)
127{
128}
129
130static inline int ath6kl_debug_roam_tbl_event(struct ath6kl *ar,
131 const void *buf, size_t len)
132{
133 return 0;
134}
135
128static inline int ath6kl_debug_init(struct ath6kl *ar)
129{
130 return 0;
131}
132
133static inline void ath6kl_debug_cleanup(struct ath6kl *ar)
134{
135}
136
137#endif
138#endif
136static inline int ath6kl_debug_init(struct ath6kl *ar)
137{
138 return 0;
139}
140
141static inline void ath6kl_debug_cleanup(struct ath6kl *ar)
142{
143}
144
145#endif
146#endif