hc
2023-11-22 f743a7adbd6e230d66a6206fa115b59fec2d88eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0+ */
/* Copyright (c) 2020 Rockchip Electronics Co., Ltd */
 
#ifndef _ROCKCHIP_DECOMPRESS
#define _ROCKCHIP_DECOMPRESS
 
enum decom_mod {
   LZ4_MOD,
   GZIP_MOD,
   ZLIB_MOD,
};
 
#ifdef CONFIG_ROCKCHIP_HW_DECOMPRESS
int rk_decom_start(u32 mode, phys_addr_t src, phys_addr_t dst, u32 dst_max_size);
#else
static inline int rk_decom_start(u32 mode, phys_addr_t src, phys_addr_t dst, u32 dst_max_size)
{
   return -EINVAL;
}
#endif
 
#endif