Bo Lv | 72d0e90 | 2023-01-02 14:27:34 +0000 | [diff] [blame] | 1 | /* 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 | |
| 11 | struct 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 | |
| 20 | struct instaboot_info { |
| 21 | struct new_utsname uts; |
| 22 | unsigned int version_code; |
| 23 | }; |
| 24 | #define INSTABOOT_SIG "INSTABOOT" |
| 25 | |
| 26 | extern int get_instaboot_header(struct instaboot_info* ib_info); |
| 27 | extern int fdt_instaboot(void *fdt); |
| 28 | |
| 29 | #endif /* __INSTABOOT_H_ */ |