aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSebastien RAULT <sebastien.rault@stericsson.com>2011-02-17 17:11:26 +0100
committerHenrik Öhman <henrik.ohman@stericsson.com>2011-03-15 08:16:15 +0100
commit478c3c96217c2d4107a6a9c8afdb8416c61ac338 (patch)
tree4872b59ff0e64ca15e5096b66f41475aa235cab0 /include
parent01e924e3e44060306a3f9702ad89ce545663f8a3 (diff)
ARM: ux500: mloader driver
Modem FW upload & download driver. Silent-reboot feature. Remove mloader_helper, as db5500 should use the new mloader implementation. ST-Ericsson ID: 258978 Change-Id: I3f9b0ff1792ac47d6ff431b60ddb929f57b961db Signed-off-by: Ludovic Barre <ludovic.barre@stericsson.com> Signed-off-by: Maxime Coquelin <maxime.coquelin-nonst@stericsson.com> Reviewed-by: Sebastien RAULT <sebastien.rault@stericsson.com> Tested-by: Sebastien RAULT <sebastien.rault@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/11747 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mloader.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/mloader.h b/include/linux/mloader.h
new file mode 100644
index 00000000000..ceca3245856
--- /dev/null
+++ b/include/linux/mloader.h
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) ST-Ericsson SA 2010
+ * Author: Ludovic Barre <ludovic.barre@stericsson.com> for ST-Ericsson.
+ * License terms: GNU General Public License (GPL), version 2
+ */
+
+#ifndef _MLOADER_H_
+#define _MLOADER_H_
+
+/* not use in ioctl-number.txt */
+#define ML_IO_NUMBER 0xFE
+
+#define ML_UPLOAD _IO(ML_IO_NUMBER, 1)
+#define ML_GET_NBIMAGES _IOR(ML_IO_NUMBER, 2, int)
+#define ML_GET_DUMPINFO _IOR(ML_IO_NUMBER, 3, struct dump_image*)
+
+#define MAX_NAME 16
+
+struct dump_image {
+ char name[MAX_NAME];
+ unsigned int offset;
+ unsigned int size;
+};
+
+#endif /* _MLOADER_H_ */