aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorFancy Fang <B47543@freescale.com>2013-12-18 00:38:23 -0500
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:47:30 -0400
commitf20faecb0ab5dc76478b92aadcd0a6407388dd01 (patch)
treebf5e1aac613edbc921fcc96ac2034d70acacd7be /include/uapi/linux
parentdcb7a8c8d8330b16d0e8e2226023fee258dab1d1 (diff)
ENGR00292562 PXP: move the definitions used only by PXP device to a new header file
Some definitions used only by PXP device driver should not stay in pxp_dma.h which is shared by PXP, EPDC and V4L2. So the patch creates a new header file pxp_device.h to hold these definitions. Signed-off-by: Fancy Fang <B47543@freescale.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/Kbuild1
-rw-r--r--include/uapi/linux/pxp_device.h46
-rw-r--r--include/uapi/linux/pxp_dma.h16
3 files changed, 47 insertions, 16 deletions
diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild
index acca9400407f..3713ebd8979e 100644
--- a/include/uapi/linux/Kbuild
+++ b/include/uapi/linux/Kbuild
@@ -318,6 +318,7 @@ header-y += prctl.h
318header-y += ptp_clock.h 318header-y += ptp_clock.h
319header-y += ptrace.h 319header-y += ptrace.h
320header-y += pxp_dma.h 320header-y += pxp_dma.h
321header-y += pxp_device.h
321header-y += qnx4_fs.h 322header-y += qnx4_fs.h
322header-y += qnxtypes.h 323header-y += qnxtypes.h
323header-y += quota.h 324header-y += quota.h
diff --git a/include/uapi/linux/pxp_device.h b/include/uapi/linux/pxp_device.h
new file mode 100644
index 000000000000..4af108decfcf
--- /dev/null
+++ b/include/uapi/linux/pxp_device.h
@@ -0,0 +1,46 @@
1/*
2 * Copyright (C) 2013 Freescale Semiconductor, Inc. All Rights Reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 */
19#ifndef _UAPI_PXP_DEVICE
20#define _UAPI_PXP_DEVICE
21
22#include <linux/pxp_dma.h>
23
24struct pxp_chan_handle {
25 int chan_id;
26 int hist_status;
27};
28
29struct pxp_mem_desc {
30 unsigned int size;
31 dma_addr_t phys_addr;
32 unsigned int cpu_addr; /* cpu address to free the dma mem */
33 unsigned int virt_uaddr; /* virtual user space address */
34};
35
36#define PXP_IOC_MAGIC 'P'
37
38#define PXP_IOC_GET_CHAN _IOR(PXP_IOC_MAGIC, 0, struct pxp_mem_desc)
39#define PXP_IOC_PUT_CHAN _IOW(PXP_IOC_MAGIC, 1, struct pxp_mem_desc)
40#define PXP_IOC_CONFIG_CHAN _IOW(PXP_IOC_MAGIC, 2, struct pxp_mem_desc)
41#define PXP_IOC_START_CHAN _IOW(PXP_IOC_MAGIC, 3, struct pxp_mem_desc)
42#define PXP_IOC_GET_PHYMEM _IOWR(PXP_IOC_MAGIC, 4, struct pxp_mem_desc)
43#define PXP_IOC_PUT_PHYMEM _IOW(PXP_IOC_MAGIC, 5, struct pxp_mem_desc)
44#define PXP_IOC_WAIT4CMPLT _IOWR(PXP_IOC_MAGIC, 6, struct pxp_mem_desc)
45
46#endif
diff --git a/include/uapi/linux/pxp_dma.h b/include/uapi/linux/pxp_dma.h
index efe6f637ea90..d1f7a89ecd15 100644
--- a/include/uapi/linux/pxp_dma.h
+++ b/include/uapi/linux/pxp_dma.h
@@ -89,16 +89,6 @@ typedef unsigned char bool;
89 89
90#define NR_PXP_VIRT_CHANNEL 16 90#define NR_PXP_VIRT_CHANNEL 16
91 91
92#define PXP_IOC_MAGIC 'P'
93
94#define PXP_IOC_GET_CHAN _IOR(PXP_IOC_MAGIC, 0, struct pxp_mem_desc)
95#define PXP_IOC_PUT_CHAN _IOW(PXP_IOC_MAGIC, 1, struct pxp_mem_desc)
96#define PXP_IOC_CONFIG_CHAN _IOW(PXP_IOC_MAGIC, 2, struct pxp_mem_desc)
97#define PXP_IOC_START_CHAN _IOW(PXP_IOC_MAGIC, 3, struct pxp_mem_desc)
98#define PXP_IOC_GET_PHYMEM _IOWR(PXP_IOC_MAGIC, 4, struct pxp_mem_desc)
99#define PXP_IOC_PUT_PHYMEM _IOW(PXP_IOC_MAGIC, 5, struct pxp_mem_desc)
100#define PXP_IOC_WAIT4CMPLT _IOWR(PXP_IOC_MAGIC, 6, struct pxp_mem_desc)
101
102/* Order significant! */ 92/* Order significant! */
103enum pxp_channel_status { 93enum pxp_channel_status {
104 PXP_CHANNEL_FREE, 94 PXP_CHANNEL_FREE,
@@ -179,11 +169,5 @@ struct pxp_config_data {
179 int chan_id; 169 int chan_id;
180}; 170};
181 171
182struct pxp_mem_desc {
183 unsigned int size;
184 dma_addr_t phys_addr;
185 unsigned int cpu_addr; /* cpu address to free the dma mem */
186 unsigned int virt_uaddr; /* virtual user space address */
187};
188 172
189#endif 173#endif