summaryrefslogtreecommitdiff
path: root/flash.h
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2012-07-28 19:35:26 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2012-07-28 19:35:26 +0000
commit590e09c8850b11daf4de2a5e3a90527550d8061d (patch)
treee8398b3d451612b394f50cc373590dcccee44aa6 /flash.h
parentcc72f663f4f59e41efc96e6a50e3c4266f39be5b (diff)
downloadflashrom-590e09c8850b11daf4de2a5e3a90527550d8061d.tar.gz
Introduce enum test_state.
Previously boards in the wiki were tagged either as working or as known bad. But we added support to various boards via board enables that were then never tested because the owners have not reported back. This can now be tagged with NT and is shown appropriately. Also, the underlying data structure indicating state was converted from macros to an enum while preserving original integer values and is used for programmers and chipsets too. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1555 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/flash.h b/flash.h
index d669512..b41c281 100644
--- a/flash.h
+++ b/flash.h
@@ -253,8 +253,11 @@ int doit(struct flashctx *flash, int force, const char *filename, int read_it, i
int read_buf_from_file(unsigned char *buf, unsigned long size, const char *filename);
int write_buf_to_file(unsigned char *buf, unsigned long size, const char *filename);
-#define OK 0
-#define NT 1 /* Not tested */
+enum test_state {
+ OK = 0,
+ NT = 1, /* Not tested */
+ BAD
+};
/* Something happened that shouldn't happen, but we can go on. */
#define ERROR_NONFATAL 0x100