Deleted Added
full compact
if_athvar.h (251484) if_athvar.h (251655)
1/*-
2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 *
1/*-
2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 *
29 * $FreeBSD: head/sys/dev/ath/if_athvar.h 251484 2013-06-07 05:18:07Z adrian $
29 * $FreeBSD: head/sys/dev/ath/if_athvar.h 251655 2013-06-12 14:52:57Z adrian $
30 */
31
32/*
33 * Defintions for the Atheros Wireless LAN controller driver.
34 */
35#ifndef _DEV_ATH_ATHVAR_H
36#define _DEV_ATH_ATHVAR_H
37

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

625
626 /*
627 * Second set of flags.
628 */
629 u_int32_t sc_use_ent : 1,
630 sc_rx_stbc : 1,
631 sc_tx_stbc : 1,
632 sc_hasenforcetxop : 1, /* support enforce TxOP */
30 */
31
32/*
33 * Defintions for the Atheros Wireless LAN controller driver.
34 */
35#ifndef _DEV_ATH_ATHVAR_H
36#define _DEV_ATH_ATHVAR_H
37

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

625
626 /*
627 * Second set of flags.
628 */
629 u_int32_t sc_use_ent : 1,
630 sc_rx_stbc : 1,
631 sc_tx_stbc : 1,
632 sc_hasenforcetxop : 1, /* support enforce TxOP */
633 sc_hasdivcomb : 1, /* RX diversity combining */
633 sc_rx_lnamixer : 1; /* RX using LNA mixing */
634
635 int sc_cabq_enable; /* Enable cabq transmission */
636
637 /*
638 * Enterprise mode configuration for AR9380 and later chipsets.
639 */
640 uint32_t sc_ent_cfg;

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

836 void *sc_dfs; /* Used by an optional DFS module */
837 int sc_dodfs; /* Whether to enable DFS rx filter bits */
838 struct task sc_dfstask; /* DFS processing task */
839
840 /* Spectral related state */
841 void *sc_spectral;
842 int sc_dospectral;
843
634 sc_rx_lnamixer : 1; /* RX using LNA mixing */
635
636 int sc_cabq_enable; /* Enable cabq transmission */
637
638 /*
639 * Enterprise mode configuration for AR9380 and later chipsets.
640 */
641 uint32_t sc_ent_cfg;

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

837 void *sc_dfs; /* Used by an optional DFS module */
838 int sc_dodfs; /* Whether to enable DFS rx filter bits */
839 struct task sc_dfstask; /* DFS processing task */
840
841 /* Spectral related state */
842 void *sc_spectral;
843 int sc_dospectral;
844
845 /* LNA diversity related state */
846 void *sc_lna_div;
847 int sc_dolnadiv;
848
844 /* ALQ */
845#ifdef ATH_DEBUG_ALQ
846 struct if_ath_alq sc_alq;
847#endif
848
849 /* TX AMPDU handling */
850 int (*sc_addba_request)(struct ieee80211_node *,
851 struct ieee80211_tx_ampdu *, int, int, int);

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

1267#define ath_hal_getenforcetxop(_ah) \
1268 (ath_hal_getcapability(_ah, HAL_CAP_ENFORCE_TXOP, 1, NULL) == HAL_OK)
1269#define ath_hal_setenforcetxop(_ah, _v) \
1270 ath_hal_setcapability(_ah, HAL_CAP_ENFORCE_TXOP, 1, _v, NULL)
1271
1272#define ath_hal_hasrxlnamixer(_ah) \
1273 (ath_hal_getcapability(_ah, HAL_CAP_RX_LNA_MIXING, 0, NULL) == HAL_OK)
1274
849 /* ALQ */
850#ifdef ATH_DEBUG_ALQ
851 struct if_ath_alq sc_alq;
852#endif
853
854 /* TX AMPDU handling */
855 int (*sc_addba_request)(struct ieee80211_node *,
856 struct ieee80211_tx_ampdu *, int, int, int);

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

1272#define ath_hal_getenforcetxop(_ah) \
1273 (ath_hal_getcapability(_ah, HAL_CAP_ENFORCE_TXOP, 1, NULL) == HAL_OK)
1274#define ath_hal_setenforcetxop(_ah, _v) \
1275 ath_hal_setcapability(_ah, HAL_CAP_ENFORCE_TXOP, 1, _v, NULL)
1276
1277#define ath_hal_hasrxlnamixer(_ah) \
1278 (ath_hal_getcapability(_ah, HAL_CAP_RX_LNA_MIXING, 0, NULL) == HAL_OK)
1279
1280#define ath_hal_hasdivantcomb(_ah) \
1281 (ath_hal_getcapability(_ah, HAL_CAP_ANT_DIV_COMB, 0, NULL) == HAL_OK)
1282
1275/* EDMA definitions */
1276#define ath_hal_hasedma(_ah) \
1277 (ath_hal_getcapability(_ah, HAL_CAP_ENHANCED_DMA_SUPPORT, \
1278 0, NULL) == HAL_OK)
1279#define ath_hal_getrxfifodepth(_ah, _qtype, _req) \
1280 (ath_hal_getcapability(_ah, HAL_CAP_RXFIFODEPTH, _qtype, _req) \
1281 == HAL_OK)
1282#define ath_hal_getntxmaps(_ah, _req) \

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

1453 ((*(_ah)->ah_btCoexSetBmissThresh)((_ah), (_thr)))
1454#define ath_hal_btcoex_set_parameter(_ah, _attrib, _val) \
1455 ((*(_ah)->ah_btCoexSetParameter)((_ah), (_attrib), (_val)))
1456#define ath_hal_btcoex_enable(_ah) \
1457 ((*(_ah)->ah_btCoexEnable)((_ah)))
1458#define ath_hal_btcoex_disable(_ah) \
1459 ((*(_ah)->ah_btCoexDisable)((_ah)))
1460
1283/* EDMA definitions */
1284#define ath_hal_hasedma(_ah) \
1285 (ath_hal_getcapability(_ah, HAL_CAP_ENHANCED_DMA_SUPPORT, \
1286 0, NULL) == HAL_OK)
1287#define ath_hal_getrxfifodepth(_ah, _qtype, _req) \
1288 (ath_hal_getcapability(_ah, HAL_CAP_RXFIFODEPTH, _qtype, _req) \
1289 == HAL_OK)
1290#define ath_hal_getntxmaps(_ah, _req) \

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

1461 ((*(_ah)->ah_btCoexSetBmissThresh)((_ah), (_thr)))
1462#define ath_hal_btcoex_set_parameter(_ah, _attrib, _val) \
1463 ((*(_ah)->ah_btCoexSetParameter)((_ah), (_attrib), (_val)))
1464#define ath_hal_btcoex_enable(_ah) \
1465 ((*(_ah)->ah_btCoexEnable)((_ah)))
1466#define ath_hal_btcoex_disable(_ah) \
1467 ((*(_ah)->ah_btCoexDisable)((_ah)))
1468
1469#define ath_hal_div_comb_conf_get(_ah, _conf) \
1470 ((*(_ah)->ah_divLnaConfGet)((_ah), (_conf)))
1471#define ath_hal_div_comb_conf_set(_ah, _conf) \
1472 ((*(_ah)->ah_divLnaConfSet)((_ah), (_conf)))
1473
1461#endif /* _DEV_ATH_ATHVAR_H */
1474#endif /* _DEV_ATH_ATHVAR_H */