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.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/firmware/target/arm/imx233/partitions-imx233.h b/firmware/target/arm/imx233/partitions-imx233.h
index 80936ad865..e5378dadbb 100644
--- a/firmware/target/arm/imx233/partitions-imx233.h
+++ b/firmware/target/arm/imx233/partitions-imx233.h
@@ -30,13 +30,15 @@
30 30
31enum imx233_part_t 31enum imx233_part_t
32{ 32{
33 IMX233_PART_USER,
34#if (IMX233_PARTITIONS & IMX233_FREESCALE) 33#if (IMX233_PARTITIONS & IMX233_FREESCALE)
35 IMX233_PART_BOOT, 34 IMX233_PART_BOOT,
35 IMX233_PART_DATA,
36 IMX233_PART_USER = IMX233_PART_DATA,
36#endif 37#endif
37#if (IMX233_PARTITIONS & IMX233_CREATIVE) 38#if (IMX233_PARTITIONS & IMX233_CREATIVE)
38 IMX233_PART_CFS, 39 IMX233_PART_CFS,
39 IMX233_PART_MINIFS, 40 IMX233_PART_MINIFS,
41 IMX233_PART_USER = IMX233_PART_CFS,
40#endif 42#endif
41}; 43};
42 44
@@ -45,9 +47,13 @@ enum imx233_part_t
45 * issue, one must provide a read function. */ 47 * issue, one must provide a read function. */
46typedef int (*part_read_fn_t)(intptr_t user, unsigned long start, int count, void* buf); 48typedef int (*part_read_fn_t)(intptr_t user, unsigned long start, int count, void* buf);
47/* Enable/Disable window computations for internal storage following the 49/* Enable/Disable window computations for internal storage following the
48 * Freescale convention */ 50 * Freescale/Creative convention */
49void imx233_partitions_enable_window(bool enable); 51void imx233_partitions_enable_window(bool enable);
50bool imx233_partitions_is_window_enabled(void); 52bool imx233_partitions_is_window_enabled(void);
53/* Compute the window size. The *start and *end parameters should contain
54 * the initial window in which the computation is done. So in particular,
55 * for a whole disk, *end should be the size of the disk when the function is
56 * called */
51int imx233_partitions_compute_window(intptr_t user, part_read_fn_t read_fn, 57int imx233_partitions_compute_window(intptr_t user, part_read_fn_t read_fn,
52 enum imx233_part_t part, unsigned *start, unsigned *end); 58 enum imx233_part_t part, unsigned *start, unsigned *end);
53 59