aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/samsung_modemctl/onedram/onedram.h
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2011-12-24 09:34:37 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2011-12-24 09:35:11 +0700
commitfdc19983538bec90010fa7f344a7417ff4731ba8 (patch)
tree8a84a1edd1c026b71fec4756caf27cbbb9e827d5 /drivers/misc/samsung_modemctl/onedram/onedram.h
parentb55e9ac4df4d240b39eda4cd9c0198453dd59061 (diff)
downloadkernel_samsung_aries-fdc19983538bec90010fa7f344a7417ff4731ba8.zip
kernel_samsung_aries-fdc19983538bec90010fa7f344a7417ff4731ba8.tar.gz
kernel_samsung_aries-fdc19983538bec90010fa7f344a7417ff4731ba8.tar.bz2
Added support for aries
Reverts "S5PC11X : FIMC apply v4l2 standard for asynchronous dequeue/queue" 5f4b037e6ebb18d65a3ac896032eb559d7fe2baf
Diffstat (limited to 'drivers/misc/samsung_modemctl/onedram/onedram.h')
-rw-r--r--drivers/misc/samsung_modemctl/onedram/onedram.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/drivers/misc/samsung_modemctl/onedram/onedram.h b/drivers/misc/samsung_modemctl/onedram/onedram.h
new file mode 100644
index 0000000..5fb50a9
--- /dev/null
+++ b/drivers/misc/samsung_modemctl/onedram/onedram.h
@@ -0,0 +1,54 @@
+/**
+ * header for onedram driver
+ *
+ * Copyright (C) 2010 Samsung Electronics. 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
+ * version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ */
+
+#ifndef __ONEDRAM_H__
+#define __ONEDRAM_H__
+
+#include <linux/ioport.h>
+#include <linux/types.h>
+
+struct onedram_platform_data {
+ void (*cfg_gpio)(void);
+};
+
+extern int onedram_register_handler(void (*handler)(u32, void *), void *data);
+extern int onedram_unregister_handler(void (*handler)(u32, void *));
+
+extern struct resource* onedram_request_region(resource_size_t start,
+ resource_size_t size, const char *name);
+extern void onedram_release_region(resource_size_t start,
+ resource_size_t size);
+
+extern int onedram_read_mailbox(u32 *);
+extern int onedram_write_mailbox(u32);
+
+extern int onedram_get_auth(u32 cmd);
+extern int onedram_put_auth(int release);
+
+extern int onedram_rel_sem(void);
+extern int onedram_read_sem(void);
+
+extern void onedram_get_vbase(void **);
+
+#define ONEDRAM_GET_AUTH _IOW('o', 0x20, u32)
+#define ONEDRAM_PUT_AUTH _IO('o', 0x21)
+#define ONEDRAM_REL_SEM _IO('o', 0x22)
+
+#endif /* __ONEDRAM_H__ */