1 /** 2 * Copyright (C) 2018 Fuzhou Rockchip Electronics Co., Ltd 3 * author: Chad.ma <Chad.ma@rock-chips.com> 4 * 5 * This software is licensed under the terms of the GNU General Public 6 * License version 2, as published by the Free Software Foundation, and 7 * may be copied, distributed, and modified under those terms. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 */ 14 15 #ifndef _USBBOOT_H_ 16 #define _USBBOOT_H_ 17 18 #define EX_UDISK_ROOT "/mnt/udisk" 19 #define EX_UDISK_ROOT2 "/mnt/usb_storage" 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 bool is_boot_from_udisk(void); 26 void ensure_udisk_mounted(bool *bSDMounted); 27 bool is_udisk_update(void); 28 29 #ifdef __cplusplus 30 } 31 #endif 32 33 #endif //_USBBOOT_H_ 34