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