diff options
| author | Tom Rini <[email protected]> | 2019-07-29 11:51:17 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-07-29 11:51:17 -0400 |
| commit | 2d64a0f7e952f54375702fb2b854461e402ded9d (patch) | |
| tree | 591a1592b29de743bb52895ebb098ebc8b00f57a /include/image.h | |
| parent | 92430b8fc8aac3b4ab92e9ca8a09d83c4788c609 (diff) | |
| parent | f043dc28e3cce115089fb9ab86bc6f4bc4a8a882 (diff) | |
Merge branch '2019-07-29-master-imports'
- Assorted bug fixes
Diffstat (limited to 'include/image.h')
| -rw-r--r-- | include/image.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h index 5f821949513..27d7cb9d1e8 100644 --- a/include/image.h +++ b/include/image.h @@ -850,6 +850,23 @@ static inline int image_check_target_arch(const image_header_t *hdr) #endif /* USE_HOSTCC */ /** + * image_decomp() - decompress an image + * + * @comp: Compression algorithm that is used (IH_COMP_...) + * @load: Destination load address in U-Boot memory + * @image_start Image start address (where we are decompressing from) + * @type: OS type (IH_OS_...) + * @load_bug: Place to decompress to + * @image_buf: Address to decompress from + * @image_len: Number of bytes in @image_buf to decompress + * @unc_len: Available space for decompression + * @return 0 if OK, -ve on error (BOOTM_ERR_...) + */ +int image_decomp(int comp, ulong load, ulong image_start, int type, + void *load_buf, void *image_buf, ulong image_len, + uint unc_len, ulong *load_end); + +/** * Set up properties in the FDT * * This sets up properties in the FDT that is to be passed to linux. |
