path: root/flash.h
diff options
authorCarl-Daniel Hailfinger <>2010-01-06 10:21:00 +0000
committerCarl-Daniel Hailfinger <>2010-01-06 10:21:00 +0000
commitcc1802db50df74aa850d444ba0d7f6854bb7abd6 (patch)
tree5b902bfbb1830ee9aa50be6ddd9fcc72469619cd /flash.h
parentc57a920f3495526102daaff052942ab05be6cde0 (diff)
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 <> Acked-by: Patrick Georgi <>
Diffstat (limited to 'flash.h')
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