xref: /OK3568_Linux_fs/external/recovery/sdboot.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 _SDBOOT_H_
16*4882a593Smuzhiyun #define _SDBOOT_H_
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun #define EX_SDCARD_ROOT  "/mnt/sdcard"
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun #ifdef  __cplusplus
21*4882a593Smuzhiyun extern "C" {
22*4882a593Smuzhiyun #endif
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun bool is_boot_from_SD(void);
25*4882a593Smuzhiyun void ensure_sd_mounted(bool *bSDMounted);
26*4882a593Smuzhiyun bool is_sdcard_update(void);
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #ifdef  __cplusplus
29*4882a593Smuzhiyun }
30*4882a593Smuzhiyun #endif
31*4882a593Smuzhiyun 
32*4882a593Smuzhiyun #endif  //_SDBOOT_H_
33