diff --git a/include/ChangeLog b/include/ChangeLog index 88ed75e6..97ef3ba7 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2003-08-27 Marcel Telka + + * brux/flash.h: Added FLASH_ERROR_* macros. + 2003-08-20 Marcel Telka Version 0.3.1 released. diff --git a/include/NEWS b/include/NEWS index 18ca22c9..371501a5 100644 --- a/include/NEWS +++ b/include/NEWS @@ -1,5 +1,8 @@ $Id$ + * Chages in brux common headers: + - Added FLASH_ERROR_* macros + include-0.3.1 (2003-08-20): * Removed win32/stdint.h installation in POSIX environments. diff --git a/include/brux/flash.h b/include/brux/flash.h index 25e792da..0f2e58a9 100644 --- a/include/brux/flash.h +++ b/include/brux/flash.h @@ -52,6 +52,12 @@ typedef struct { void (*readarray)( cfi_array_t *cfi_array ); } flash_driver_t; +#define FLASH_ERROR_NOERROR 0 +#define FLASH_ERROR_INVALID_COMMAND_SEQUENCE 1 +#define FLASH_ERROR_LOW_VPEN 2 +#define FLASH_ERROR_BLOCK_LOCKED 3 +#define FLASH_ERROR_UNKNOWN 99 + void detectflash( bus_t *bus ); void flashmem( bus_t *bus, FILE *f, uint32_t addr );