if_ath.c (233051) | if_ath.c (233053) |
---|---|
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 --- 14 unchanged lines hidden (view full) --- 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 30#include <sys/cdefs.h> | 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 --- 14 unchanged lines hidden (view full) --- 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 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/ath/if_ath.c 233051 2012-03-16 23:12:40Z adrian $"); | 31__FBSDID("$FreeBSD: head/sys/dev/ath/if_ath.c 233053 2012-03-16 23:24:27Z adrian $"); |
32 33/* 34 * Driver for the Atheros Wireless LAN controller. 35 * 36 * This software is derived from work of Atsushi Onoe; his contribution 37 * is greatly appreciated. 38 */ 39 --- 4750 unchanged lines hidden (view full) --- 4790 if (fail == 1) 4791 st = -1; 4792 else 4793 st = ((bf->bf_txflags & HAL_TXDESC_NOACK) == 0) ? 4794 ts->ts_status : HAL_TXERR_XRETRY; 4795 4796 if (bf->bf_state.bfs_dobaw) 4797 device_printf(sc->sc_dev, | 32 33/* 34 * Driver for the Atheros Wireless LAN controller. 35 * 36 * This software is derived from work of Atsushi Onoe; his contribution 37 * is greatly appreciated. 38 */ 39 --- 4750 unchanged lines hidden (view full) --- 4790 if (fail == 1) 4791 st = -1; 4792 else 4793 st = ((bf->bf_txflags & HAL_TXDESC_NOACK) == 0) ? 4794 ts->ts_status : HAL_TXERR_XRETRY; 4795 4796 if (bf->bf_state.bfs_dobaw) 4797 device_printf(sc->sc_dev, |
4798 "%s: dobaw should've been cleared!\n", __func__); | 4798 "%s: bf %p: seqno %d: dobaw should've been cleared!\n", 4799 __func__, 4800 bf, 4801 SEQNO(bf->bf_state.bfs_seqno)); |
4799 if (bf->bf_next != NULL) 4800 device_printf(sc->sc_dev, | 4802 if (bf->bf_next != NULL) 4803 device_printf(sc->sc_dev, |
4801 "%s: bf_next not NULL!\n", __func__); | 4804 "%s: bf %p: seqno %d: bf_next not NULL!\n", 4805 __func__, 4806 bf, 4807 SEQNO(bf->bf_state.bfs_seqno)); |
4802 4803 /* 4804 * Do any tx complete callback. Note this must 4805 * be done before releasing the node reference. 4806 * This will free the mbuf, release the net80211 4807 * node and recycle the ath_buf. 4808 */ 4809 ath_tx_freebuf(sc, bf, st); --- 537 unchanged lines hidden (view full) --- 5347 ath_hal_stopdmarecv(ah); /* disable DMA engine */ 5348 if (dodelay) 5349 DELAY(3000); /* 3ms is long enough for 1 frame */ 5350#ifdef ATH_DEBUG 5351 if (sc->sc_debug & (ATH_DEBUG_RESET | ATH_DEBUG_FATAL)) { 5352 struct ath_buf *bf; 5353 u_int ix; 5354 | 4808 4809 /* 4810 * Do any tx complete callback. Note this must 4811 * be done before releasing the node reference. 4812 * This will free the mbuf, release the net80211 4813 * node and recycle the ath_buf. 4814 */ 4815 ath_tx_freebuf(sc, bf, st); --- 537 unchanged lines hidden (view full) --- 5353 ath_hal_stopdmarecv(ah); /* disable DMA engine */ 5354 if (dodelay) 5355 DELAY(3000); /* 3ms is long enough for 1 frame */ 5356#ifdef ATH_DEBUG 5357 if (sc->sc_debug & (ATH_DEBUG_RESET | ATH_DEBUG_FATAL)) { 5358 struct ath_buf *bf; 5359 u_int ix; 5360 |
5355 printf("%s: rx queue %p, link %p\n", __func__, 5356 (caddr_t)(uintptr_t) ath_hal_getrxbuf(ah), sc->sc_rxlink); | 5361 device_printf(sc->sc_dev, 5362 "%s: rx queue %p, link %p\n", 5363 __func__, 5364 (caddr_t)(uintptr_t) ath_hal_getrxbuf(ah), 5365 sc->sc_rxlink); |
5357 ix = 0; 5358 TAILQ_FOREACH(bf, &sc->sc_rxbuf, bf_list) { 5359 struct ath_desc *ds = bf->bf_desc; 5360 struct ath_rx_status *rs = &bf->bf_status.ds_rxstat; 5361 HAL_STATUS status = ath_hal_rxprocdesc(ah, ds, 5362 bf->bf_daddr, PA2DESC(sc, ds->ds_link), rs); 5363 if (status == HAL_OK || (sc->sc_debug & ATH_DEBUG_FATAL)) 5364 ath_printrxbuf(sc, bf, ix, status == HAL_OK); --- 1461 unchanged lines hidden --- | 5366 ix = 0; 5367 TAILQ_FOREACH(bf, &sc->sc_rxbuf, bf_list) { 5368 struct ath_desc *ds = bf->bf_desc; 5369 struct ath_rx_status *rs = &bf->bf_status.ds_rxstat; 5370 HAL_STATUS status = ath_hal_rxprocdesc(ah, ds, 5371 bf->bf_daddr, PA2DESC(sc, ds->ds_link), rs); 5372 if (status == HAL_OK || (sc->sc_debug & ATH_DEBUG_FATAL)) 5373 ath_printrxbuf(sc, bf, ix, status == HAL_OK); --- 1461 unchanged lines hidden --- |