Deleted Added
full compact
if_ath_debug.c (227363) if_ath_debug.c (233227)
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_debug.c 227363 2011-11-08 22:01:03Z adrian $");
31__FBSDID("$FreeBSD: head/sys/dev/ath/if_ath_debug.c 233227 2012-03-20 04:50:25Z adrian $");
32
33#include "opt_inet.h"
34#include "opt_ath.h"
35#include "opt_wlan.h"
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/sysctl.h>

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

130 const struct ath_buf *bf = first_bf;
131 struct ath_hal *ah = sc->sc_ah;
132 const struct ath_desc *ds;
133 int i;
134
135 printf("Q%u[%3u]", qnum, ix);
136 while (bf != NULL) {
137 for (i = 0, ds = bf->bf_desc; i < bf->bf_nseg; i++, ds++) {
32
33#include "opt_inet.h"
34#include "opt_ath.h"
35#include "opt_wlan.h"
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/sysctl.h>

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

130 const struct ath_buf *bf = first_bf;
131 struct ath_hal *ah = sc->sc_ah;
132 const struct ath_desc *ds;
133 int i;
134
135 printf("Q%u[%3u]", qnum, ix);
136 while (bf != NULL) {
137 for (i = 0, ds = bf->bf_desc; i < bf->bf_nseg; i++, ds++) {
138 printf(" (DS.V:%p DS.P:%p) L:%08x D:%08x F:%04x%s\n"
139 " TXF: %04x Seq: %d swtry: %d ADDBAW?: %d DOBAW?: %d\n"
140 " %08x %08x %08x %08x %08x %08x\n",
138 printf(" (DS.V:%p DS.P:%p) L:%08x D:%08x F:%04x%s\n",
141 ds, (const struct ath_desc *)bf->bf_daddr + i,
142 ds->ds_link, ds->ds_data, bf->bf_txflags,
139 ds, (const struct ath_desc *)bf->bf_daddr + i,
140 ds->ds_link, ds->ds_data, bf->bf_txflags,
143 !done ? "" : (ts->ts_status == 0) ? " *" : " !",
141 !done ? "" : (ts->ts_status == 0) ? " *" : " !");
142 printf(" TXF: %04x Seq: %d swtry: %d ADDBAW?: %d DOBAW?: %d\n",
144 bf->bf_state.bfs_flags,
145 bf->bf_state.bfs_seqno,
146 bf->bf_state.bfs_retries,
147 bf->bf_state.bfs_addedbaw,
143 bf->bf_state.bfs_flags,
144 bf->bf_state.bfs_seqno,
145 bf->bf_state.bfs_retries,
146 bf->bf_state.bfs_addedbaw,
148 bf->bf_state.bfs_dobaw,
147 bf->bf_state.bfs_dobaw);
148 printf(" SEQNO_ASSIGNED: %d, NEED_SEQNO: %d\n",
149 bf->bf_state.bfs_seqno_assigned,
150 bf->bf_state.bfs_need_seqno);
151 printf(" %08x %08x %08x %08x %08x %08x\n",
149 ds->ds_ctl0, ds->ds_ctl1,
152 ds->ds_ctl0, ds->ds_ctl1,
150 ds->ds_hw[0], ds->ds_hw[1], ds->ds_hw[2], ds->ds_hw[3]);
153 ds->ds_hw[0], ds->ds_hw[1],
154 ds->ds_hw[2], ds->ds_hw[3]);
151 if (ah->ah_magic == 0x20065416) {
152 printf(" %08x %08x %08x %08x %08x %08x %08x %08x\n",
153 ds->ds_hw[4], ds->ds_hw[5], ds->ds_hw[6],
154 ds->ds_hw[7], ds->ds_hw[8], ds->ds_hw[9],
155 ds->ds_hw[10],ds->ds_hw[11]);
156 printf(" %08x %08x %08x %08x %08x %08x %08x %08x\n",
157 ds->ds_hw[12],ds->ds_hw[13],ds->ds_hw[14],
158 ds->ds_hw[15],ds->ds_hw[16],ds->ds_hw[17],
159 ds->ds_hw[18], ds->ds_hw[19]);
160 }
161 }
162 printf(" [end]\n");
163 bf = bf->bf_next;
164 }
165}
166
167#endif /* ATH_DEBUG */
155 if (ah->ah_magic == 0x20065416) {
156 printf(" %08x %08x %08x %08x %08x %08x %08x %08x\n",
157 ds->ds_hw[4], ds->ds_hw[5], ds->ds_hw[6],
158 ds->ds_hw[7], ds->ds_hw[8], ds->ds_hw[9],
159 ds->ds_hw[10],ds->ds_hw[11]);
160 printf(" %08x %08x %08x %08x %08x %08x %08x %08x\n",
161 ds->ds_hw[12],ds->ds_hw[13],ds->ds_hw[14],
162 ds->ds_hw[15],ds->ds_hw[16],ds->ds_hw[17],
163 ds->ds_hw[18], ds->ds_hw[19]);
164 }
165 }
166 printf(" [end]\n");
167 bf = bf->bf_next;
168 }
169}
170
171#endif /* ATH_DEBUG */