summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-05-04 00:39:50 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-05-04 00:39:50 +0000
commit4c82318e4ac57b6da384700fb9d454535b62b3ae (patch)
tree7d92a35b73cef6e339d3dfe1d3635c5843250046 /flash.h
parent54ce73a1f5c7ddecc7579c136dbac9c2c201b621 (diff)
downloadast2050-flashrom-4c82318e4ac57b6da384700fb9d454535b62b3ae.zip
ast2050-flashrom-4c82318e4ac57b6da384700fb9d454535b62b3ae.tar.gz
Constify flashchips array
This moves 99.5% of the .data section to .rodata (which ends up in .text). Corresponding to flashrom svn r1293. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/flash.h b/flash.h
index 91c4cf3..f75d8bb 100644
--- a/flash.h
+++ b/flash.h
@@ -173,7 +173,7 @@ struct flashchip {
#define TIMING_IGNORED -1
#define TIMING_ZERO -2
-extern struct flashchip flashchips[];
+extern const struct flashchip flashchips[];
/* print.c */
char *flashbuses_to_text(enum chipbustype bustype);
@@ -193,7 +193,7 @@ extern char *chip_to_probe;
void map_flash_registers(struct flashchip *flash);
int read_memmapped(struct flashchip *flash, uint8_t *buf, int start, int len);
int erase_flash(struct flashchip *flash);
-struct flashchip *probe_flash(struct flashchip *first_flash, int force);
+int probe_flash(int startchip, struct flashchip *fill_flash, int force);
int read_flash_to_file(struct flashchip *flash, char *filename);
int min(int a, int b);
int max(int a, int b);
OpenPOWER on IntegriCloud