summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2011-05-19 02:58:17 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2011-05-19 02:58:17 +0000
commit59f1dc75f79b28c0bce4751920e4cba7f556899c (patch)
treebb1bc24f3b73cd0c55da80698b01c84abefb5b89 /flash.h
parent05383f55993c7aacf2d2d722d8009b0a67335a05 (diff)
downloadflashrom-59f1dc75f79b28c0bce4751920e4cba7f556899c.zip
flashrom-59f1dc75f79b28c0bce4751920e4cba7f556899c.tar.gz
Whitespace, documentation and other small stuff
This patch combines three previously posted patches in a revised form. one is even stolen from Stefan Reinauer (remove umlauts from man page). some parts are the rest is Corresponding to flashrom svn r1317. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Signed-off-by: Stefan Reinauer <reinauer@google.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index f75d8bb..7086e01 100644
--- a/flash.h
+++ b/flash.h
@@ -107,7 +107,9 @@ struct flashchip {
uint32_t manufacture_id;
uint32_t model_id;
+ /* Total chip size in kilobytes */
int total_size;
+ /* Chip page size in bytes */
int page_size;
int feature_bits;
@@ -125,6 +127,9 @@ struct flashchip {
/*
* Erase blocks and associated erase function. Any chip erase function
* is stored as chip-sized virtual block together with said function.
+ * The first one that fits will be chosen. There is currently no way to
+ * influence that behaviour. For testing just comment out the other
+ * elements or set the function pointer to NULL.
*/
struct block_eraser {
struct eraseblock{
OpenPOWER on IntegriCloud