From fba9fe911bb4213c3de1d142fe0ee127cd361a78 Mon Sep 17 00:00:00 2001 From: Michael Chan Date: Mon, 12 Jun 2006 22:21:25 -0700 Subject: [BNX2]: Add firmware decompression Add functions to decompress firmware before loading to the internal CPUs. Compressing the firmware reduces the driver size significantly. Added file name length sanity check in the gzip header to prevent going past the end of buffer [suggested by DaveM]. Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- drivers/net/bnx2.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/net/bnx2.h') diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h index ea1ab06046d..cc36b75b2b3 100644 --- a/drivers/net/bnx2.h +++ b/drivers/net/bnx2.h @@ -4051,6 +4051,9 @@ struct bnx2 { u32 flash_size; int status_stats_size; + + struct z_stream_s *strm; + void *gunzip_buf; }; static u32 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset); -- cgit v1.2.3-70-g09d2