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