summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-08-31 00:09:21 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-08-31 00:09:21 +0000
commit2a1ed77f84e7cfc0a419c44edfbf41c78f211ac9 (patch)
tree1ce5908e88a7d94970f7f9fdd6a935db044599c5 /flash.h
parent4e32ec19b124a7431d1e3fd9f7e75196b7495a7e (diff)
downloadast2050-flashrom-2a1ed77f84e7cfc0a419c44edfbf41c78f211ac9.zip
ast2050-flashrom-2a1ed77f84e7cfc0a419c44edfbf41c78f211ac9.tar.gz
Introduce generic shutdown_free() and remove redundant internal_shutdown()
The former will be useful in cases where cleanup equals a simple call to free(). Corresponding to flashrom svn r1848. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index a5d3a55..03b26e7 100644
--- a/flash.h
+++ b/flash.h
@@ -54,6 +54,7 @@ typedef uint32_t chipsize_t; /* Able to store the number of bytes of any support
#define PRIuCHIPSIZE PRIu32
int register_shutdown(int (*function) (void *data), void *data);
+int shutdown_free(void *data);
void *programmer_map_flash_region(const char *descr, uintptr_t phys_addr, size_t len);
void programmer_unmap_flash_region(void *virt_addr, size_t len);
void programmer_delay(unsigned int usecs);
OpenPOWER on IntegriCloud