1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| /*
| * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd
| *
| * SPDX-License-Identifier: GPL-2.0
| */
|
| #ifndef __TYPE_DEF_H
| #define __TYPE_DEF_H
|
| #include <asm/types.h>
|
| #ifndef NULL
| #define NULL 0
| #endif
|
| #define OK 0
| #define ERROR (-1)
|
| #define FTL_ERROR ERROR
| #define FTL_OK OK
| #define FTL_NO_FLASH -2
| #define FTL_NO_IDB -3
| #define FTL_UNSUPPORTED_FLASH -4
|
| #define FALSE 0
| #define TRUE (!FALSE)
|
| #define INVALID_UINT8 ((u8)0xFF)
| #define INVALID_UINT16 ((u16)0xFFFF)
| #define INVALID_UINT32 ((u32)0xFFFFFFFFL)
|
| #endif /*__TYPEDEF_H */
|
|