hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
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
/* SPDX-License-Identifier: GPL-2.0 */
 
/* Copyright (c) 2018 Rockchip Electronics Co. Ltd. */
 
#ifndef    __TYPE_DEF_H
#define    __TYPE_DEF_H
 
#include <linux/kernel.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 */