diff options
author | Michael Chan <mchan@broadcom.com> | 2006-06-13 05:21:25 (GMT) |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-18 04:30:44 (GMT) |
commit | fba9fe911bb4213c3de1d142fe0ee127cd361a78 (patch) | |
tree | 2fc7a68e612644cc8ce3ff8e44f210e20f6964b4 /drivers/net/bnx2.h | |
parent | 160882722cb21cbe5cead55cf38a5e70fc3af63e (diff) | |
download | linux-fba9fe911bb4213c3de1d142fe0ee127cd361a78.tar.xz |
[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 ea1ab06..cc36b75 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); |