summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-06-01 00:02:11 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-06-01 00:02:11 +0000
commit3504b539bfa33693510d83402a344b1eafd7a592 (patch)
tree188831bf4243fd81eb83eb983a06731d21021529 /flash.h
parent211fa97ce8c3cf9c527fbf2d004f9f98420f8a60 (diff)
downloadast2050-flashrom-3504b539bfa33693510d83402a344b1eafd7a592.zip
ast2050-flashrom-3504b539bfa33693510d83402a344b1eafd7a592.tar.gz
Add bus type support to the dummy external programmer
The syntax is explained in the man page. Example: flashrom -p dummy=lpc,fwh Tested, works perfectly. ;-) As a nice benefit, it allows easy testing of the "probe only compatible flashes" patch. Corresponding to flashrom svn r559. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index becab69..1668a57 100644
--- a/flash.h
+++ b/flash.h
@@ -122,6 +122,7 @@ uint32_t chip_readl(const chipaddr addr);
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
enum chipbustype {
+ CHIP_BUSTYPE_NONE = 0,
CHIP_BUSTYPE_PARALLEL = 1 << 0,
CHIP_BUSTYPE_LPC = 1 << 1,
CHIP_BUSTYPE_FWH = 1 << 2,
@@ -646,6 +647,7 @@ extern int io_fd;
#endif
/* dummyflasher.c */
+extern char *dummytype;
int dummy_init(void);
int dummy_shutdown(void);
void *dummy_map(const char *descr, unsigned long phys_addr, size_t len);
OpenPOWER on IntegriCloud