diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-08-15 17:17:59 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-08-15 17:17:59 +0000 |
commit | 9e3a6984da1bb38af37ce4bb54af8f7475b7c766 (patch) | |
tree | 409e4bf78b9d726f6aa413933987055b6a1c0439 /programmer.h | |
parent | 9b32de94f5104cb7fa12816b7fa561b804df6ed8 (diff) | |
download | flashrom-9e3a6984da1bb38af37ce4bb54af8f7475b7c766.tar.gz flashrom-9e3a6984da1bb38af37ce4bb54af8f7475b7c766.tar.bz2 flashrom-9e3a6984da1bb38af37ce4bb54af8f7475b7c766.zip |
Refine handling chips that exceed maximum programmer sizes
- Change check_max_decode() to return the number of (common) busses
where the flash chip exceeds the supported size of the programmer.
- Refine its signature to use a flashctx pointer only.
- Move CLI-related bits to cli_classic.c.
- Rename check_max_decode() to count_max_decode_exceedings() to
better reflect what it (now) really does.
- Refine the messages printed by the caller to better integrate with the new
setup, and simplify them.
Corresponding to flashrom svn r1842.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'programmer.h')
-rw-r--r-- | programmer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/programmer.h b/programmer.h index 62acfeb5a..ab0d844f6 100644 --- a/programmer.h +++ b/programmer.h @@ -513,7 +513,7 @@ struct decode_sizes { extern struct decode_sizes max_rom_decode; extern int programmer_may_write; extern unsigned long flashbase; -int check_max_decode(enum chipbustype buses, uint32_t size); +unsigned int count_max_decode_exceedings(const struct flashctx *flash); char *extract_programmer_param(const char *param_name); /* spi.c */ |