mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[ZLIB]: Move bnx2 driver gzip unpacker into zlib.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Acked-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b3448b0bde
commit
8336793baf
5 changed files with 69 additions and 59 deletions
|
@ -82,7 +82,7 @@
|
|||
struct internal_state;
|
||||
|
||||
typedef struct z_stream_s {
|
||||
Byte *next_in; /* next input byte */
|
||||
const Byte *next_in; /* next input byte */
|
||||
uInt avail_in; /* number of bytes available at next_in */
|
||||
uLong total_in; /* total nb of input bytes read so far */
|
||||
|
||||
|
@ -699,4 +699,8 @@ extern int zlib_inflateInit2(z_streamp strm, int windowBits);
|
|||
struct internal_state {int dummy;}; /* hack for buggy compilers */
|
||||
#endif
|
||||
|
||||
/* Utility function: initialize zlib, unpack binary blob, clean up zlib,
|
||||
* return len or negative error code. */
|
||||
extern int zlib_inflate_blob(void *dst, unsigned dst_sz, const void *src, unsigned src_sz);
|
||||
|
||||
#endif /* _ZLIB_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue