From owner-svn-src-all@FreeBSD.ORG Sat Nov 3 04:53:45 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6F758D58; Sat, 3 Nov 2012 04:53:45 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 54B918FC0C; Sat, 3 Nov 2012 04:53:45 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id qA34rjpd088693; Sat, 3 Nov 2012 04:53:45 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id qA34rjA3088690; Sat, 3 Nov 2012 04:53:45 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201211030453.qA34rjA3088690@svn.freebsd.org> From: Adrian Chadd Date: Sat, 3 Nov 2012 04:53:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242508 - head/sys/dev/ath X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2012 04:53:45 -0000 Author: adrian Date: Sat Nov 3 04:53:44 2012 New Revision: 242508 URL: http://svn.freebsd.org/changeset/base/242508 Log: 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. Modified: head/sys/dev/ath/if_ath_debug.c head/sys/dev/ath/if_ath_debug.h Modified: head/sys/dev/ath/if_ath_debug.c ============================================================================== --- head/sys/dev/ath/if_ath_debug.c Sat Nov 3 04:29:24 2012 (r242507) +++ head/sys/dev/ath/if_ath_debug.c Sat Nov 3 04:53:44 2012 (r242508) @@ -247,4 +247,16 @@ ath_printtxbuf(struct ath_softc *sc, con 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 */ Modified: head/sys/dev/ath/if_ath_debug.h ============================================================================== --- head/sys/dev/ath/if_ath_debug.h Sat Nov 3 04:29:24 2012 (r242507) +++ head/sys/dev/ath/if_ath_debug.h Sat Nov 3 04:53:44 2012 (r242508) @@ -105,6 +105,8 @@ extern void ath_printrxbuf(struct ath_so 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)