diff options
author | Fancy Fang <B47543@freescale.com> | 2013-12-24 16:05:53 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-08-27 18:06:49 -0500 |
commit | 4dc3c55fe241b829b1789462ad1ebf67e26cfa11 (patch) | |
tree | 0f8b1c78444fba76824f4d382596e99232c720ae /include/uapi | |
parent | 305257c9364429166079f3f143b8e43ca06f3977 (diff) |
ENGR00293211 PXP: bind allocated DMA channels to opened device file descriptor
The allocated DMA channels via some opened file descriptor is better
to be bound to this descriptor. Since this can avoid some application
to fake a channel id which may be requested by other applications to
request PXP service. And also, this make it easier to release the dma
channel when application exists abnormally or forgets to release it
explicitly.
Signed-off-by: Fancy Fang <B47543@freescale.com>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/pxp_device.h | 4 | ||||
-rw-r--r-- | include/uapi/linux/pxp_dma.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/uapi/linux/pxp_device.h b/include/uapi/linux/pxp_device.h index 245b19e57156..e63a6e6eb418 100644 --- a/include/uapi/linux/pxp_device.h +++ b/include/uapi/linux/pxp_device.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright (C) 2013-2014 Freescale Semiconductor, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,7 +22,7 @@ #include <linux/pxp_dma.h> struct pxp_chan_handle { - int chan_id; + unsigned int handle; int hist_status; }; diff --git a/include/uapi/linux/pxp_dma.h b/include/uapi/linux/pxp_dma.h index d1f7a89ecd15..1e462f4193d2 100644 --- a/include/uapi/linux/pxp_dma.h +++ b/include/uapi/linux/pxp_dma.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright (C) 2013-2014 Freescale Semiconductor, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -166,7 +166,7 @@ struct pxp_config_data { int layer_nr; /* Users don't touch */ - int chan_id; + int handle; }; |