aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen/netxen_nic.h
diff options
context:
space:
mode:
authorDhananjay Phadke <dhananjay@netxen.com>2009-04-28 11:29:11 -0400
committerDavid S. Miller <davem@davemloft.net>2009-04-29 01:44:31 -0400
commitf7185c71234434d48b96f9a0387737df1759a4af (patch)
tree1974fad5606305f11a750e66ec1e45f0f89a65ac /drivers/net/netxen/netxen_nic.h
parent4ea528a151549df795c984649d75860ea40390bd (diff)
netxen: fix firmware download
o hold the firmware in memory across suspend, since filesystem may not be up after resuming. o reset the chip after requesting firmware, to minimize downtime for NC-SI. Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic.h')
-rw-r--r--drivers/net/netxen/netxen_nic.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h
index 16f5e2267eb3..8dacfbb003e2 100644
--- a/drivers/net/netxen/netxen_nic.h
+++ b/drivers/net/netxen/netxen_nic.h
@@ -42,6 +42,7 @@
42#include <linux/in.h> 42#include <linux/in.h>
43#include <linux/tcp.h> 43#include <linux/tcp.h>
44#include <linux/skbuff.h> 44#include <linux/skbuff.h>
45#include <linux/firmware.h>
45 46
46#include <linux/ethtool.h> 47#include <linux/ethtool.h>
47#include <linux/mii.h> 48#include <linux/mii.h>
@@ -1255,8 +1256,6 @@ struct netxen_adapter {
1255 u32 flags; 1256 u32 flags;
1256 u32 irq; 1257 u32 irq;
1257 u32 temp; 1258 u32 temp;
1258 u32 fw_major;
1259 u32 fw_version;
1260 1259
1261 struct netxen_adapter_stats stats; 1260 struct netxen_adapter_stats stats;
1262 1261
@@ -1295,6 +1294,10 @@ struct netxen_adapter {
1295 struct net_device_stats net_stats; 1294 struct net_device_stats net_stats;
1296 1295
1297 nx_nic_intr_coalesce_t coal; 1296 nx_nic_intr_coalesce_t coal;
1297
1298 u32 fw_major;
1299 u32 fw_version;
1300 const struct firmware *fw;
1298}; 1301};
1299 1302
1300/* 1303/*
@@ -1376,6 +1379,8 @@ void netxen_free_adapter_offload(struct netxen_adapter *adapter);
1376int netxen_initialize_adapter_offload(struct netxen_adapter *adapter); 1379int netxen_initialize_adapter_offload(struct netxen_adapter *adapter);
1377int netxen_phantom_init(struct netxen_adapter *adapter, int pegtune_val); 1380int netxen_phantom_init(struct netxen_adapter *adapter, int pegtune_val);
1378int netxen_load_firmware(struct netxen_adapter *adapter); 1381int netxen_load_firmware(struct netxen_adapter *adapter);
1382void netxen_request_firmware(struct netxen_adapter *adapter);
1383void netxen_release_firmware(struct netxen_adapter *adapter);
1379int netxen_pinit_from_rom(struct netxen_adapter *adapter, int verbose); 1384int netxen_pinit_from_rom(struct netxen_adapter *adapter, int verbose);
1380 1385
1381int netxen_rom_fast_read(struct netxen_adapter *adapter, int addr, int *valp); 1386int netxen_rom_fast_read(struct netxen_adapter *adapter, int addr, int *valp);