blob: cfcae9ef4a90eed164894ac7a35065e2cef84283
1 | #ifndef __INSTABOOT_H_ |
2 | #define __INSTABOOT_H_ |
3 | |
4 | #define __NEW_UTS_LEN 64 |
5 | |
6 | struct new_utsname { |
7 | char sysname[__NEW_UTS_LEN + 1]; |
8 | char nodename[__NEW_UTS_LEN + 1]; |
9 | char release[__NEW_UTS_LEN + 1]; |
10 | char version[__NEW_UTS_LEN + 1]; |
11 | char machine[__NEW_UTS_LEN + 1]; |
12 | char domainname[__NEW_UTS_LEN + 1]; |
13 | }; |
14 | |
15 | struct instaboot_info { |
16 | struct new_utsname uts; |
17 | unsigned int version_code; |
18 | }; |
19 | #define INSTABOOT_SIG "INSTABOOT" |
20 | |
21 | extern int get_instaboot_header(struct instaboot_info* ib_info); |
22 | extern int fdt_instaboot(void *fdt); |
23 | |
24 | #endif /* __INSTABOOT_H_ */ |
25 |