4 * Copyright (c) 2012 - 2013 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the License);
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 #ifndef __MMC_HANDLER_H__
21 #define __MMC_HANDLER_H__
25 #define SMACKFS_MOUNT_OPT "smackfsroot=*,smackfsdef=*"
26 #define MMC_MOUNT_POINT "/opt/storage/sdcard"
29 #define RETRY_COUNT 10
31 #define MMC_POPUP_NAME "mmc-syspopup"
32 #define MMC_POPUP_APP_KEY "_APP_NAME_"
33 #define MMC_POPUP_SMACK_VALUE "checksmack"
42 enum mmc_fs_type type;
44 bool (*match) (const char *);
45 int (*check) (const char *);
46 int (*mount) (bool, const char *, const char *);
47 int (*format) (const char *);
54 unsigned int magic_sz;
58 void add_fs(const struct mmc_fs_ops *fs);
59 void remove_fs(const struct mmc_fs_ops *fs);
60 int get_mmc_devpath(char devpath[]);
61 bool mmc_check_mounted(const char *mount_point);
63 int mmc_uevent_start(void);
64 int mmc_uevent_stop(void);
65 int get_block_number(void);
66 #endif /* __MMC_HANDLER_H__ */