mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 05:50:17 +00:00 
			
		
		
		
	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>
		
			
				
	
	
		
			28 lines
		
	
	
		
			604 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			28 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
 |