summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-01-06 10:21:00 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-01-06 10:21:00 +0000
commitcc1802db50df74aa850d444ba0d7f6854bb7abd6 (patch)
tree5b902bfbb1830ee9aa50be6ddd9fcc72469619cd /flash.h
parentc57a920f3495526102daaff052942ab05be6cde0 (diff)
downloadast2050-flashrom-cc1802db50df74aa850d444ba0d7f6854bb7abd6.zip
ast2050-flashrom-cc1802db50df74aa850d444ba0d7f6854bb7abd6.tar.gz
Move generic programmer function into newly introduced programmer.c
Some programmers (most notably FT2232SPI) use fallback_* and noop_*, but those functions lived inside internal.c and were unavailable if no PCI-based programmers were compiled in. Move those functions to the new file programmer.c. Thanks to Patrick Georgi for finding this. Corresponding to flashrom svn r829. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Patrick Georgi <patrick.georgi@coresystems.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 4d1d6b6..e2e1e62 100644
--- a/flash.h
+++ b/flash.h
@@ -370,6 +370,8 @@ void mmio_writel(uint32_t val, void *addr);
uint8_t mmio_readb(void *addr);
uint16_t mmio_readw(void *addr);
uint32_t mmio_readl(void *addr);
+
+/* programmer.c */
int noop_shutdown(void);
void *fallback_map(const char *descr, unsigned long phys_addr, size_t len);
void fallback_unmap(void *virt_addr, size_t len);
OpenPOWER on IntegriCloud