aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bna/bnad.h
diff options
context:
space:
mode:
authorRasesh Mody <rmody@brocade.com>2011-07-22 04:07:41 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-22 20:01:13 -0400
commit0120b99c8d56b5d3f2d80aaf8769dea05ef80439 (patch)
treef84a39e981e314f26f32a67925a22421aa979acd /drivers/net/bna/bnad.h
parent5aad00118fe8bc741725557372cd185d1ee1f248 (diff)
bna: CheckPatch Cleanup
Change details: - Driver cleanup as per new checkpatch v0.31 Signed-off-by: Rasesh Mody <rmody@brocade.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bna/bnad.h')
-rw-r--r--drivers/net/bna/bnad.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/bna/bnad.h b/drivers/net/bna/bnad.h
index 7aa550b6182d..ea97060f9e95 100644
--- a/drivers/net/bna/bnad.h
+++ b/drivers/net/bna/bnad.h
@@ -70,8 +70,8 @@ struct bnad_rx_ctrl {
70 70
71#define BNAD_MAILBOX_MSIX_VECTORS 1 71#define BNAD_MAILBOX_MSIX_VECTORS 1
72 72
73#define BNAD_STATS_TIMER_FREQ 1000 /* in msecs */ 73#define BNAD_STATS_TIMER_FREQ 1000 /* in msecs */
74#define BNAD_DIM_TIMER_FREQ 1000 /* in msecs */ 74#define BNAD_DIM_TIMER_FREQ 1000 /* in msecs */
75 75
76#define BNAD_MAX_Q_DEPTH 0x10000 76#define BNAD_MAX_Q_DEPTH 0x10000
77#define BNAD_MIN_Q_DEPTH 0x200 77#define BNAD_MIN_Q_DEPTH 0x200
@@ -102,12 +102,12 @@ enum bnad_intr_source {
102 102
103enum bnad_link_state { 103enum bnad_link_state {
104 BNAD_LS_DOWN = 0, 104 BNAD_LS_DOWN = 0,
105 BNAD_LS_UP = 1 105 BNAD_LS_UP = 1
106}; 106};
107 107
108struct bnad_completion { 108struct bnad_completion {
109 struct completion ioc_comp; 109 struct completion ioc_comp;
110 struct completion ucast_comp; 110 struct completion ucast_comp;
111 struct completion mcast_comp; 111 struct completion mcast_comp;
112 struct completion tx_comp; 112 struct completion tx_comp;
113 struct completion rx_comp; 113 struct completion rx_comp;
@@ -125,7 +125,7 @@ struct bnad_completion {
125 125
126/* Tx Rx Control Stats */ 126/* Tx Rx Control Stats */
127struct bnad_drv_stats { 127struct bnad_drv_stats {
128 u64 netif_queue_stop; 128 u64 netif_queue_stop;
129 u64 netif_queue_wakeup; 129 u64 netif_queue_wakeup;
130 u64 netif_queue_stopped; 130 u64 netif_queue_stopped;
131 u64 tso4; 131 u64 tso4;
@@ -188,7 +188,7 @@ struct bnad_skb_unmap {
188struct bnad_unmap_q { 188struct bnad_unmap_q {
189 u32 producer_index; 189 u32 producer_index;
190 u32 consumer_index; 190 u32 consumer_index;
191 u32 q_depth; 191 u32 q_depth;
192 /* This should be the last one */ 192 /* This should be the last one */
193 struct bnad_skb_unmap unmap_array[1]; 193 struct bnad_skb_unmap unmap_array[1];
194}; 194};
@@ -211,7 +211,7 @@ struct bnad_unmap_q {
211#define BNAD_RF_RX_SHUTDOWN_DELAYED 7 211#define BNAD_RF_RX_SHUTDOWN_DELAYED 7
212 212
213struct bnad { 213struct bnad {
214 struct net_device *netdev; 214 struct net_device *netdev;
215 215
216 /* Data path */ 216 /* Data path */
217 struct bnad_tx_info tx_info[BNAD_MAX_TXS]; 217 struct bnad_tx_info tx_info[BNAD_MAX_TXS];
@@ -245,7 +245,7 @@ struct bnad {
245 u32 cfg_flags; 245 u32 cfg_flags;
246 unsigned long run_flags; 246 unsigned long run_flags;
247 247
248 struct pci_dev *pcidev; 248 struct pci_dev *pcidev;
249 u64 mmio_start; 249 u64 mmio_start;
250 u64 mmio_len; 250 u64 mmio_len;
251 251
@@ -278,7 +278,7 @@ struct bnad {
278 struct bnad_diag *diag; 278 struct bnad_diag *diag;
279 279
280 char adapter_name[BNAD_NAME_LEN]; 280 char adapter_name[BNAD_NAME_LEN];
281 char port_name[BNAD_NAME_LEN]; 281 char port_name[BNAD_NAME_LEN];
282 char mbox_irq_name[BNAD_NAME_LEN]; 282 char mbox_irq_name[BNAD_NAME_LEN];
283}; 283};
284 284
@@ -286,7 +286,7 @@ struct bnad {
286 * EXTERN VARIABLES 286 * EXTERN VARIABLES
287 */ 287 */
288extern struct firmware *bfi_fw; 288extern struct firmware *bfi_fw;
289extern u32 bnad_rxqs_per_cq; 289extern u32 bnad_rxqs_per_cq;
290 290
291/* 291/*
292 * EXTERN PROTOTYPES 292 * EXTERN PROTOTYPES
@@ -332,7 +332,7 @@ extern void bnad_netdev_hwstats_fill(struct bnad *bnad,
332} 332}
333 333
334#define bnad_dim_timer_running(_bnad) \ 334#define bnad_dim_timer_running(_bnad) \
335 (((_bnad)->cfg_flags & BNAD_CF_DIM_ENABLED) && \ 335 (((_bnad)->cfg_flags & BNAD_CF_DIM_ENABLED) && \
336 (test_bit(BNAD_RF_DIM_TIMER_RUNNING, &((_bnad)->run_flags)))) 336 (test_bit(BNAD_RF_DIM_TIMER_RUNNING, &((_bnad)->run_flags))))
337 337
338#endif /* __BNAD_H__ */ 338#endif /* __BNAD_H__ */