| /* |
| * Copyright (C) 2017 Amlogic, Inc. All rights reserved. |
| * * |
| This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License as published by |
| * the Free Software Foundation; either version 2 of the License, or |
| * (at your option) any later version. |
| * * |
| This program is distributed in the hope that it will be useful, but WITHOUT |
| * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| * more details. |
| * * |
| You should have received a copy of the GNU General Public License along |
| * with this program; if not, write to the Free Software Foundation, Inc., |
| * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| * * |
| Description: |
| */ |
| |
| #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_ */ |