aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2006-06-13 01:21:25 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-06-18 00:30:44 -0400
commitfba9fe911bb4213c3de1d142fe0ee127cd361a78 (patch)
tree2fc7a68e612644cc8ce3ff8e44f210e20f6964b4 /drivers/net/bnx2.h
parent160882722cb21cbe5cead55cf38a5e70fc3af63e (diff)
[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 <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r--drivers/net/bnx2.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index ea1ab06046d7..cc36b75b2b39 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -4051,6 +4051,9 @@ struct bnx2 {
4051 u32 flash_size; 4051 u32 flash_size;
4052 4052
4053 int status_stats_size; 4053 int status_stats_size;
4054
4055 struct z_stream_s *strm;
4056 void *gunzip_buf;
4054}; 4057};
4055 4058
4056static u32 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset); 4059static u32 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset);