You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
648 B
25 lines
648 B
7 years ago
|
/*
|
||
|
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
|
||
|
*
|
||
|
* SPDX-License-Identifier: BSD-3-Clause
|
||
|
*/
|
||
|
|
||
|
#ifndef __IMAGE_DECOMPRESS_H__
|
||
|
#define __IMAGE_DECOMPRESS_H__
|
||
|
|
||
|
#include <stddef.h>
|
||
|
#include <stdint.h>
|
||
|
|
||
|
struct image_info;
|
||
|
|
||
|
typedef int (decompressor_t)(uintptr_t *in_buf, size_t in_len,
|
||
|
uintptr_t *out_buf, size_t out_len,
|
||
|
uintptr_t work_buf, size_t work_len);
|
||
|
|
||
|
void image_decompress_init(uintptr_t buf_base, uint32_t buf_size,
|
||
|
decompressor_t *decompressor);
|
||
|
void image_decompress_prepare(struct image_info *info);
|
||
|
int image_decompress(struct image_info *info);
|
||
|
|
||
|
#endif /* __IMAGE_DECOMPRESS_H___ */
|