bnad.h (e4da3fbfbd1de56d2367653e3823e6445e49f8a9) | bnad.h (72a9730b3f556e18912f3e1b494a7aee7ae3dd91) |
---|---|
1/* 2 * Linux network driver for Brocade Converged Network Adapter. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License (GPL) Version 2 as 6 * published by the Free Software Foundation 7 * 8 * This program is distributed in the hope that it will be useful, but --- 110 unchanged lines hidden (view full) --- 119 BNAD_INTR_RX = 2 120}; 121 122enum bnad_link_state { 123 BNAD_LS_DOWN = 0, 124 BNAD_LS_UP = 1 125}; 126 | 1/* 2 * Linux network driver for Brocade Converged Network Adapter. 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License (GPL) Version 2 as 6 * published by the Free Software Foundation 7 * 8 * This program is distributed in the hope that it will be useful, but --- 110 unchanged lines hidden (view full) --- 119 BNAD_INTR_RX = 2 120}; 121 122enum bnad_link_state { 123 BNAD_LS_DOWN = 0, 124 BNAD_LS_UP = 1 125}; 126 |
127struct bnad_iocmd_comp { 128 struct bnad *bnad; 129 struct completion comp; 130 int comp_status; 131}; 132 |
|
127struct bnad_completion { 128 struct completion ioc_comp; 129 struct completion ucast_comp; 130 struct completion mcast_comp; 131 struct completion tx_comp; 132 struct completion rx_comp; 133 struct completion stats_comp; 134 struct completion enet_comp; --- 111 unchanged lines hidden (view full) --- 246 247 248/* Define for Fast Path flags */ 249/* Defined as bit positions */ 250#define BNAD_FP_IN_RX_PATH 0 251 252struct bnad { 253 struct net_device *netdev; | 133struct bnad_completion { 134 struct completion ioc_comp; 135 struct completion ucast_comp; 136 struct completion mcast_comp; 137 struct completion tx_comp; 138 struct completion rx_comp; 139 struct completion stats_comp; 140 struct completion enet_comp; --- 111 unchanged lines hidden (view full) --- 252 253 254/* Define for Fast Path flags */ 255/* Defined as bit positions */ 256#define BNAD_FP_IN_RX_PATH 0 257 258struct bnad { 259 struct net_device *netdev; |
260 u32 id; 261 struct list_head list_entry; |
|
254 255 /* Data path */ 256 struct bnad_tx_info tx_info[BNAD_MAX_TX]; 257 struct bnad_rx_info rx_info[BNAD_MAX_RX]; 258 259 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)]; 260 /* 261 * These q numbers are global only because --- 73 unchanged lines hidden (view full) --- 335/* Netdev entry point prototypes */ 336extern void bnad_set_rx_mode(struct net_device *netdev); 337extern struct net_device_stats *bnad_get_netdev_stats( 338 struct net_device *netdev); 339extern int bnad_mac_addr_set_locked(struct bnad *bnad, u8 *mac_addr); 340extern int bnad_enable_default_bcast(struct bnad *bnad); 341extern void bnad_restore_vlans(struct bnad *bnad, u32 rx_id); 342extern void bnad_set_ethtool_ops(struct net_device *netdev); | 262 263 /* Data path */ 264 struct bnad_tx_info tx_info[BNAD_MAX_TX]; 265 struct bnad_rx_info rx_info[BNAD_MAX_RX]; 266 267 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)]; 268 /* 269 * These q numbers are global only because --- 73 unchanged lines hidden (view full) --- 343/* Netdev entry point prototypes */ 344extern void bnad_set_rx_mode(struct net_device *netdev); 345extern struct net_device_stats *bnad_get_netdev_stats( 346 struct net_device *netdev); 347extern int bnad_mac_addr_set_locked(struct bnad *bnad, u8 *mac_addr); 348extern int bnad_enable_default_bcast(struct bnad *bnad); 349extern void bnad_restore_vlans(struct bnad *bnad, u32 rx_id); 350extern void bnad_set_ethtool_ops(struct net_device *netdev); |
351extern void bnad_cb_completion(void *arg, enum bfa_status status); |
|
343 344/* Configuration & setup */ 345extern void bnad_tx_coalescing_timeo_set(struct bnad *bnad); 346extern void bnad_rx_coalescing_timeo_set(struct bnad *bnad); 347 348extern int bnad_setup_rx(struct bnad *bnad, u32 rx_id); 349extern int bnad_setup_tx(struct bnad *bnad, u32 tx_id); 350extern void bnad_cleanup_tx(struct bnad *bnad, u32 tx_id); --- 30 unchanged lines hidden --- | 352 353/* Configuration & setup */ 354extern void bnad_tx_coalescing_timeo_set(struct bnad *bnad); 355extern void bnad_rx_coalescing_timeo_set(struct bnad *bnad); 356 357extern int bnad_setup_rx(struct bnad *bnad, u32 rx_id); 358extern int bnad_setup_tx(struct bnad *bnad, u32 tx_id); 359extern void bnad_cleanup_tx(struct bnad *bnad, u32 tx_id); --- 30 unchanged lines hidden --- |