mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
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>
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user