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