summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/partitions-imx233.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/partitions-imx233.h')
-rw-r--r--firmware/target/arm/imx233/partitions-imx233.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/partitions-imx233.h b/firmware/target/arm/imx233/partitions-imx233.h
index 4490aad77f..b7ed251dee 100644
--- a/firmware/target/arm/imx233/partitions-imx233.h
+++ b/firmware/target/arm/imx233/partitions-imx233.h
@@ -24,10 +24,27 @@
24#include "system.h" 24#include "system.h"
25#include "storage.h" 25#include "storage.h"
26 26
27#ifndef IMX233_PARTITIONS
28#error You must define IMX233_PARTITIONS
29#endif
30
31enum imx233_part_t
32{
33 IMX233_PART_USER,
34#if (IMX233_PARTITIONS & IMX233_FREESCALE)
35 IMX233_PART_BOOT,
36#endif
37#if (IMX233_PARTITIONS & IMX233_CREATIVE)
38 IMX233_PART_CFS,
39 IMX233_PART_MINIFS,
40#endif
41};
42
27/* Enable/Disable window computations for internal storage following the 43/* Enable/Disable window computations for internal storage following the
28 * Freescale convention */ 44 * Freescale convention */
29void imx233_partitions_enable_window(bool enable); 45void imx233_partitions_enable_window(bool enable);
30bool imx233_partitions_is_window_enabled(void); 46bool imx233_partitions_is_window_enabled(void);
31int imx233_partitions_compute_window(uint8_t mbr[512], unsigned *start, unsigned *end); 47int imx233_partitions_compute_window(IF_MD(int drive,) enum imx233_part_t part,
48 unsigned *start, unsigned *end);
32 49
33#endif /* __PARTITIONS_IMX233__ */ \ No newline at end of file 50#endif /* __PARTITIONS_IMX233__ */ \ No newline at end of file