aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/brocade/bna/bnad.h
diff options
context:
space:
mode:
authorKrishna Gudipati <kgudipat@brocade.com>2011-12-22 08:29:45 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-23 16:50:58 -0500
commit72a9730b3f556e18912f3e1b494a7aee7ae3dd91 (patch)
tree1b589cb530e6cf5145a29c3423c176408c667033 /drivers/net/ethernet/brocade/bna/bnad.h
parent6fc0d0f2e3bcbb4bfbc22a89c996e5905da4cc43 (diff)
bna: Added flash sub-module and ethtool eeprom entry points.
Change details: - The patch adds flash sub-module to the bna driver. - Added ethtool set_eeprom() and get_eeprom() entry points to support flash partition read/write operations. Signed-off-by: Krishna Gudipati <kgudipat@brocade.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/brocade/bna/bnad.h')
-rw-r--r--drivers/net/ethernet/brocade/bna/bnad.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad.h b/drivers/net/ethernet/brocade/bna/bnad.h
index 5487ca42d018..459030c191c5 100644
--- a/drivers/net/ethernet/brocade/bna/bnad.h
+++ b/drivers/net/ethernet/brocade/bna/bnad.h
@@ -124,6 +124,12 @@ enum bnad_link_state {
124 BNAD_LS_UP = 1 124 BNAD_LS_UP = 1
125}; 125};
126 126
127struct bnad_iocmd_comp {
128 struct bnad *bnad;
129 struct completion comp;
130 int comp_status;
131};
132
127struct bnad_completion { 133struct bnad_completion {
128 struct completion ioc_comp; 134 struct completion ioc_comp;
129 struct completion ucast_comp; 135 struct completion ucast_comp;
@@ -251,6 +257,8 @@ struct bnad_unmap_q {
251 257
252struct bnad { 258struct bnad {
253 struct net_device *netdev; 259 struct net_device *netdev;
260 u32 id;
261 struct list_head list_entry;
254 262
255 /* Data path */ 263 /* Data path */
256 struct bnad_tx_info tx_info[BNAD_MAX_TX]; 264 struct bnad_tx_info tx_info[BNAD_MAX_TX];
@@ -340,6 +348,7 @@ extern int bnad_mac_addr_set_locked(struct bnad *bnad, u8 *mac_addr);
340extern int bnad_enable_default_bcast(struct bnad *bnad); 348extern int bnad_enable_default_bcast(struct bnad *bnad);
341extern void bnad_restore_vlans(struct bnad *bnad, u32 rx_id); 349extern void bnad_restore_vlans(struct bnad *bnad, u32 rx_id);
342extern void bnad_set_ethtool_ops(struct net_device *netdev); 350extern void bnad_set_ethtool_ops(struct net_device *netdev);
351extern void bnad_cb_completion(void *arg, enum bfa_status status);
343 352
344/* Configuration & setup */ 353/* Configuration & setup */
345extern void bnad_tx_coalescing_timeo_set(struct bnad *bnad); 354extern void bnad_tx_coalescing_timeo_set(struct bnad *bnad);