summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-01-17 17:12:44 +0000
committeradrian <adrian@FreeBSD.org>2013-01-17 17:12:44 +0000
commit465afdcd2717953d2a1d6ea8dca304f0f2ff759e (patch)
tree1caa0b5843bbc3d0832fa9af4350d612f38ae585 /tools
parent0aa13972fd9dad0a04feee215ca63c85fe9f2e4a (diff)
downloadFreeBSD-src-465afdcd2717953d2a1d6ea8dca304f0f2ff759e.zip
FreeBSD-src-465afdcd2717953d2a1d6ea8dca304f0f2ff759e.tar.gz
Add extra debugging fields.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/ath/athalq/ar5212_ds.c12
-rw-r--r--tools/tools/ath/athalq/ar5416_ds.c12
2 files changed, 16 insertions, 8 deletions
diff --git a/tools/tools/ath/athalq/ar5212_ds.c b/tools/tools/ath/athalq/ar5212_ds.c
index a1b12db..a6364a4 100644
--- a/tools/tools/ath/athalq/ar5212_ds.c
+++ b/tools/tools/ath/athalq/ar5212_ds.c
@@ -45,9 +45,11 @@ ar5212_decode_txstatus(struct if_ath_alq_payload *a)
/* 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_payload *a)
/* 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,
diff --git a/tools/tools/ath/athalq/ar5416_ds.c b/tools/tools/ath/athalq/ar5416_ds.c
index 6d429ed..55fa1db 100644
--- a/tools/tools/ath/athalq/ar5416_ds.c
+++ b/tools/tools/ath/athalq/ar5416_ds.c
@@ -45,9 +45,11 @@ ar5416_decode_txstatus(struct if_ath_alq_payload *a)
/* 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_payload *a)
/* 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,
OpenPOWER on IntegriCloud