xref: /openbmc/u-boot/lib/zlib/zlib.c (revision e9c847c3)
1 /*
2  * This file is derived from various .h and .c files from the zlib-1.2.3
3  * distribution by Jean-loup Gailly and Mark Adler, with some additions
4  * by Paul Mackerras to aid in implementing Deflate compression and
5  * decompression for PPP packets.  See zlib.h for conditions of
6  * distribution and use.
7  *
8  * Changes that have been made include:
9  * - changed functions not used outside this file to "local"
10  * - added minCompression parameter to deflateInit2
11  * - added Z_PACKET_FLUSH (see zlib.h for details)
12  * - added inflateIncomp
13  */
14 
15 #include <common.h>
16 
17 #ifdef CONFIG_GZIP_COMPRESSED
18 #define NO_DUMMY_DECL
19 #include "deflate.c"
20 #include "trees.c"
21 #endif
22 
23 #include "zutil.h"
24 #include "inftrees.h"
25 #include "inflate.h"
26 #include "inffast.h"
27 #include "inffixed.h"
28 #include "inffast.c"
29 #include "inftrees.c"
30 #include "inflate.c"
31 #include "zutil.c"
32 #include "adler32.c"
33