blob: afacf383808fbe1dd9541c898766c4e4e4610d8f [file] [log] [blame]
Bo Lv72d0e902023-01-02 14:27:34 +00001/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2/*
3 * Copyright (c) 2019 Amlogic, Inc. All rights reserved.
4 */
5
6#ifndef __INSTABOOT_H_
7#define __INSTABOOT_H_
8
9#define __NEW_UTS_LEN 64
10
11struct new_utsname {
12 char sysname[__NEW_UTS_LEN + 1];
13 char nodename[__NEW_UTS_LEN + 1];
14 char release[__NEW_UTS_LEN + 1];
15 char version[__NEW_UTS_LEN + 1];
16 char machine[__NEW_UTS_LEN + 1];
17 char domainname[__NEW_UTS_LEN + 1];
18};
19
20struct instaboot_info {
21 struct new_utsname uts;
22 unsigned int version_code;
23};
24#define INSTABOOT_SIG "INSTABOOT"
25
26extern int get_instaboot_header(struct instaboot_info* ib_info);
27extern int fdt_instaboot(void *fdt);
28
29#endif /* __INSTABOOT_H_ */