summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ath/if_ath_debug.c12
-rw-r--r--sys/dev/ath/if_ath_debug.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath_debug.c b/sys/dev/ath/if_ath_debug.c
index 9a01e64..7d620dd 100644
--- a/sys/dev/ath/if_ath_debug.c
+++ b/sys/dev/ath/if_ath_debug.c
@@ -247,4 +247,16 @@ ath_printtxbuf(struct ath_softc *sc, const struct ath_buf *first_bf,
ath_printtxbuf_legacy(sc, first_bf, qnum, ix, done);
}
+void
+ath_printtxstatbuf(struct ath_softc *sc, const struct ath_buf *first_bf,
+ const uint32_t *ds, u_int qnum, u_int ix, int done)
+{
+
+ printf("Q%u[%3u] ", qnum, ix);
+ printf(" %08x %08x %08x %08x %08x %08x\n",
+ ds[0], ds[1], ds[2], ds[3], ds[4], ds[5]);
+ printf(" %08x %08x %08x %08x %08x\n",
+ ds[6], ds[7], ds[8], ds[9], ds[10]);
+}
+
#endif /* ATH_DEBUG */
diff --git a/sys/dev/ath/if_ath_debug.h b/sys/dev/ath/if_ath_debug.h
index 1a591e4..b7b5a78 100644
--- a/sys/dev/ath/if_ath_debug.h
+++ b/sys/dev/ath/if_ath_debug.h
@@ -105,6 +105,8 @@ extern void ath_printrxbuf(struct ath_softc *, const struct ath_buf *bf,
u_int ix, int);
extern void ath_printtxbuf(struct ath_softc *, const struct ath_buf *bf,
u_int qnum, u_int ix, int done);
+extern void ath_printtxstatbuf(struct ath_softc *sc, const struct ath_buf *bf,
+ const uint32_t *ds, u_int qnum, u_int ix, int done);
#else /* ATH_DEBUG */
#define ATH_KTR(_sc, _km, _kf, ...) do { } while (0)
OpenPOWER on IntegriCloud