1 /* 2 * Copyright (C) 2009 Qi Hardware Inc., 3 * Author: Xiangfu Liu <xiangfu@sharism.cc> 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * version 3 as published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * Boston, MA 02110-1301, USA 18 */ 19 #ifndef __ERROR_H__ 20 #define __ERROR_H__ 21 22 /* 23 * All of the return codes 24 */ 25 #define ERR_OK 0 26 #define ERR_TIMOUT 1 27 #define ERR_NOT_ERASED 2 28 #define ERR_PROTECTED 4 29 #define ERR_INVAL 8 30 #define ERR_OPS_NOTSUPPORT 9 31 #define ERR_ALIGN 16 32 #define ERR_UNKNOWN_FLASH_VENDOR 32 33 #define ERR_UNKNOWN_FLASH_TYPE 64 34 #define ERR_PROG_ERROR 128 35 #define ERR_ERASE_ERROR 256 36 #define ERR_WRITE_VERIFY 512 37 #define ERR_NOT_SUPPORT 1024 /* operation not supported */ 38 39 #endif /* __ERROR_H__ */