Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122924
b: refs/heads/master
c: 4d8cd00
h: refs/heads/master
v: v3
  • Loading branch information
Divy Le Ray authored and David S. Miller committed Dec 26, 2008
1 parent 1809aae commit e43a28e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6dd014808f91ad99d4d794cf7c7c69610c10f904
refs/heads/master: 4d8cd002602987ddc9507b5390800343f820ac92
10 changes: 10 additions & 0 deletions trunk/drivers/net/cxgb3/cxgb3_ctl_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ enum {

GET_RX_PAGE_INFO = 50,
GET_ISCSI_IPV4ADDR = 51,

GET_EMBEDDED_INFO = 70,
};

/*
Expand Down Expand Up @@ -176,4 +178,12 @@ struct ofld_page_info {
unsigned int page_size; /* Page size, should be a power of 2 */
unsigned int num; /* Number of pages */
};

/*
* Structure used to get firmware and protocol engine versions.
*/
struct ch_embedded_info {
u32 fw_vers;
u32 tp_vers;
};
#endif /* _CXGB3_OFFLOAD_CTL_DEFS_H */
9 changes: 9 additions & 0 deletions trunk/drivers/net/cxgb3/cxgb3_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e43a28e

Please sign in to comment.