diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2017-01-22 15:35:27 +0100 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2017-03-06 07:54:55 +0100 |
commit | 72ec13ef6f04487ea833121eed1e51cb19c6db55 (patch) | |
tree | 6b1057da203dec2af59aa7e080483a2ddb07dde0 /c/src/lib/libbsp/sparc/shared/include | |
parent | leon, grspw_pkt: fix interrupt code ctrl bit declarations (diff) | |
download | rtems-72ec13ef6f04487ea833121eed1e51cb19c6db55.tar.bz2 |
leon, grspw_pkt: functions to support custom work-task
Added new function:
* grspw_dma_ctrlsts() - Read value of DMA CTRL/STS reg.
* grspw_dma_enable_int() - re-enable interrupt, used when
implementing a custom work-task.
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared/include')
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h | 6 |
1 files changed, 6 insertions, 0 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 5b3a606c4e..71f45d5283 100644 --- a/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h +++ b/c/src/lib/libbsp/sparc/shared/include/grspw_pkt.h @@ -535,6 +535,12 @@ extern int grspw_dma_close(void *c); extern int grspw_dma_start(void *c); extern void grspw_dma_stop(void *c); +/* Enable interrupt manually */ +extern unsigned int grspw_dma_enable_int(void *c, int rxtx, int force); + +/* Return Current DMA Control & Status Register */ +extern unsigned int grspw_dma_ctrlsts(void *c); + /* Schedule List of packets for transmission at some point in * future. * |