• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  *
4  * HDF is dual licensed: you can use it either under the terms of
5  * the GPL, or the BSD license, at your option.
6  * See the LICENSE file in the root of this repository for complete details.
7  */
8 
9 #ifndef MTD_BLOCK_H
10 #define MTD_BLOCK_H
11 
12 #include "mtd_core.h"
13 
14 #ifdef __cplusplus
15 #if __cplusplus
16 extern "C" {
17 #endif
18 #endif /* __cplusplus */
19 
20 int32_t MtdBlockInit(struct MtdDevice *mtd);
21 void MtdBlockUninit(struct MtdDevice *mtd);
22 
23 /* these too functions gona implemented by specific os */
24 extern int32_t MtdBlockOsInit(struct MtdDevice *mtd);
25 extern void MtdBlockOsUninit(struct MtdDevice *mtd);
26 
27 #ifdef __cplusplus
28 #if __cplusplus
29 }
30 #endif
31 #endif /* __cplusplus */
32 
33 #endif /* MTD_BLOCK_H */
34