1 #ifndef __TIZEN_MISC_H__
2 #define __TIZEN_MISC_H__
4 struct thor_part_info {
17 #define HDR_BOOT_MAGIC 0x744f6f42 /* BoOt */
18 #define HDR_SIZE sizeof(struct sig_header)
20 /* Size of u-boot-mmc.bin - should be always padded to 1MB */
21 #define CONFIG_SIG_IMAGE_SIZE SZ_1M
25 unsigned int magic; /* image magic number */
26 unsigned int size; /* image data size */
27 unsigned int valid; /* valid flag */
28 char date[12]; /* image creation timestamp - YYMMDDHH */
29 char version[24]; /* image version */
30 char bd_name[16]; /* target board name */
31 char reserved[448]; /* reserved */
34 int check_board_signature(char *fname, unsigned int dn_addr, unsigned int size);
35 unsigned int tizen_get_jig_state(void);
37 enum tizen_pm_state check_pm_status(void);
38 unsigned int tizen_get_part_num(const char *part_name);
39 unsigned int tizen_get_part_info(const char *name, struct thor_part_info *info);