aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x/bnx2x_cmn.h
diff options
context:
space:
mode:
authorDmitry Kravkov <dmitry@broadcom.com>2010-08-03 17:49:40 -0400
committerDavid S. Miller <davem@davemloft.net>2010-08-17 00:06:18 -0400
commit6891dd25d3f82e50979b27fde1980aa96320b975 (patch)
tree8e1b1b74726f6ff6590864c648caa846b6734ea0 /drivers/net/bnx2x/bnx2x_cmn.h
parenteca6fc7836af8eec9ba7e029b604690451bb44a0 (diff)
bnx2x: Load firmware in open() instead of probe()
Loading firmware when actually bringing eth device up. This also will allow driver to be insmoded when filesystem with firmware files is not available yet. Suggested by Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_cmn.h')
-rw-r--r--drivers/net/bnx2x/bnx2x_cmn.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/bnx2x/bnx2x_cmn.h b/drivers/net/bnx2x/bnx2x_cmn.h
index d1979b1a7ed2..32543c32805c 100644
--- a/drivers/net/bnx2x/bnx2x_cmn.h
+++ b/drivers/net/bnx2x/bnx2x_cmn.h
@@ -115,6 +115,15 @@ void bnx2x_int_enable(struct bnx2x *bp);
115void bnx2x_int_disable_sync(struct bnx2x *bp, int disable_hw); 115void bnx2x_int_disable_sync(struct bnx2x *bp, int disable_hw);
116 116
117/** 117/**
118 * Loads device firmware
119 *
120 * @param bp
121 *
122 * @return int
123 */
124int bnx2x_init_firmware(struct bnx2x *bp);
125
126/**
118 * Init HW blocks according to current initialization stage: 127 * Init HW blocks according to current initialization stage:
119 * COMMON, PORT or FUNCTION. 128 * COMMON, PORT or FUNCTION.
120 * 129 *