mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 22:20:45 +00:00
3a21e92fc2
This patch updates erofs driver code to catch up with the latest code of erofs_utils (commit e4939f9eaa177e05d697ace85d8dc283e25dc2ed). LZMA will be supported in the separate patch later. Signed-off-by: Yifan Zhao <zhaoyifan@sjtu.edu.cn> Reviewed-by: Huang Jianan <jnhuang95@gmail.com>
27 lines
604 B
C
27 lines
604 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
#ifndef __EROFS_DECOMPRESS_H
|
|
#define __EROFS_DECOMPRESS_H
|
|
|
|
#include "internal.h"
|
|
|
|
struct z_erofs_decompress_req {
|
|
char *in, *out;
|
|
|
|
/*
|
|
* initial decompressed bytes that need to be skipped
|
|
* when finally copying to output buffer
|
|
*/
|
|
unsigned int decodedskip;
|
|
unsigned int inputsize, decodedlength;
|
|
|
|
/* cut point of interlaced uncompressed data */
|
|
unsigned int interlaced_offset;
|
|
|
|
/* indicate the algorithm will be used for decompression */
|
|
unsigned int alg;
|
|
bool partial_decoding;
|
|
};
|
|
|
|
int z_erofs_decompress(struct z_erofs_decompress_req *rq);
|
|
|
|
#endif
|