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