xref: /freebsd/sys/dev/ath/if_athdfs.h (revision d77363ad5b5edb75d70e3fb09945d1c868cba0e5)
148237774SAdrian Chadd /*-
248237774SAdrian Chadd  * Copyright (c) 2011 Adrian Chadd, Xenion Pty Ltd
348237774SAdrian Chadd  * All rights reserved.
448237774SAdrian Chadd  *
548237774SAdrian Chadd  * Redistribution and use in source and binary forms, with or without
648237774SAdrian Chadd  * modification, are permitted provided that the following conditions
748237774SAdrian Chadd  * are met:
848237774SAdrian Chadd  * 1. Redistributions of source code must retain the above copyright
948237774SAdrian Chadd  *    notice, this list of conditions and the following disclaimer,
1048237774SAdrian Chadd  *    without modification.
1148237774SAdrian Chadd  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
1248237774SAdrian Chadd  *    similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
1348237774SAdrian Chadd  *    redistribution must be conditioned upon including a substantially
1448237774SAdrian Chadd  *    similar Disclaimer requirement for further binary redistribution.
1548237774SAdrian Chadd  *
1648237774SAdrian Chadd  * NO WARRANTY
1748237774SAdrian Chadd  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1848237774SAdrian Chadd  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1948237774SAdrian Chadd  * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
2048237774SAdrian Chadd  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
2148237774SAdrian Chadd  * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
2248237774SAdrian Chadd  * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2348237774SAdrian Chadd  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2448237774SAdrian Chadd  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
2548237774SAdrian Chadd  * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2648237774SAdrian Chadd  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
2748237774SAdrian Chadd  * THE POSSIBILITY OF SUCH DAMAGES.
2848237774SAdrian Chadd  *
2948237774SAdrian Chadd  * $FreeBSD$
3048237774SAdrian Chadd  */
3148237774SAdrian Chadd #ifndef	__IF_ATHDFS_H__
3248237774SAdrian Chadd #define	__IF_ATHDFS_H__
3348237774SAdrian Chadd 
3448237774SAdrian Chadd extern	int ath_dfs_attach(struct ath_softc *sc);
3548237774SAdrian Chadd extern	int ath_dfs_detach(struct ath_softc *sc);
36ead404d4SAdrian Chadd extern	int ath_dfs_radar_enable(struct ath_softc *,
3748237774SAdrian Chadd     struct ieee80211_channel *chan);
38*d77363adSAdrian Chadd extern	void ath_dfs_process_phy_err(struct ath_softc *sc, struct mbuf *m,
3948237774SAdrian Chadd     uint64_t tsf, struct ath_rx_status *rxstat);
4048237774SAdrian Chadd extern	int ath_dfs_process_radar_event(struct ath_softc *sc,
4148237774SAdrian Chadd     struct ieee80211_channel *chan);
4248237774SAdrian Chadd extern	int ath_dfs_tasklet_needed(struct ath_softc *sc,
4348237774SAdrian Chadd     struct ieee80211_channel *chan);
4448237774SAdrian Chadd extern	int ath_ioctl_phyerr(struct ath_softc *sc, struct ath_diag *ad);
458db87e40SAdrian Chadd extern	int ath_dfs_get_thresholds(struct ath_softc *sc,
468db87e40SAdrian Chadd     HAL_PHYERR_PARAM *param);
4748237774SAdrian Chadd 
4848237774SAdrian Chadd #endif	/* __IF_ATHDFS_H__ */
49