aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/cxgb3_offload.c
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2008-12-26 01:16:39 -0800
committerDavid S. Miller <davem@davemloft.net>2008-12-26 01:16:39 -0800
commit4d8cd002602987ddc9507b5390800343f820ac92 (patch)
tree8762b66347fe7fdecaedc7be50d8599fe763d768 /drivers/net/cxgb3/cxgb3_offload.c
parentdrivers/net/wireless/prism54: fix sparse warnings: make symbols static (diff)
downloadlinux-dev-4d8cd002602987ddc9507b5390800343f820ac92.tar.xz
linux-dev-4d8cd002602987ddc9507b5390800343f820ac92.zip
cxgb3: add control to access embedded images
Update contol path between cxgb3 and ULP modules (iWARP, iSCSI) to provide access to firware and protocol engine info. Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/cxgb3/cxgb3_offload.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/cxgb3_offload.c b/drivers/net/cxgb3/cxgb3_offload.c
index 1ce69b742804..2d7f69aff1d9 100644
--- a/drivers/net/cxgb3/cxgb3_offload.c
+++ b/drivers/net/cxgb3/cxgb3_offload.c
@@ -438,6 +438,15 @@ static int cxgb_offload_ctl(struct t3cdev *tdev, unsigned int req, void *data)
p->ipv4addr = pi->iscsi_ipv4addr;
break;
}
+ case GET_EMBEDDED_INFO: {
+ struct ch_embedded_info *e = data;
+
+ spin_lock(&adapter->stats_lock);
+ t3_get_fw_version(adapter, &e->fw_vers);
+ t3_get_tp_version(adapter, &e->tp_vers);
+ spin_unlock(&adapter->stats_lock);
+ break;
+ }
default:
return -EOPNOTSUPP;
}