From f1f51a277554486f3f46e9a4c16e9a2c78e730de Mon Sep 17 00:00:00 2001 From: Peter Nessrup Date: Tue, 17 Aug 2010 10:39:02 +0200 Subject: 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 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/4369 Reviewed-by: Sebastian RASMUSSEN Reviewed-by: Michael BRANDT Reviewed-by: Ulf HANSSON --- include/part.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') 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 */ -- cgit v1.2.3