diff options
author | Michael Chan <mchan@broadcom.com> | 2006-06-13 01:21:25 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-18 00:30:44 -0400 |
commit | fba9fe911bb4213c3de1d142fe0ee127cd361a78 (patch) | |
tree | 2fc7a68e612644cc8ce3ff8e44f210e20f6964b4 /drivers/net/bnx2.h | |
parent | 160882722cb21cbe5cead55cf38a5e70fc3af63e (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.h | 3 |
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 | ||
4056 | static u32 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset); | 4059 | static u32 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset); |