/* * nand_ota_burn.h for SUNXI NAND . * * Copyright (C) 2016 Allwinner. * * * This file is licensed under the terms of the GNU General Public * License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ #ifndef _NAND_OTA_BURN_H_ #define _NAND_OTA_BURN_H_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "nand_lib.h" #include "nand_boot.h" extern int NAND_Print(const char *fmt, ...); extern int NAND_PhysicLock(void); extern int NAND_PhysicUnLock(void); extern int nand_get_param(void *nand_param); extern int nand_get_param_for_uboottail(void *nand_param); extern int nand_read_nboot_data(unsigned char *buf, unsigned int len); extern int nand_read_uboot_data(unsigned char *buf, unsigned int len); extern int nand_write_nboot_data(unsigned char *buf, unsigned int len); extern int nand_write_uboot_data(unsigned char *buf, unsigned int len); extern int nand_dragonborad_test_one(unsigned char *buf, unsigned char *oob, unsigned int blk_num); extern int NAND_IS_Secure_sys(void); extern int nand_check_uboot(unsigned char *buf, unsigned int len); extern int nand_get_uboot_total_len(void); int NAND_CheckBoot(void); #endif