mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
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>
This commit is contained in:
1
flash.h
1
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);
|
||||
|
Reference in New Issue
Block a user