blob: b64b6c830ece770680ec5fa856ff926f2663b59f [file] [log] [blame]
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* include/amlogic/instaboot.h
*
* Copyright (C) 2020 Amlogic, Inc. All rights reserved.
*
*/
#ifndef __INSTABOOT_H_
#define __INSTABOOT_H_
#define __NEW_UTS_LEN 64
struct new_utsname {
char sysname[__NEW_UTS_LEN + 1];
char nodename[__NEW_UTS_LEN + 1];
char release[__NEW_UTS_LEN + 1];
char version[__NEW_UTS_LEN + 1];
char machine[__NEW_UTS_LEN + 1];
char domainname[__NEW_UTS_LEN + 1];
};
struct instaboot_info {
struct new_utsname uts;
unsigned int version_code;
};
#define INSTABOOT_SIG "INSTABOOT"
extern int get_instaboot_header(struct instaboot_info* ib_info);
extern int fdt_instaboot(void *fdt);
#endif /* __INSTABOOT_H_ */