blob: 76332734577449e02241c8db9a11992419a72423 [file] [log] [blame]
#ifndef FS2DT_H
#define FS2DT_H
#if (BOOT_BLOCK_VERSION != 2 && BOOT_BLOCK_VERSION != 17)
#error Please add or correct definition of BOOT_BLOCK_VERSION
#endif
/* boot block as defined by the linux kernel */
struct bootblock {
unsigned magic;
unsigned totalsize;
unsigned off_dt_struct;
unsigned off_dt_strings;
unsigned off_mem_rsvmap;
unsigned version;
unsigned last_comp_version;
#if (BOOT_BLOCK_VERSION >= 2)
/* version 2 fields below */
unsigned boot_physid;
/* version 3 fields below */
unsigned dt_strings_size;
#if (BOOT_BLOCK_VERSION >= 17)
/* version 17 fields below */
unsigned dt_struct_size;
#endif
#endif
};
extern struct bootblock bb[1];
/* Used for enabling printing message from purgatory code
* Only has implemented for PPC64 */
int my_debug;
extern int dt_no_old_root;
void reserve(unsigned long long where, unsigned long long length);
void create_flatten_tree(char **, off_t *, const char *);
#endif /* KEXEC_H */