mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-12-23 20:51:10 +02:00
603032264a
Signed-off-by: Xiangfu Liu <xiangfu.z@gmail.com>
40 lines
1.2 KiB
C
40 lines
1.2 KiB
C
/*
|
|
* Copyright (C) 2009 Qi Hardware Inc.,
|
|
* Author: Xiangfu Liu <xiangfu@qi-hardware.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* version 3 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
* Boston, MA 02110-1301, USA
|
|
*/
|
|
#ifndef __ERROR_H__
|
|
#define __ERROR_H__
|
|
|
|
/*
|
|
* All of the return codes
|
|
*/
|
|
#define ERR_OK 0
|
|
#define ERR_TIMOUT 1
|
|
#define ERR_NOT_ERASED 2
|
|
#define ERR_PROTECTED 4
|
|
#define ERR_INVAL 8
|
|
#define ERR_OPS_NOTSUPPORT 9
|
|
#define ERR_ALIGN 16
|
|
#define ERR_UNKNOWN_FLASH_VENDOR 32
|
|
#define ERR_UNKNOWN_FLASH_TYPE 64
|
|
#define ERR_PROG_ERROR 128
|
|
#define ERR_ERASE_ERROR 256
|
|
#define ERR_WRITE_VERIFY 512
|
|
#define ERR_NOT_SUPPORT 1024 /* operation not supported */
|
|
|
|
#endif /* __ERROR_H__ */
|