summaryrefslogtreecommitdiff
path: root/include/part.h
diff options
context:
space:
mode:
authorPeter Nessrup <peter.nessrup@stericsson.com>2010-08-17 10:39:02 +0200
committerMichael BRANDT <michael.brandt@stericsson.com>2010-09-16 11:52:23 +0200
commitf1f51a277554486f3f46e9a4c16e9a2c78e730de (patch)
tree619bb0990ab232a64109984a4f740711094c9d3b /include/part.h
parent04678dba604a7b0f459dd50ef717dc86ef4daad4 (diff)
Added TOC partition support
TOC partition support added under disk New files: part_toc.c, part_toc.h CONFIG_TOC_PARTITION needs to be set for it to be activated. ST-Ericsson ID: ER256835 Change-Id: I301b0650cb73b34f04b80dd5f27babdbf7ba09e1 Signed-off-by: Peter Nessrup <peter.nessrup@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4369 Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com> Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com>
Diffstat (limited to 'include/part.h')
-rw-r--r--include/part.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/part.h b/include/part.h
index 48aa816a7..e627170eb 100644
--- a/include/part.h
+++ b/include/part.h
@@ -70,6 +70,7 @@ typedef struct block_dev_desc {
#define PART_TYPE_ISO 0x03
#define PART_TYPE_AMIGA 0x04
#define PART_TYPE_EFI 0x05
+#define PART_TYPE_TOC 0x06
/*
* Type string for U-Boot bootable partitions
@@ -144,4 +145,13 @@ void print_part_efi (block_dev_desc_t *dev_desc);
int test_part_efi (block_dev_desc_t *dev_desc);
#endif
+#ifdef CONFIG_TOC_PARTITION
+/* disk/part_toc.c */
+int get_partition_info_toc (block_dev_desc_t * dev_desc, int part, disk_partition_t *info);
+void print_part_toc (block_dev_desc_t *dev_desc);
+int test_part_toc (block_dev_desc_t *dev_desc);
+int get_entry_info_toc(block_dev_desc_t *dev_desc, const char *toc_id,
+ u32 *offset, u32 *size, u32 *loadaddr);
+#endif
+
#endif /* _PART_H */