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