aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/udma.h')
-rw-r--r--include/linux/udma.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/include/linux/udma.h b/include/linux/udma.h
new file mode 100644
index 00000000000..9acc1954c7d
--- /dev/null
+++ b/include/linux/udma.h
@@ -0,0 +1,38 @@
1/*
2 * Copyright (C) 2012 Texas Instruments Incorporated
3 * Author: Cyril Chemparathy <cyril@ti.com>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation version 2.
8 *
9 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
10 * kind, whether express or implied; without even the implied warranty
11 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#ifndef _LINUX_UDMA_H
16#define _LINUX_UDMA_H
17
18#include <linux/types.h>
19#include <linux/dmaengine.h>
20
21struct udma_chan_data {
22 unsigned long ring_virt; /* in */
23 unsigned ring_size; /* in */
24 unsigned num_desc; /* in */
25 unsigned align; /* in */
26 char name[64]; /* in */
27 int eventfd; /* in */
28 enum dma_transfer_direction direction; /* in */
29
30 int handle; /* out */
31};
32
33#define UDMA_IOC_MAGIC 'I'
34#define UDMA_IOC_ATTACH _IOWR(UDMA_IOC_MAGIC, 0, struct udma_chan_data)
35#define UDMA_IOC_DETACH _IOW (UDMA_IOC_MAGIC, 1, int)
36#define UDMA_IOC_KICK _IOW (UDMA_IOC_MAGIC, 2, int)
37
38#endif /* _LINUX_UDMA_H */