1fe8c2806Swdenk /*
2fe8c2806Swdenk * JFFS2 -- Journalling Flash File System, Version 2.
3fe8c2806Swdenk *
4fe8c2806Swdenk * Copyright (C) 2001 Red Hat, Inc.
5fe8c2806Swdenk *
6fe8c2806Swdenk * Created by David Woodhouse <dwmw2@cambridge.redhat.com>
7fe8c2806Swdenk *
8fe8c2806Swdenk * The original JFFS, from which the design for JFFS2 was derived,
9fe8c2806Swdenk * was designed and implemented by Axis Communications AB.
10fe8c2806Swdenk *
11fe8c2806Swdenk * The contents of this file are subject to the Red Hat eCos Public
12fe8c2806Swdenk * License Version 1.1 (the "Licence"); you may not use this file
13fe8c2806Swdenk * except in compliance with the Licence. You may obtain a copy of
14fe8c2806Swdenk * the Licence at http://www.redhat.com/
15fe8c2806Swdenk *
16fe8c2806Swdenk * Software distributed under the Licence is distributed on an "AS IS"
17fe8c2806Swdenk * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
18fe8c2806Swdenk * See the Licence for the specific language governing rights and
19fe8c2806Swdenk * limitations under the Licence.
20fe8c2806Swdenk *
21fe8c2806Swdenk * The Original Code is JFFS2 - Journalling Flash File System, version 2
22fe8c2806Swdenk *
23fe8c2806Swdenk * Alternatively, the contents of this file may be used under the
24fe8c2806Swdenk * terms of the GNU General Public License version 2 (the "GPL"), in
25fe8c2806Swdenk * which case the provisions of the GPL are applicable instead of the
26fe8c2806Swdenk * above. If you wish to allow the use of your version of this file
27fe8c2806Swdenk * only under the terms of the GPL and not to allow others to use your
28fe8c2806Swdenk * version of this file under the RHEPL, indicate your decision by
29fe8c2806Swdenk * deleting the provisions above and replace them with the notice and
30fe8c2806Swdenk * other provisions required by the GPL. If you do not delete the
31fe8c2806Swdenk * provisions above, a recipient may use your version of this file
32fe8c2806Swdenk * under either the RHEPL or the GPL.
33fe8c2806Swdenk *
34fe8c2806Swdenk * $Id: compr_zlib.c,v 1.2 2002/01/24 22:58:42 rfeany Exp $
35fe8c2806Swdenk *
36fe8c2806Swdenk */
37fe8c2806Swdenk
38fe8c2806Swdenk #include <common.h>
39fe8c2806Swdenk #include <config.h>
40fe8c2806Swdenk #include <jffs2/jffs2.h>
41fe8c2806Swdenk #include <jffs2/mini_inflate.h>
42fe8c2806Swdenk
zlib_decompress(unsigned char * data_in,unsigned char * cpage_out,__u32 srclen,__u32 destlen)43fe8c2806Swdenk long zlib_decompress(unsigned char *data_in, unsigned char *cpage_out,
44fe8c2806Swdenk __u32 srclen, __u32 destlen)
45fe8c2806Swdenk {
46*144876a3SMichal Simek return (decompress_block(cpage_out, data_in + 2, (void *) ldr_memcpy));
47fe8c2806Swdenk
48fe8c2806Swdenk }
49