summaryrefslogtreecommitdiff
path: root/arch/arm/plat-omap/include/syslink/heapbuf_ioctl.h
diff options
context:
space:
mode:
authorArun Gopalakrishnan <x0102225@linuxomap.(none)>2009-05-27 21:19:28 +0530
committerSuman Anna <s-anna@ti.com>2010-02-10 10:31:42 -0600
commit544e8a78d2a97d2b498b4cb08227617f6a8362a2 (patch)
treeb8e4a8a4962851b6bede170483975f9ab7f6bf5f /arch/arm/plat-omap/include/syslink/heapbuf_ioctl.h
parent911accdfcc8c97181a8ca9b718eed269eea0aefb (diff)
IPC HeapBuf module fixes
The changes are 1. The ioctl interface is modified based on review comment to make it consistest with other ipc modules(e.g messageq) 2. All the ioctl commands are made IOWR 3. Debug prints were added in all the APIs failure return Signed-off-by: Arun M G <arunmg@ti.com>
Diffstat (limited to 'arch/arm/plat-omap/include/syslink/heapbuf_ioctl.h')
-rwxr-xr-xarch/arm/plat-omap/include/syslink/heapbuf_ioctl.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/arm/plat-omap/include/syslink/heapbuf_ioctl.h b/arch/arm/plat-omap/include/syslink/heapbuf_ioctl.h
index 14274bd57216..73b78b489ccc 100755
--- a/arch/arm/plat-omap/include/syslink/heapbuf_ioctl.h
+++ b/arch/arm/plat-omap/include/syslink/heapbuf_ioctl.h
@@ -40,7 +40,7 @@ enum CMD_HEAPBUF {
HEAPBUF_FREE,
HEAPBUF_SHAREDMEMREQ,
HEAPBUF_GETSTATS,
- HEAPBUF_GETEXTENDEDSTATS,
+ HEAPBUF_GETEXTENDEDSTATS
};
/*
@@ -52,12 +52,13 @@ enum CMD_HEAPBUF {
/*
* Command for heapbuf_setup
*/
-#define CMD_HEAPBUF_SETUP _IOW(IPC_IOC_MAGIC, HEAPBUF_SETUP, \
+#define CMD_HEAPBUF_SETUP _IOWR(IPC_IOC_MAGIC, HEAPBUF_SETUP, \
struct heapbuf_cmd_args)
/*
* Command for heapbuf_destroy
*/
-#define CMD_HEAPBUF_DESTROY _IO(IPC_IOC_MAGIC, HEAPBUF_DESTROY) \
+#define CMD_HEAPBUF_DESTROY _IOWR(IPC_IOC_MAGIC, HEAPBUF_DESTROY, \
+ struct heapbuf_cmd_args)
/*
* Command for heapbuf_prams_init
@@ -75,7 +76,7 @@ enum CMD_HEAPBUF {
/*
* Command for heapbuf_delete
*/
-#define CMD_HEAPBUF_DELETE _IOW(IPC_IOC_MAGIC, HEAPBUF_DELETE, \
+#define CMD_HEAPBUF_DELETE _IOWR(IPC_IOC_MAGIC, HEAPBUF_DELETE, \
struct heapbuf_cmd_args)
/*
@@ -87,7 +88,7 @@ enum CMD_HEAPBUF {
/*
* Command for heapbuf_close
*/
-#define CMD_HEAPBUF_CLOSE _IOW(IPC_IOC_MAGIC, HEAPBUF_CLOSE, \
+#define CMD_HEAPBUF_CLOSE _IOWR(IPC_IOC_MAGIC, HEAPBUF_CLOSE, \
struct heapbuf_cmd_args)
/*
@@ -99,7 +100,7 @@ enum CMD_HEAPBUF {
/*
* Command for heapbuf_free
*/
-#define CMD_HEAPBUF_FREE _IOW(IPC_IOC_MAGIC, HEAPBUF_FREE, \
+#define CMD_HEAPBUF_FREE _IOWR(IPC_IOC_MAGIC, HEAPBUF_FREE, \
struct heapbuf_cmd_args)
/*
@@ -195,7 +196,7 @@ union heapbuf_arg {
* Command arguments for heapbuf
*/
struct heapbuf_cmd_args{
- union heapbuf_arg cmd_arg;
+ union heapbuf_arg args;
s32 api_status;
};