aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/modems/xmm626/os_partitions.h
diff options
context:
space:
mode:
Diffstat (limited to 'samsung-ipc/modems/xmm626/os_partitions.h')
-rw-r--r--samsung-ipc/modems/xmm626/os_partitions.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/samsung-ipc/modems/xmm626/os_partitions.h b/samsung-ipc/modems/xmm626/os_partitions.h
new file mode 100644
index 0000000..518e538
--- /dev/null
+++ b/samsung-ipc/modems/xmm626/os_partitions.h
@@ -0,0 +1,52 @@
+/*
+ * This file is part of libsamsung-ipc.
+ *
+ * Copyright (C) 2013-2014 Paul Kocialkowski <contact@paulk.fr>
+ * Copyright (C) 2020 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+ *
+ * libsamsung-ipc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * libsamsung-ipc 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 libsamsung-ipc. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef XMM626_OS_PARTITIONS
+#define XMM626_OS_PARTITIONS
+
+/* Current function/partition mapping
+ * TODO: migrate functions
+ * +-----------------+-----------+
+ * | Function | Partition |
+ * +-----------------+-----------+
+ * | psi | PSIRAM |
+ * | ebl | EBL |
+ * | firmware | MAIN |
+ * | sec_start | SECPACK |
+ * | device specific | NV |
+ * +-----------------+-----------+
+ */
+enum modem_os_partition {
+ MODEM_OS_PARTITION_HEADER = 0,
+ MODEM_OS_PARTITION_PSIRAM,
+ MODEM_OS_PARTITION_EBL,
+ MODEM_OS_PARTITION_MAIN,
+ MODEM_OS_PARTITION_SECPACK,
+ MODEM_OS_PARTITION_NV,
+};
+
+struct modem_os_partition partition {
+ const enum modem_os_partition type;
+ void *data;
+ const size_t offset;
+ const size_t size;
+};
+
+#endif /* XMM626_OS_PARTITIONS */