summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Cartwright <joshc@codeaurora.org>2014-06-27 00:29:59 -0500
committerGeorgi Djakov <georgi.djakov@linaro.org>2015-02-19 10:50:49 +0200
commit3e6f49ab991ef36a1714e04da827c57d0a59744b (patch)
treef6b19437498d5d17c673c6691c4a4a4c152dce36
parent18b24c7b41072100b2752f85bc987bd36d6621d9 (diff)
qcom: ramdump: add header file
This is a snapshot of include/soc/qcom/ramdump.h as of msm-3.10 commit acdce027751d5a7488b283f0ce3111f873a5816d (Merge "defconfig: arm64: Enable ONESHOT_SYNC for msm8994") Core functionality is not added here, this header file is necessary for SMEM to build. Signed-off-by: Josh Cartwright <joshc@codeaurora.org> Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
-rw-r--r--include/soc/qcom/ramdump.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/include/soc/qcom/ramdump.h b/include/soc/qcom/ramdump.h
new file mode 100644
index 00000000000..7cd59dd8904
--- /dev/null
+++ b/include/soc/qcom/ramdump.h
@@ -0,0 +1,55 @@
+/* Copyright (c) 2011-2013, The Linux Foundation. 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 and
+ * only 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.
+ */
+
+#ifndef _RAMDUMP_HEADER
+#define _RAMDUMP_HEADER
+
+struct device;
+
+struct ramdump_segment {
+ unsigned long address;
+ unsigned long size;
+};
+
+#ifdef CONFIG_MSM_SUBSYSTEM_RESTART
+extern void *create_ramdump_device(const char *dev_name, struct device *parent);
+extern void destroy_ramdump_device(void *dev);
+extern int do_ramdump(void *handle, struct ramdump_segment *segments,
+ int nsegments);
+extern int do_elf_ramdump(void *handle, struct ramdump_segment *segments,
+ int nsegments);
+
+#else
+static inline void *create_ramdump_device(const char *dev_name,
+ struct device *parent)
+{
+ return NULL;
+}
+
+static inline void destroy_ramdump_device(void *dev)
+{
+}
+
+static inline int do_ramdump(void *handle, struct ramdump_segment *segments,
+ int nsegments)
+{
+ return -ENODEV;
+}
+
+static inline int do_elf_ramdump(void *handle, struct ramdump_segment *segments,
+ int nsegments)
+{
+ return -ENODEV;
+}
+#endif /* CONFIG_MSM_SUBSYSTEM_RESTART */
+
+#endif