diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2016-03-29 14:59:59 +0200 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2017-03-06 07:54:55 +0100 |
commit | 1ef9caa26bf7fddcab0f5d6f3fffecab2d503682 (patch) | |
tree | a37a5960245c606a999210dfa11c95e0e34bff3d /c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h | |
parent | leon, grspw_pkt: fixed device/dma closing (diff) | |
download | rtems-1ef9caa26bf7fddcab0f5d6f3fffecab2d503682.tar.bz2 |
leon, grspw_pkt: support for reading tx/rx DMA queue
* Add support for reading the GRSPW TX/RX descriptor counters
directly.
* Add semaphore lock to counters to avoid couters being out
of sync
* This makes it possible for the user in polling mode to check
the amount of work before entering RX/TX descriptor table
processing.
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h')
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h b/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h index 9a2a4405fd..1bab68be79 100644 --- a/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h +++ b/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h @@ -481,7 +481,7 @@ extern int grspw_dma_tx_send(void *c, int opts, struct grspw_list *pkts, int cou extern int grspw_dma_tx_reclaim(void *c, int opts, struct grspw_list *pkts, int *count); /* Get current number of Packets in respective TX Queue. */ -extern void grspw_dma_tx_count(void *c, int *send, int *sched, int *sent); +extern void grspw_dma_tx_count(void *c, int *send, int *sched, int *sent, int *hw); #define GRSPW_OP_AND 0 #define GRSPW_OP_OR 1 @@ -553,7 +553,7 @@ extern int grspw_dma_rx_recv(void *c, int opts, struct grspw_list *pkts, int *co extern int grspw_dma_rx_prepare(void *c, int opts, struct grspw_list *pkts, int count); /* Get current number of Packets in respective RX Queue. */ -extern void grspw_dma_rx_count(void *c, int *ready, int *sched, int *recv); +extern void grspw_dma_rx_count(void *c, int *ready, int *sched, int *recv, int *hw); /* Block until recv_cnt or more packets are Queued in RECV Q, op (AND or OR), * ready_cnt or fewer packet buffers are available in the "READY and Scheduled" Q, |