summaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2006-06-13 07:21:25 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2006-06-18 06:30:44 +0200
commitfba9fe911bb4213c3de1d142fe0ee127cd361a78 (patch)
tree2fc7a68e612644cc8ce3ff8e44f210e20f6964b4 /drivers/net/bnx2.h
parent[BNX2]: Allow WoL settings on new 5708 chips (diff)
downloadlinux-fba9fe911bb4213c3de1d142fe0ee127cd361a78.tar.xz
linux-fba9fe911bb4213c3de1d142fe0ee127cd361a78.zip
[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 '')
-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 {
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);