mirror of
https://review.coreboot.org/flashrom.git
synced 2025-06-30 21:52:36 +02:00
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. Corresponding to flashrom svn r1555. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
7
flash.h
7
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
|
||||
|
Reference in New Issue
Block a user