diff options
author | FENG yu ning <fengyuning1984@gmail.com> | 2008-12-08 18:16:58 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2008-12-08 18:16:58 +0000 |
commit | 8a07f703ec89d5be98d7e47c49264a3b8184d956 (patch) | |
tree | 1dcae17f6f0ea946003e5c62e1c7264b3562f689 /util/flashrom/flash.h | |
parent | 60e7eebf96e6d53913b44b95cf83fa03c33e48c7 (diff) | |
download | coreboot-8a07f703ec89d5be98d7e47c49264a3b8184d956.tar.xz |
Generates OPCODES struct from the ICH7/ICH9/VIA chipset if its SPI
configuration is locked down.
Signed-off-by: FENG yu ning <fengyuning1984@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3805 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/flash.h')
-rw-r--r-- | util/flashrom/flash.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/flashrom/flash.h b/util/flashrom/flash.h index de9199ccb1..c74c96f3cb 100644 --- a/util/flashrom/flash.h +++ b/util/flashrom/flash.h @@ -51,6 +51,12 @@ #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) +/* for pairing opcodes with their required preop */ +struct preop_opcode_pair { + uint8_t preop; + uint8_t opcode; +}; + struct flashchip { const char *vendor; const char *name; @@ -76,6 +82,8 @@ struct flashchip { int (*write) (struct flashchip *flash, uint8_t *buf); int (*read) (struct flashchip *flash, uint8_t *buf); + struct preop_opcode_pair *preop_opcode_pairs; + /* Some flash devices have an additional register space. */ volatile uint8_t *virtual_memory; volatile uint8_t *virtual_registers; |