aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2007-09-30 20:55:51 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:53:57 -0400
commitb3448b0bde5f1a858397fe791f76632e978a1dc8 (patch)
tree930bd73182f12eb37c2f14121556b1c6ff67d6bd /drivers/net/bnx2.h
parent89e536a190f90d038bae7905a0c582cb7089b739 (diff)
[BNX2]: factor out gzip unpacker
This patch modifies gzip unpacking code in bnx2 driver so that it does not depend on bnx2 internals. I will move this code out of the driver and into zlib in follow-on patch. It can be useful in other drivers which need to store firmwares or any other relatively big binary blobs - fonts, cursor bitmaps, whatever. Patch is run tested by Michael Chan (driver author). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Acked-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.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index fbae439db647..a717459cc8d4 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -6681,9 +6681,6 @@ struct bnx2 {
6681 u32 flash_size; 6681 u32 flash_size;
6682 6682
6683 int status_stats_size; 6683 int status_stats_size;
6684
6685 struct z_stream_s *strm;
6686 void *gunzip_buf;
6687}; 6684};
6688 6685
6689static u32 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset); 6686static u32 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset);
@@ -6741,7 +6738,7 @@ struct fw_info {
6741 const u32 text_addr; 6738 const u32 text_addr;
6742 const u32 text_len; 6739 const u32 text_len;
6743 const u32 text_index; 6740 const u32 text_index;
6744 u32 *text; 6741/* u32 *text;*/
6745 u8 *gz_text; 6742 u8 *gz_text;
6746 const u32 gz_text_len; 6743 const u32 gz_text_len;
6747 6744