diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2012-11-03 04:53:44 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2012-11-03 04:53:44 +0000 |
commit | 70ee90299bb2dd350a3f7fd29e72313cd9ae3406 (patch) | |
tree | 4ca9d1b19b6f49f3ce102769b208399d71150730 /sys/dev/ath/if_ath_debug.c | |
parent | 299ff0d7ccee3db1a248d58f320e9c0098dd1cda (diff) | |
download | src-70ee90299bb2dd350a3f7fd29e72313cd9ae3406.tar.gz src-70ee90299bb2dd350a3f7fd29e72313cd9ae3406.zip |
Add a debug method to dump the EDMA TX status descriptor contents out.
This requires some HAL API changes to be useful, as there's no way
right now to pull out the TX status descriptor contents.
Notes
Notes:
svn path=/head/; revision=242508
Diffstat (limited to 'sys/dev/ath/if_ath_debug.c')
-rw-r--r-- | sys/dev/ath/if_ath_debug.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath_debug.c b/sys/dev/ath/if_ath_debug.c index 9a01e64d017b..7d620dde4fa4 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 */ |