aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2006-11-19 17:09:25 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:24:22 -0500
commitaf3ee519c5d6bebbda9bf0ca3b81bc50b4dd2163 (patch)
tree03c4e5e6c10210239109d8456801d1902fb06a49 /drivers/net/bnx2.h
parenta16dda0e67cea666fb7eb708ab1199892c4a1a13 (diff)
[BNX2]: Re-organize firmware structures.
Re-organize the firmware handling code and declarations a bit to make the code more compact. 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.h48
1 files changed, 25 insertions, 23 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index 7fa7008f402a..11e9c55d1dd0 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -4107,41 +4107,43 @@ struct cpu_reg {
4107}; 4107};
4108 4108
4109struct fw_info { 4109struct fw_info {
4110 u32 ver_major; 4110 const u32 ver_major;
4111 u32 ver_minor; 4111 const u32 ver_minor;
4112 u32 ver_fix; 4112 const u32 ver_fix;
4113 4113
4114 u32 start_addr; 4114 const u32 start_addr;
4115 4115
4116 /* Text section. */ 4116 /* Text section. */
4117 u32 text_addr; 4117 const u32 text_addr;
4118 u32 text_len; 4118 const u32 text_len;
4119 u32 text_index; 4119 const u32 text_index;
4120 u32 *text; 4120 u32 *text;
4121 u8 *gz_text;
4122 const u32 gz_text_len;
4121 4123
4122 /* Data section. */ 4124 /* Data section. */
4123 u32 data_addr; 4125 const u32 data_addr;
4124 u32 data_len; 4126 const u32 data_len;
4125 u32 data_index; 4127 const u32 data_index;
4126 u32 *data; 4128 const u32 *data;
4127 4129
4128 /* SBSS section. */ 4130 /* SBSS section. */
4129 u32 sbss_addr; 4131 const u32 sbss_addr;
4130 u32 sbss_len; 4132 const u32 sbss_len;
4131 u32 sbss_index; 4133 const u32 sbss_index;
4132 u32 *sbss; 4134 const u32 *sbss;
4133 4135
4134 /* BSS section. */ 4136 /* BSS section. */
4135 u32 bss_addr; 4137 const u32 bss_addr;
4136 u32 bss_len; 4138 const u32 bss_len;
4137 u32 bss_index; 4139 const u32 bss_index;
4138 u32 *bss; 4140 const u32 *bss;
4139 4141
4140 /* Read-only section. */ 4142 /* Read-only section. */
4141 u32 rodata_addr; 4143 const u32 rodata_addr;
4142 u32 rodata_len; 4144 const u32 rodata_len;
4143 u32 rodata_index; 4145 const u32 rodata_index;
4144 u32 *rodata; 4146 const u32 *rodata;
4145}; 4147};
4146 4148
4147#define RV2P_PROC1 0 4149#define RV2P_PROC1 0