Date: Thu, 17 Jan 2013 17:12:45 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r245560 - head/tools/tools/ath/athalq Message-ID: <201301171712.r0HHCj7r023765@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Thu Jan 17 17:12:44 2013 New Revision: 245560 URL: http://svnweb.freebsd.org/changeset/base/245560 Log: Add extra debugging fields. Modified: head/tools/tools/ath/athalq/ar5212_ds.c head/tools/tools/ath/athalq/ar5416_ds.c Modified: head/tools/tools/ath/athalq/ar5212_ds.c ============================================================================== --- head/tools/tools/ath/athalq/ar5212_ds.c Thu Jan 17 17:08:10 2013 (r245559) +++ head/tools/tools/ath/athalq/ar5212_ds.c Thu Jan 17 17:12:44 2013 (r245560) @@ -45,9 +45,11 @@ ar5212_decode_txstatus(struct if_ath_alq /* XXX assumes txs is smaller than PAYLOAD_LEN! */ memcpy(&txs, &a->payload, sizeof(struct ar5212_desc)); - printf("[%u] [%llu] TXSTATUS\n", + printf("[%u] [%llu] TXSTATUS: TxDone=%d, TS=0x%08x\n\n", (unsigned int) be32toh(a->hdr.tstamp), - (unsigned long long) be64toh(a->hdr.threadid)); + (unsigned long long) be64toh(a->hdr.threadid), + MF(txs.u.tx.status1, AR_Done), + MS(txs.u.tx.status0, AR_SendTimestamp)); /* ds_txstatus0 */ printf(" Frmok=%d, xretries=%d, fifounderrun=%d, filt=%d\n", @@ -147,9 +149,11 @@ ar5212_decode_rxstatus(struct if_ath_alq /* XXX assumes rxs is smaller than PAYLOAD_LEN! */ memcpy(&rxs, &a->payload, sizeof(struct ar5212_desc)); - printf("[%u] [%llu] RXSTATUS\n", + printf("[%u] [%llu] RXSTATUS: RxOK=%d TS=0x%08x\n", (unsigned int) be32toh(a->hdr.tstamp), - (unsigned long long) be64toh(a->hdr.threadid)); + (unsigned long long) be64toh(a->hdr.threadid), + MF(rxs.ds_rxstatus1, AR_Done), + MS(rxs.ds_rxstatus1, AR_RcvTimestamp)); printf(" link=0x%08x, data=0x%08x, ctl0=0x%08x, ctl2=0x%08x\n", rxs.ds_link, Modified: head/tools/tools/ath/athalq/ar5416_ds.c ============================================================================== --- head/tools/tools/ath/athalq/ar5416_ds.c Thu Jan 17 17:08:10 2013 (r245559) +++ head/tools/tools/ath/athalq/ar5416_ds.c Thu Jan 17 17:12:44 2013 (r245560) @@ -45,9 +45,11 @@ ar5416_decode_txstatus(struct if_ath_alq /* XXX assumes txs is smaller than PAYLOAD_LEN! */ memcpy(&txs, &a->payload, sizeof(struct ar5416_desc)); - printf("[%u] [%llu] TXSTATUS\n", + printf("[%u] [%llu] TXSTATUS: TxDone=%d, TS=0x%08x\n", (unsigned int) be32toh(a->hdr.tstamp), - (unsigned long long) be64toh(a->hdr.threadid)); + (unsigned long long) be64toh(a->hdr.threadid), + MF(txs.u.tx.status[9], AR_TxDone), + txs.u.tx.status[2]); /* ds_txstatus0 */ printf(" RX RSSI 0 [%d %d %d]\n", @@ -250,9 +252,11 @@ ar5416_decode_rxstatus(struct if_ath_alq /* XXX assumes rxs is smaller than PAYLOAD_LEN! */ memcpy(&rxs, &a->payload, sizeof(struct ar5416_desc)); - printf("[%u] [%llu] RXSTATUS\n", + printf("[%u] [%llu] RXSTATUS: RxDone=%d, TS=0x%08x\n", (unsigned int) be32toh(a->hdr.tstamp), - (unsigned long long) be64toh(a->hdr.threadid)); + (unsigned long long) be64toh(a->hdr.threadid), + MF(rxs.ds_rxstatus8, AR_RxDone), + rxs.ds_rxstatus2); printf(" link=0x%08x, data=0x%08x, ctl0=0x%08x, ctl2=0x%08x\n", rxs.ds_link,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301171712.r0HHCj7r023765>