summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2008-03-05 12:25:45 -0600
committerOlof Johansson <olof@lixom.net>2008-03-05 12:26:35 -0600
commitf37203b5ccaf6d58cb5ca6b1840e40f3b587109c (patch)
tree9f598d9e951c9927220a7fbc27d45d58b2d4d2c1 /include
parentafea3278f73c14271ee60ca7593ad74b7a946486 (diff)
downloadblackbird-op-linux-f37203b5ccaf6d58cb5ca6b1840e40f3b587109c.tar.gz
blackbird-op-linux-f37203b5ccaf6d58cb5ca6b1840e40f3b587109c.zip
[POWERPC] pasemi: Add flag management functions to dma_lib
Add functions to manage the channel syncronization flags to dma_lib Signed-off-by: Olof Johansson <olof@lixom.net> Acked-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-powerpc/pasemi_dma.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-powerpc/pasemi_dma.h b/include/asm-powerpc/pasemi_dma.h
index 35577b6dec41..ffd413d7dfb0 100644
--- a/include/asm-powerpc/pasemi_dma.h
+++ b/include/asm-powerpc/pasemi_dma.h
@@ -466,6 +466,12 @@ extern void *pasemi_dma_alloc_buf(struct pasemi_dmachan *chan, int size,
extern void pasemi_dma_free_buf(struct pasemi_dmachan *chan, int size,
dma_addr_t *handle);
+/* Routines to allocate flags (events) for channel syncronization */
+extern int pasemi_dma_alloc_flag(void);
+extern void pasemi_dma_free_flag(int flag);
+extern void pasemi_dma_set_flag(int flag);
+extern void pasemi_dma_clear_flag(int flag);
+
/* Initialize the library, must be called before any other functions */
extern int pasemi_dma_init(void);
OpenPOWER on IntegriCloud